org.jscience.architecture.lift
Class Tickable

java.lang.Object
  extended by org.jscience.architecture.lift.Tickable
All Implemented Interfaces:
TickableInterface
Direct Known Subclasses:
Passenger, PassengerGenerator, PassengerProcessor, SimulatedCar, World

public abstract class Tickable
extends java.lang.Object
implements TickableInterface

This file is licensed under the GNU Public Licens (GPL).
This abstract class is the foundation class of all objects that change as time flows. In other worlds, all time-variant objects must extend this object in the JLESA system. This applies to Cars, Passengers, CAs, etc.


Constructor Summary
Tickable()
          A simple constructor that sets an unique ID for this Tickable.
 
Method Summary
 java.lang.String getFullName()
          Returns the Full Canonical Name of object that evenincludes unique ID
 long getID()
          Returns the unique ID.
abstract  java.lang.String getName()
          Returns the Name of the object.
abstract  java.lang.String getVersion()
          Returns the Version of the object
abstract  void Tick()
          This function is called in each step of the simulator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tickable

public Tickable()
A simple constructor that sets an unique ID for this Tickable. Do not tamper with this one.

Method Detail

Tick

public abstract void Tick()
Description copied from interface: TickableInterface
This function is called in each step of the simulator. In other words, this method is called whenever a discrete simulation step (0.1 second) happens. All objects that are time-variant is notified by this method that some time has elapsed since.

Specified by:
Tick in interface TickableInterface

getFullName

public java.lang.String getFullName()
Returns the Full Canonical Name of object that evenincludes unique ID

Specified by:
getFullName in interface TickableInterface
Returns:
DOCUMENT ME!

getID

public long getID()
Description copied from interface: TickableInterface
Returns the unique ID.

Specified by:
getID in interface TickableInterface
Returns:
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
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
Returns:
DOCUMENT ME!