Package com.amalgamasimulation.trains
Class RailNode
java.lang.Object
com.amalgamasimulation.graphagent.AgentGraphNodeImpl
com.amalgamasimulation.graphagent.LongAgentGraphNodeImpl
com.amalgamasimulation.trains.RailNode
- All Implemented Interfaces:
AgentGraphNode,GeometricGraphNode,LongAgentGraphNode
Rail node represents a point where 2 rail tracks merge into the third rail track.
- Author:
- Andrey Malykhanov, Amalgama LLC
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.amalgamasimulation.graphagent.LongAgentGraphNodeImpl
addOccupyingAgent, getOccupyingAgents, removeAllOccurrencesOccupyingAgent, removeOccupyingAgentMethods inherited from class com.amalgamasimulation.graphagent.AgentGraphNodeImpl
addAgent, addCallbackPosition, afterAgentEntered, beforeAgentExited, clearCallbackPositions, containsAgent, getAgents, getCallbackPositions, getPoint, onAgentReachedPosition, removeAgent, removeCallbackPosition, setPointMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.amalgamasimulation.graphagent.AgentGraphNode
addAgent, addCallbackPosition, afterAgentEntered, beforeAgentExited, clearCallbackPositions, containsAgent, getAgents, getCallbackPositions, onAgentReachedPosition, removeAgent, removeCallbackPositionMethods inherited from interface com.amalgamasimulation.graphagent.GeometricGraphNode
getPoint
-
Constructor Details
-
RailNode
-
-
Method Details
-
getName
Returns the name of this rail node.- Returns:
- name of this rail node
-
toString
- Overrides:
toStringin classAgentGraphNodeImpl
-