|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ActionType>
demo.inpro.system.greifarm.ActionType
public enum ActionType
enumeration of the different actions in our domain along with handy test operations and a reversing operation
| Enum Constant Summary | |
|---|---|
CONTINUE
continue a move-action into the same direction |
|
DROP
release the load |
|
LEFT
move to the left |
|
REVERSE
continue a move-action into the reverse direction |
|
RIGHT
move to the right |
|
STOP
stop a motion |
|
| Method Summary | |
|---|---|
(package private) boolean |
isExplicitDirection()
|
(package private) boolean |
isImplicitDirection()
|
(package private) boolean |
isMotion()
|
(package private) ActionType |
reverseDirection()
return the reverse of this action, if this exists |
static ActionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ActionType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ActionType CONTINUE
public static final ActionType LEFT
public static final ActionType RIGHT
public static final ActionType REVERSE
public static final ActionType STOP
public static final ActionType DROP
| Method Detail |
|---|
public static ActionType[] values()
for (ActionType c : ActionType.values()) System.out.println(c);
public static ActionType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullboolean isMotion()
boolean isImplicitDirection()
boolean isExplicitDirection()
ActionType reverseDirection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||