org.jscience.architecture.lift
Class PassengerProcessor

java.lang.Object
  extended by org.jscience.architecture.lift.Tickable
      extended by org.jscience.architecture.lift.PassengerProcessor
All Implemented Interfaces:
TickableInterface
Direct Known Subclasses:
LoggerPassengerProcessor, SimplePassengerProcessor

public abstract class PassengerProcessor
extends Tickable

This file is licensed under the GNU Public Licens (GPL).
This should be the father of all entities that process Passengers.

See Also:
Passenger, PassengerGenerator

Constructor Summary
PassengerProcessor()
          Constructor
 
Method Summary
abstract  void created(Passenger P)
          This method is called by World after each new Passenger generated.
abstract  java.lang.String getName()
          Returns the Name of the object.
abstract  java.lang.String getVersion()
          Returns the Version of the object
abstract  void prepareToDie()
          This method is called by World before this Passengerprocessor is terminated.
abstract  void process(Passenger P)
          This method is called by World before each Passenger terminated.
 
Methods inherited from class org.jscience.architecture.lift.Tickable
getFullName, getID, Tick
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassengerProcessor

public PassengerProcessor()
Constructor

Method Detail

created

public abstract void created(Passenger P)
This method is called by World after each new Passenger generated.

Parameters:
P - DOCUMENT ME!

getName

public abstract java.lang.String getName()
Description copied from interface: TickableInterface
Returns the Name of the object.

Specified by:
getName in interface TickableInterface
Specified by:
getName in class Tickable
Returns:
DOCUMENT ME!

getVersion

public abstract java.lang.String getVersion()
Description copied from interface: TickableInterface
Returns the Version of the object

Specified by:
getVersion in interface TickableInterface
Specified by:
getVersion in class Tickable
Returns:
DOCUMENT ME!

process

public abstract void process(Passenger P)
This method is called by World before each Passenger terminated.

Parameters:
P - DOCUMENT ME!

prepareToDie

public abstract void prepareToDie()
This method is called by World 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.