|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jasi.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.Object
java.lang.Throwable
- An error while finalizing.public void pushedEvent(Event event)
pushedEvent
in interface CalendarListener
event
- The pushed event.public void poppedEvent(Event event)
poppedEvent
in interface CalendarListener
event
- The executed event.public void removedEvent(Event event)
removedEvent
in interface CalendarListener
event
- The removed event.public void startedSimulation(Time time)
startedSimulation
in interface SimListener
time
- The current time.public void finishedSimulation(Time time)
finishedSimulation
in interface SimListener
time
- The current time.public void createdElement(Element element)
createdElement
in interface ElementsListener
element
- The newly created element.public void changedElement(Element element, java.lang.String name, java.lang.Object value)
changedElement
in interface ElementsListener
element
- 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 ElementsListener
element
- The simulation element.name
- The attribute's name.value
- The value of the attribute.public void deletedElement(Element element)
deletedElement
in interface ElementsListener
element
- The deleted element.public void advancedTime(Time time, double speed)
advancedTime
in interface SimListener
time
- The granted time advance.speed
- The simulation speed in factors of real time.public void startReadingArchive(java.lang.String file)
startReadingArchive
in interface SimListener
file
- The file name of the archive.public void finishedReadingArchive()
finishedReadingArchive
in interface SimListener
public void startWritingArchive(java.lang.String file)
startWritingArchive
in interface SimListener
file
- The file name of the archive.public void finishedWritingArchive()
finishedWritingArchive
in interface SimListener
public void gotException(java.lang.Exception e)
gotException
in interface SimListener
e
- The exception.public void gotMessage(java.lang.String m)
gotMessage
in interface SimListener
m
- The message.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |