|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectix.isim.ISimTimer
ix.isim.ISimTimerServer
public class ISimTimerServer
Field Summary |
---|
Fields inherited from class ix.isim.ISimTimer |
---|
ACCELERATE, owner, PAUSE, REGISTER, RESUME, simTimeDisplay, simulationActive, START, STOP, SYNCHRONIZE_LABEL, tUpdater |
Constructor Summary | |
---|---|
protected |
ISimTimerServer(IXAgent agent)
|
Method Summary | |
---|---|
long |
changeAccelerationFactor(double acceleration)
This function changes the time acceleration factor to the given value. |
void |
handleSynchronizeActivity(Activity synchActivity)
This function needs to be implemented by the inheriting class. |
long |
pause()
This function pauses this simulation timer, be it a Server or Client. |
void |
registerAgent(java.lang.String agentName)
|
long |
resume()
This function re-starts the simulation timer after it had been paused. |
void |
sendAccelerateActivity(double factor)
|
void |
sendPauseActivity(long simTime)
|
void |
sendResumeActivity(long simTime)
|
void |
sendStartActivity(long simTime,
double factor)
|
void |
sendStopActivity()
|
void |
start(long simTime,
double factor)
This function starts the simulation clock. |
void |
terminateTimer()
This function should be called terminate this Timer. |
Methods inherited from class ix.isim.ISimTimer |
---|
getAccelerationFactor, getISimTimer, getSimTimeInMillis, setCurrentSimTime, simulationStarted |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ISimTimerServer(IXAgent agent)
Method Detail |
---|
public void start(long simTime, double factor) throws ISimTimerException
ISimTimer
start
in class ISimTimer
simTime
- initial value of the simulated timefactor
- acceleration factor for simulated time
ISimTimerException
- if this function has been called beforepublic long pause()
ISimTimer
pause
in class ISimTimer
public long resume()
ISimTimer
resume
in class ISimTimer
public long changeAccelerationFactor(double acceleration)
ISimTimer
changeAccelerationFactor
in class ISimTimer
acceleration
- double the new acceleration factor
public void terminateTimer()
ISimTimer
terminateTimer
in class ISimTimer
public void handleSynchronizeActivity(Activity synchActivity)
ISimTimer
handleSynchronizeActivity
in class ISimTimer
synchActivity
- a synchronization Activity (see final Strings in
this class for possible activities)public void registerAgent(java.lang.String agentName)
public void sendStartActivity(long simTime, double factor)
public void sendPauseActivity(long simTime)
public void sendResumeActivity(long simTime)
public void sendAccelerateActivity(double factor)
public void sendStopActivity()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |