Class Command

java.lang.Object
com.amalgamasimulation.graphagent.Command

public class Command extends Object
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
  • Method Details

    • isExecuted

      public boolean isExecuted()
      Returns true if this command has been fully executed, false otherwise.
      Returns:
      true if this command has been fully executed, false otherwise
    • getType

      public Command.Type getType()
      Returns the Command.Type of this command
      Returns:
      Command.Type of this command
    • toString

      public String toString()
      Overrides:
      toString in class Object