|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.architecture.lift.Tickable
org.jscience.architecture.lift.PassengerProcessor
org.jscience.architecture.lift.SimplePassengerProcessor
public class SimplePassengerProcessor
This file is licensed under the GNU Public Licens (GPL).
A simple PassengerProcessor that writes the travel and waiting
times of passengers to a file. Obsoleted since JLESA contains
logging.
Passenger,
PassengerGenerator| Constructor Summary | |
|---|---|
SimplePassengerProcessor(java.lang.String LogFileName)
Constructor |
|
| Method Summary | |
|---|---|
void |
created(Passenger P)
This method is called by World after each new Passenger generated. |
java.lang.String |
getName()
Returns the Name of the object. |
java.lang.String |
getVersion()
Returns the Version of the object |
void |
prepareToDie()
This method is called by World before this Passengerprocessor is terminated. |
void |
process(Passenger P)
This method is called by World before each Passenger terminated. |
void |
Tick()
This function is called in each step of the simulator. |
| Methods inherited from class org.jscience.architecture.lift.Tickable |
|---|
getFullName, getID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimplePassengerProcessor(java.lang.String LogFileName)
| Method Detail |
|---|
public void prepareToDie()
PassengerProcessorWorld before this Passengerprocessor is terminated. "As a reaction, the instance of this
object class should move and/or duplicate all non-temporary information
to persistent databases". In other worlds, it should save everything
important to disk.
prepareToDie in class PassengerProcessorpublic java.lang.String getName()
TickableInterface
getName in interface TickableInterfacegetName in class PassengerProcessorpublic java.lang.String getVersion()
TickableInterface
getVersion in interface TickableInterfacegetVersion in class PassengerProcessorpublic void Tick()
TickableInterface
Tick in interface TickableInterfaceTick in class Tickablepublic void created(Passenger P)
PassengerProcessorWorld after each new Passenger generated.
created in class PassengerProcessorP - DOCUMENT ME!public void process(Passenger P)
PassengerProcessorWorld before each Passenger terminated.
process in class PassengerProcessorP - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||