Enum Class Command.Type
- All Implemented Interfaces:
Serializable,Comparable<Command.Type>,Constable
- Enclosing class:
Command
Type of command
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCommand that cancels the movement and erases the agent's path and trajectoryCommand that jumps the agent to some place in graphCommand that send the agent to some destinationA command that does not fall in any category defined by this enumerationCommand that removes the agent from its current graph environmentCommand that sets or changes the agent's velocity -
Method Summary
Modifier and TypeMethodDescriptionstatic Command.TypeReturns the enum constant of this class with the specified name.static Command.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SET_VELOCITY
Command that sets or changes the agent's velocity -
MOVE_TO
Command that send the agent to some destination -
JUMP_TO
Command that jumps the agent to some place in graph -
CANCEL_MOVING
Command that cancels the movement and erases the agent's path and trajectory -
REMOVE_FROM_GRAPH_ENVIRONMENT
Command that removes the agent from its current graph environment -
OTHER
A command that does not fall in any category defined by this enumeration
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-