|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.architecture.traffic.infrastructure.Sign
public abstract class Sign
Sign class.
| Field Summary | |
|---|---|
protected Drivelane |
lane
DOCUMENT ME! |
protected org.jscience.architecture.traffic.infrastructure.Sign.TwoStageLoaderData |
loadData
Data for loading the second stage |
static int |
NO_SIGN
DOCUMENT ME! |
protected Node |
node
DOCUMENT ME! |
protected java.lang.String |
parentName
DOCUMENT ME! |
static int |
SIGN
DOCUMENT ME! |
protected boolean |
state
DOCUMENT ME! |
static int |
TRAFFICLIGHT
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
Sign()
Creates a new Sign object. |
|
Sign(Node _node,
Drivelane _lane)
Creates a new Sign object. |
|
| Method Summary | |
|---|---|
int |
getId()
Returns the Id of this sign. |
static Sign |
getInstance(int type)
Smallest factory ever |
Drivelane |
getLane()
Returns the Drivelane this Sign is on |
Node |
getNode()
Returns the Node this Sign is on |
boolean |
getState()
Returns the current state |
abstract int |
getType()
Returns the type of this Sign |
void |
load(XMLElement myElement,
XMLLoader loader)
DOCUMENT ME! |
void |
loadSecondStage(java.util.Dictionary dictionaries)
DOCUMENT ME! |
boolean |
mayDrive()
Returns true if the Roaduser at the start of the Drivelane may cross the Node. |
abstract boolean |
needsExternalAlgorithm()
Returns true if this Sign should be handled by an external algorithm (TC-3 for example) |
void |
reset()
This will reset the sign to its default state (false) |
void |
saveChilds(XMLSaver saver)
DOCUMENT ME! |
XMLElement |
saveSelf()
DOCUMENT ME! |
void |
setLane(Drivelane l)
Sets the Drivelane this Sign is on |
void |
setNode(Node n)
Sets the Node this Sign is on |
void |
setParentName(java.lang.String parentName)
DOCUMENT ME! |
void |
setState(boolean b)
Sets the current state |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jscience.architecture.traffic.xml.XMLSerializable |
|---|
getXMLName |
| Field Detail |
|---|
public static final int SIGN
public static final int TRAFFICLIGHT
public static final int NO_SIGN
protected boolean state
protected Node node
protected Drivelane lane
protected org.jscience.architecture.traffic.infrastructure.Sign.TwoStageLoaderData loadData
protected java.lang.String parentName
| Constructor Detail |
|---|
public Sign(Node _node,
Drivelane _lane)
_node - DOCUMENT ME!_lane - DOCUMENT ME!public Sign()
| Method Detail |
|---|
public static Sign getInstance(int type)
throws InfraException
type - DOCUMENT ME!
InfraException - DOCUMENT ME!public void reset()
public abstract boolean needsExternalAlgorithm()
public boolean mayDrive()
public int getId()
public boolean getState()
public void setState(boolean b)
b - DOCUMENT ME!public Drivelane getLane()
public void setLane(Drivelane l)
l - DOCUMENT ME!public Node getNode()
public void setNode(Node n)
n - DOCUMENT ME!public abstract int getType()
public void load(XMLElement myElement,
XMLLoader loader)
throws XMLTreeException,
java.io.IOException,
XMLInvalidInputException
load in interface XMLSerializablemyElement - DOCUMENT ME!loader - DOCUMENT ME!
XMLTreeException - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!
XMLInvalidInputException - DOCUMENT ME!
public XMLElement saveSelf()
throws XMLCannotSaveException
saveSelf in interface XMLSerializableXMLCannotSaveException - DOCUMENT ME!
public void saveChilds(XMLSaver saver)
throws XMLTreeException,
java.io.IOException,
XMLCannotSaveException
saveChilds in interface XMLSerializablesaver - DOCUMENT ME!
XMLTreeException - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!
XMLCannotSaveException - DOCUMENT ME!public void setParentName(java.lang.String parentName)
setParentName in interface XMLSerializableparentName - DOCUMENT ME!
public void loadSecondStage(java.util.Dictionary dictionaries)
throws XMLInvalidInputException,
XMLTreeException
loadSecondStage in interface TwoStageLoaderdictionaries - DOCUMENT ME!
XMLInvalidInputException - DOCUMENT ME!
XMLTreeException - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||