org.jscience.architecture.traffic.infrastructure
Class NoSign

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

public class NoSign
extends Sign

Sign implementing basic trafic rules.


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
NoSign()
          Creates a new NoSign object.
NoSign(Node _node, Drivelane _lane)
          Creates a new NoSign object.
 
Method Summary
 int getType()
          Returns the type of this Sign
 java.lang.String getXMLName()
          DOCUMENT ME!
 boolean mayDrive()
          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, 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

NoSign

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

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

NoSign

public NoSign()
Creates a new NoSign 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!

mayDrive

public boolean mayDrive()
DOCUMENT ME!

Overrides:
mayDrive 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!