|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjasi.sim.basic.control.AbstractSimListener
public abstract class AbstractSimListener
A basic adapter for observers of simulation state changes. This adapter provides only empty methods, but other observers can be easily adapted by extension of this class and overloading some or all of its methods.
| Constructor Summary | |
|---|---|
AbstractSimListener()
|
|
| Method Summary | ||
|---|---|---|
void |
advancedTime(Time time,
double speed)
A time advance has been granted. |
|
|
changedElement(Element element,
java.lang.String name,
T value)
A simulation element has changed its state. |
|
void |
createdElement(Element element)
A simulation element has been created. |
|
void |
deletedElement(Element element)
A simulation element has been deleted. |
|
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 |
poppedEvent(Event event)
An event has been popped from the calendar and was executed by a simulation model. |
|
void |
pushedEvent(Event event)
An event has been pushed to the simulation calendar. |
|
void |
removedEvent(Event event)
An event has been removed from the simulation calendar. |
|
|
requestedElement(Element element,
java.lang.String name,
T value)
The attribute value of a simulation element has been read. |
|
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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractSimListener()
| Method Detail |
|---|
public void pushedEvent(Event event)
pushedEvent in interface CalendarListenerevent - The pushed event.public void poppedEvent(Event event)
poppedEvent in interface CalendarListenerevent - The popped event.public void removedEvent(Event event)
removedEvent in interface CalendarListenerevent - The removed event.public void startedSimulation(Time time)
startedSimulation in interface SimListenertime - The current time.public void finishedSimulation(Time time)
finishedSimulation in interface SimListenertime - The current time.public void createdElement(Element element)
createdElement in interface ElementsListenerelement - The newly created element.
public <T> void changedElement(Element element,
java.lang.String name,
T value)
changedElement in interface ElementsListenerT - The value type.element - The newly created element.name - The attribute's name.value - The new value of the attribute.
public <T> void requestedElement(Element element,
java.lang.String name,
T value)
requestedElement in interface ElementsListenerT - The value type.element - The simulation element.name - The attribute's name.value - The value of the attribute.public void deletedElement(Element element)
deletedElement in interface ElementsListenerelement - The deleted element.
public void advancedTime(Time time,
double speed)
advancedTime in interface SimListenertime - The granted time advance.speed - The simulation speed in factors of real time.public void startReadingArchive(java.lang.String file)
startReadingArchive in interface SimListenerfile - The file name of the archive.public void finishedReadingArchive()
finishedReadingArchive in interface SimListenerpublic void startWritingArchive(java.lang.String file)
startWritingArchive in interface SimListenerfile - The file name of the archive.public void finishedWritingArchive()
finishedWritingArchive in interface SimListenerpublic void gotException(java.lang.Exception e)
gotException in interface SimListenere - The exception.public void gotMessage(java.lang.String m)
gotMessage in interface SimListenerm - The message.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||