org.jscience.architecture.traffic.infrastructure
Class TrafficLight

java.lang.Object
  extended by org.jscience.architecture.traffic.infrastructure.Sign
      extended by org.jscience.architecture.traffic.infrastructure.TrafficLight
All Implemented Interfaces:
TwoStageLoader, XMLSerializable

public class TrafficLight
extends Sign

DOCUMENT ME!


Field Summary
protected static int type
          DOCUMENT ME!
 
Fields inherited from class org.jscience.architecture.traffic.infrastructure.Sign
lane, loadData, NO_SIGN, node, parentName, SIGN, state, TRAFFICLIGHT
 
Constructor Summary
TrafficLight()
          Creates a new TrafficLight object.
TrafficLight(Node _node, Drivelane _lane)
          Creates a new TrafficLight object.
 
Method Summary
 int getType()
          Returns the type of this Sign
 java.lang.String getXMLName()
          DOCUMENT ME!
 boolean needsExternalAlgorithm()
          DOCUMENT ME!
 XMLElement saveSelf()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.architecture.traffic.infrastructure.Sign
getId, getInstance, getLane, getNode, getState, load, loadSecondStage, mayDrive, reset, saveChilds, setLane, setNode, setParentName, setState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected static final int type
DOCUMENT ME!

See Also:
Constant Field Values
Constructor Detail

TrafficLight

public TrafficLight(Node _node,
                    Drivelane _lane)
Creates a new TrafficLight object.

Parameters:
_node - DOCUMENT ME!
_lane - DOCUMENT ME!

TrafficLight

public TrafficLight()
Creates a new TrafficLight object.

Method Detail

getType

public int getType()
Returns the type of this Sign

Specified by:
getType in class Sign
Returns:
DOCUMENT ME!

needsExternalAlgorithm

public boolean needsExternalAlgorithm()
DOCUMENT ME!

Specified by:
needsExternalAlgorithm in class Sign
Returns:
DOCUMENT ME!

getXMLName

public java.lang.String getXMLName()
DOCUMENT ME!

Returns:
DOCUMENT ME!

saveSelf

public XMLElement saveSelf()
                    throws XMLCannotSaveException
DOCUMENT ME!

Specified by:
saveSelf in interface XMLSerializable
Overrides:
saveSelf in class Sign
Returns:
DOCUMENT ME!
Throws:
XMLCannotSaveException - DOCUMENT ME!