|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjasi.sim.user.BasicOutput
public class BasicOutput
Simple output and error output for simulation into files.
| Constructor Summary | |
|---|---|
BasicOutput(java.io.PrintWriter output,
java.io.PrintWriter error)
Constructor for SimpleOutput. |
|
| Method Summary | |
|---|---|
void |
advancedTime(Time time,
double speed)
A time advance has been granted. |
void |
changedElement(Element element,
java.lang.String name,
java.lang.Object value)
A simulation element has changed its state. |
static BasicOutput |
create()
Factory method for SimpleOutput. |
static BasicOutput |
create(java.lang.String output,
java.lang.String error)
Factory method for SimpleOutput. |
void |
createdElement(Element element)
A simulation element has been created. |
void |
deletedElement(Element element)
A simulation element has been deleted. |
protected void |
finalize()
Destructor of simulation output: |
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 occured 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 executed by the simulation. |
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. |
void |
requestedElement(Element element,
java.lang.String name,
java.lang.Object 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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicOutput(java.io.PrintWriter output,
java.io.PrintWriter error)
output - The file name of the simulation output.error - The file name of the simulation error output.| Method Detail |
|---|
public static BasicOutput create()
public static BasicOutput create(java.lang.String output,
java.lang.String error)
output - The file name of the simulation output.error - The file name of the simulation error output.
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable - An error while finalizing.public void pushedEvent(Event event)
pushedEvent in interface CalendarListenerevent - The pushed event.public void poppedEvent(Event event)
poppedEvent in interface CalendarListenerevent - The executed 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 void changedElement(Element element,
java.lang.String name,
java.lang.Object value)
changedElement in interface ElementsListenerelement - The newly created element.name - The attribute's name.value - The new value of the attribute.
public void requestedElement(Element element,
java.lang.String name,
java.lang.Object value)
requestedElement in interface ElementsListenerelement - 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 | ||||||||