|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SimListener
Interface for an observer/listener of simulation state changes. This interface can be used to organize the simulation output into databases, federation, GUIs, monitors, etc. Every change in the state of the simulation is sent to all registered simulation observers.
Method Summary | |
---|---|
void |
advancedTime(Time time,
double speed)
A time advance has been granted. |
void |
finishedReadingArchive()
The simulation archive was read. |
void |
finishedSimulation(Time time)
A simulation thread has been finished. |
void |
finishedWritingArchive()
The simulation archive was written. |
void |
gotException(java.lang.Exception e)
An exception occurred during simulation. |
void |
gotMessage(java.lang.String m)
An message was created by the simulation. |
void |
startedSimulation(Time time)
A simulation thread has been started. |
void |
startReadingArchive(java.lang.String file)
The simulation archive is read. |
void |
startWritingArchive(java.lang.String file)
The simulation archive is written. |
Methods inherited from interface jasi.sim.basic.element.ElementsListener |
---|
changedElement, createdElement, deletedElement, requestedElement |
Methods inherited from interface jasi.sim.basic.event.CalendarListener |
---|
poppedEvent, pushedEvent, removedEvent |
Method Detail |
---|
void startedSimulation(Time time)
time
- The current time.void finishedSimulation(Time time)
time
- The current time.void advancedTime(Time time, double speed)
time
- The granted time advance.speed
- The simulation speed in factors of real time.void startReadingArchive(java.lang.String file)
file
- The file name of the archive.void finishedReadingArchive()
void startWritingArchive(java.lang.String file)
file
- The file name of the archive.void finishedWritingArchive()
void gotException(java.lang.Exception e)
e
- The exception.void gotMessage(java.lang.String m)
m
- The message.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |