|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ControllableState> org.keridwen.core.data.model.progress.ControllableState
public enum ControllableState
The state of a process determines if a process is running, over and if it succeeded in accomplishing its task.
Enum Constant Summary | |
---|---|
DONE
Indicates that the process has ended successfully. |
|
ERROR
Indicates that the process exited with errors. |
|
INITIALIZING
Denotes that the process has been initiated but is not running yet. |
|
INTERRUPTED
Indicates that the process has been interupted by the user. |
|
PAUSED
Indicates that the process is currently paused. |
|
RUNNING
Denotes that the process is still running. |
|
STOPPING
Indicates that the process is trying to stop. |
|
UNKNOWN
The state of the process is not known. |
|
WARNING
Indicates that the process has ended with warning messages. |
Method Summary | |
---|---|
boolean |
isFinished()
return true if the state leads to or occurs when the process is terminated (no way to be running anymore) |
boolean |
isRunning()
return true if the state leads to or occurs during process run |
static ControllableState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ControllableState[] |
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 ControllableState UNKNOWN
public static final ControllableState INITIALIZING
public static final ControllableState RUNNING
public static final ControllableState PAUSED
public static final ControllableState INTERRUPTED
public static final ControllableState STOPPING
public static final ControllableState DONE
public static final ControllableState WARNING
public static final ControllableState ERROR
Method Detail |
---|
public static ControllableState[] values()
for (ControllableState c : ControllableState.values()) System.out.println(c);
public static ControllableState 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 boolean isFinished()
public boolean isRunning()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |