Class Command
java.lang.Object
com.amalgamasimulation.graphagent.Command
Class representing a command that a
GraphAgent executes in its
commands stack. Commands stack is necessary for graph agents to enable
calling methods like GraphAgent.moveTo(AgentGraphNode, double) or
GraphAgent.setVelocity(double) inside the code of graph-related event
handlers.- Author:
- Andrey Malykhanov
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetType()Returns theCommand.Typeof this commandbooleanReturnstrueif this command has been fully executed,falseotherwise.toString()
-
Method Details
-
isExecuted
public boolean isExecuted()Returnstrueif this command has been fully executed,falseotherwise.- Returns:
trueif this command has been fully executed,falseotherwise
-
getType
Returns theCommand.Typeof this command- Returns:
Command.Typeof this command
-
toString
-