|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<SPRState>
com.kuka.roboticsAPI.controllerModel.sunrise.api.SPRState
public enum SPRState
Contains the possible states of an SPR in Sunrise.
| Enum Constant Summary | |
|---|---|
Active
Command is active. |
|
CommandCreated
Command was created. |
|
CommandFinished
Command is finished. |
|
Finalize
Finalize state. |
|
Invalid
Command is invalid. |
|
Maintaining
Command is in maintaining state. |
|
PreActive
The command has it's drives, but needs to wait for the brakes. |
|
PreparationFinished
Preparation of command is finished. |
|
Preparing
Command is prepared. |
|
Stopping
Stopping state. |
|
Tuning
Command is in tuning state. |
|
WaitingForDrives
The command is waiting for it's drives. |
|
| Method Summary | |
|---|---|
static SPRState |
fromId(int sunriseId)
Creates a SPRState enum out of the given id. |
int |
getId()
Gets the Sunrise id of this state. |
boolean |
isCyclic()
Checks if this state means that the SPR is in a cyclic phase. |
boolean |
isEqualOrAfter(SPRState other)
Determines whether the state if equal or after the given state. |
boolean |
isEqualOrBefore(SPRState other)
Determines whether the state if equal or before the given state. |
boolean |
isFailureState()
|
boolean |
isFinalState()
Checks if this state is final, i.e. no other state transition will occur. |
boolean |
isFinished()
Checks if this state means that the SPR is finished, i.e. not executing anymore. |
boolean |
isTransitionState()
Checks if this state is a 1 tact transition between two other consistent states. |
static SPRState |
min(Collection<SPRState> states)
Finds the "minimum" state in a collection of states. |
boolean |
occursAfter(SPRState other)
Checks if current state occurs after (and is not equal to) the given state. |
boolean |
occursBefore(SPRState other)
Checks if current state occurs before (and is not equal to) the given state. |
static SPRState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SPRState[] |
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 SPRState CommandCreated
public static final SPRState Preparing
public static final SPRState PreparationFinished
public static final SPRState Tuning
public static final SPRState WaitingForDrives
public static final SPRState PreActive
public static final SPRState Active
public static final SPRState Maintaining
public static final SPRState Finalize
public static final SPRState CommandFinished
public static final SPRState Stopping
public static final SPRState Invalid
| Method Detail |
|---|
public static SPRState[] values()
for (SPRState c : SPRState.values()) System.out.println(c);
public static SPRState valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic int getId()
public boolean isEqualOrAfter(SPRState other)
other - The state to compare.If null function returns
false.
public boolean isEqualOrBefore(SPRState other)
other - The state to compare.If null function returns
false.
public boolean occursBefore(SPRState other)
other - The state to compare.If null function returns
false.
public boolean occursAfter(SPRState other)
other - The state to compare. If null function returns
false.
public static SPRState min(Collection<SPRState> states)
states - the collection of states
IllegalStateException - if the collection is emptypublic static SPRState fromId(int sunriseId)
sunriseId - The id of the SPR state within Sunrise.
public boolean isCyclic()
public boolean isFinished()
public boolean isFinalState()
public boolean isTransitionState()
public boolean isFailureState()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||