Enum Class Command.Type

java.lang.Object
java.lang.Enum<Command.Type>
com.amalgamasimulation.graphagent.Command.Type
All Implemented Interfaces:
Serializable, Comparable<Command.Type>, Constable
Enclosing class:
Command

public static enum Command.Type extends Enum<Command.Type>
Type of command
  • Enum Constant Details

    • SET_VELOCITY

      public static final Command.Type SET_VELOCITY
      Command that sets or changes the agent's velocity
    • MOVE_TO

      public static final Command.Type MOVE_TO
      Command that send the agent to some destination
    • JUMP_TO

      public static final Command.Type JUMP_TO
      Command that jumps the agent to some place in graph
    • CANCEL_MOVING

      public static final Command.Type CANCEL_MOVING
      Command that cancels the movement and erases the agent's path and trajectory
    • REMOVE_FROM_GRAPH_ENVIRONMENT

      public static final Command.Type REMOVE_FROM_GRAPH_ENVIRONMENT
      Command that removes the agent from its current graph environment
    • OTHER

      public static final Command.Type OTHER
      A command that does not fall in any category defined by this enumeration
  • Method Details

    • values

      public static Command.Type[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Command.Type valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null