org.gscg.common.interactionlayer.timecontrol
Class GlobalProgressDateAndTime

java.lang.Object
  extended byorg.gscg.common.interactionlayer.timecontrol.GlobalProgressDateAndTime
All Implemented Interfaces:
java.io.Serializable

public class GlobalProgressDateAndTime
extends java.lang.Object
implements java.io.Serializable

The GlobalProgressDataAndTime object manages progress time for all the objects part of an interactive distributed simulation. Implementing progress control in this way makes sure that not every actor in a game is going to perform this expensive code every time for itself, instead we use a 'global' approach, and thus increase our performance. Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl . The source code and binary code of this software is proprietary information of Delft University of Technology.

Since:
1.0.0
Version:
$Revision: 1.1 $ $Date: 2005/06/16 12:34:02 $
Author:
Stijn-Pieter van Houten
See Also:
Serialized Form

Nested Class Summary
static class GlobalProgressDateAndTime.CustomEventProducer
          A custom implementation of an event producer.
 
Constructor Summary
GlobalProgressDateAndTime(nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator)
          constructs a new SimulationDateTime
 
Method Summary
 GlobalProgressDateAndTime.CustomEventProducer getCustomEventProducer()
           
static java.lang.String getDate()
          Method getDate returns the date based on the simulator time.
static double getProgress()
           
static java.lang.String getProgressTime()
           
static GlobalProgressDateAndTime getStaticProgressDateAndTime()
           
static java.lang.String getStopTime()
           
static java.lang.String getTime()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalProgressDateAndTime

public GlobalProgressDateAndTime(nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator)
constructs a new SimulationDateTime

Parameters:
simulator - the simulator
Method Detail

getDate

public static java.lang.String getDate()
Method getDate returns the date based on the simulator time.

Returns:
returns a String reflecting the date of the simulation.

getProgress

public static double getProgress()
Returns:
Returns the progress

getProgressTime

public static java.lang.String getProgressTime()
Returns:
Returns the progress time

getStopTime

public static java.lang.String getStopTime()
Returns:
Returns the stop time

getTime

public static java.lang.String getTime()
Returns:
Returns the time

getStaticProgressDateAndTime

public static GlobalProgressDateAndTime getStaticProgressDateAndTime()
Returns:
Returns the staticd progress and time instance

getCustomEventProducer

public GlobalProgressDateAndTime.CustomEventProducer getCustomEventProducer()
Returns:
Returns the custom event producer


Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.