org.jscience.architecture.traffic.infrastructure
Class NonTLJunction

java.lang.Object
  extended by org.jscience.architecture.traffic.infrastructure.Node
      extended by org.jscience.architecture.traffic.infrastructure.Junction
          extended by org.jscience.architecture.traffic.infrastructure.NonTLJunction
All Implemented Interfaces:
Selectable, SelectionStarter, InstantiationAssistant, TwoStageLoader, XMLSerializable

public class NonTLJunction
extends Junction

Junction without trafficlights, so normal traffic rules are applied


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jscience.architecture.traffic.infrastructure.Node
Node.NodeStatistics
 
Field Summary
protected  NoSign[] signs
          A Vector containing all Signs on this node
protected static int type
          The type of this node
 
Fields inherited from class org.jscience.architecture.traffic.infrastructure.Junction
allRoads, alphaRoads, loadData, signconfigs, width
 
Fields inherited from class org.jscience.architecture.traffic.infrastructure.Node
C_DOWN, C_LEFT, C_RIGHT, C_UP, coord, D_AHEAD, D_BACK, D_LEFT, D_RIGHT, EDGE, inboundLanes, JUNCTION, NET_TUNNEL, nodeId, NON_TL, outboundLanes, parentName, spdata, STAT_NUM_DATA, statistics
 
Constructor Summary
NonTLJunction()
          Creates an empty junction (for loading)
NonTLJunction(java.awt.Point _coord)
          Creates a new standard Junction
 
Method Summary
 int getDesiredSignType()
          DOCUMENT ME!
 java.lang.String getXMLName()
          DOCUMENT ME!
 XMLElement saveSelf()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.architecture.traffic.infrastructure.Junction
addRoad, addSignconfig, areOtherTailsFree, calcDelay, calculateWidth, getAllLanes, getAllLanesCW, getAllRoads, getAlphaRoads, getInboundLanes, getLanesLeadingFrom, getLanesLeadingFrom, getLanesLeadingTo, getName, getNumAllLanes, getNumAlphaRoads, getNumInboundLanes, getNumOutboundLanes, getNumRealSigns, getNumRoads, getNumSigns, getOutboundLanes, getRoadIdArray, getSign, getSignConfigIdArray, getSignConfigs, getSignIdArray, getSigns, getType, getWidth, isAlphaRoad, isConnected, isConnectedAt, isConnectionPosFree, load, loadSecondStage, paint, paint, paint, remAllRoads, remRoad, remRoad, remSignconfig, reset, saveChilds, setAllRoads, setAlphaRoad, setAlphaRoads, setSignConfigs, setSigns, setWidth
 
Methods inherited from class org.jscience.architecture.traffic.infrastructure.Node
addShortestPath, areAllTailsFree, canCreateInstance, createInstance, getBounds, getCenterPoint, getChildren, getComplexBounds, getCoord, getDirection, getDistance, getId, getNumSkip, getSelectionPoint, getSelectionPoints, getShortestPathDestinations, getShortestPaths, getStatistics, getStatistics, hasChildren, initStats, isSelectable, processStats, remPaths, resetStats, setCoord, setId, setParentName, setShortestPath, updateLanes, zapShortestPaths
 
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
The type of this node

See Also:
Constant Field Values

signs

protected NoSign[] signs
A Vector containing all Signs on this node

Constructor Detail

NonTLJunction

public NonTLJunction()
Creates an empty junction (for loading)


NonTLJunction

public NonTLJunction(java.awt.Point _coord)
Creates a new standard Junction

Parameters:
_coord - The coordinates of this node on the map in pixels.
Method Detail

getDesiredSignType

public int getDesiredSignType()
DOCUMENT ME!

Overrides:
getDesiredSignType in class Junction
Returns:
DOCUMENT ME!

getXMLName

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

Specified by:
getXMLName in interface XMLSerializable
Overrides:
getXMLName in class Junction
Returns:
DOCUMENT ME!

saveSelf

public XMLElement saveSelf()
                    throws XMLCannotSaveException
DOCUMENT ME!

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