Package org.baseagent.sim
Class PathAgent
java.lang.Object
org.baseagent.sim.SimulationComponent
org.baseagent.Agent
org.baseagent.ui.DrawableAgent
org.baseagent.sim.PathAgent
- All Implemented Interfaces:
MessageListener,HasStep,HasPathPosition,SimulationListener,Drawable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.baseagent.sim.SimulationComponent
SimulationComponent.Type -
Field Summary
Fields inherited from class org.baseagent.Agent
SIMPLE_ID_COUNTER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeterimeNextSegment(Intersection intersection) doublevoidsetNextSegment(Segment segment) Methods inherited from class org.baseagent.ui.DrawableAgent
draw, getColor, getColorOrUse, getDrawable, getDrawX, getDrawY, removeDrawable, setColor, setDrawable, setDrawX, setDrawYMethods inherited from class org.baseagent.Agent
addBehavior, addBehavior, getBehavior, getBehaviorPolicy, getBehaviors, getInventory, getKnowledge, getSimpleID, getState, getType, give, isState, onMessageReceived, receive, removeBehavior, removeBehavior, sendDirectedMessage, sendMessage, setBehaviorPolicy, setKnowledge, setState, step, takeMethods inherited from class org.baseagent.sim.SimulationComponent
getSimulation, getUUID, setSimulationMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.baseagent.ui.Drawable
drawAfter, drawBeforeMethods inherited from interface org.baseagent.sim.SimulationListener
onAfterStepEnded, onAfterStepStarted, onBeforeStepEnded, onBeforeStepStarted, onSimulationComponentAdded, onSimulationComponentRemoved, onSimulationEnded, onSimulationPaused, onSimulationResumed, onSimulationStarted, onSimulationStopped, onStepEnded, onStepStarted
-
Constructor Details
-
PathAgent
public PathAgent()
-
-
Method Details
-
getCurrentSegment
- Specified by:
getCurrentSegmentin interfaceHasPathPosition
-
getHeading
public double getHeading()- Specified by:
getHeadingin interfaceHasPathPosition
-
deterimeNextSegment
- Specified by:
deterimeNextSegmentin interfaceHasPathPosition
-
setNextSegment
- Specified by:
setNextSegmentin interfaceHasPathPosition
-
getNextSegment
- Specified by:
getNextSegmentin interfaceHasPathPosition
-