|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<EventStatus> edu.nrao.sss.util.EventStatus
public enum EventStatus
An indicator for where an event is in its life cycle.
This status is meant for use by atomic events -- those that
are not collections of other events. A related but distinct
enumeration, EventSetStatus
, is available for
events that are collections of other events. For example,
in the SSS Model, an "execution block" would be atomic and
use this enumeration, while a a "scheduling block", which
holds a collection of execution blocks, would use the
EventSetStatus enumeration.
Version Info:
$Revision: 1042 $ |
$Date: 2008-01-14 09:37:55 -0700 (Mon, 14 Jan 2008) $ |
$Author: dharland $ (last person to modify) |
Enum Constant Summary | |
---|---|
CANCELED
Indicates that an event has been canceled. |
|
COMPLETED
Indicates that an event has been completed. |
|
IN_PROGRESS
Indicates that an event is currently in progress. |
|
NOT_READY_TO_BE_SCHEDULED
Indicates that an event is not yet ready to be scheduled. |
|
NOT_YET_SCHEDULED
Indicates that an event has not yet been scheduled. |
|
ON_HOLD
Indicates that an event has been put on hold. |
|
SCHEDULED_BUT_NOT_STARTED
Indicates that an event has been scheduled but has not yet begun. |
Method Summary | |
---|---|
static EventStatus |
fromString(String text)
Returns the status represented by text . |
boolean |
isFinal()
Returns true if this status is a final status for an event. |
String |
toString()
Returns a text representation of this enumeration constant. |
EnumSet<EventStatus> |
validNextStatuses()
Returns a set of status that are permitted to follow this status. |
static EventStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static EventStatus[] |
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, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final EventStatus NOT_READY_TO_BE_SCHEDULED
public static final EventStatus NOT_YET_SCHEDULED
public static final EventStatus SCHEDULED_BUT_NOT_STARTED
public static final EventStatus IN_PROGRESS
public static final EventStatus COMPLETED
public static final EventStatus ON_HOLD
public static final EventStatus CANCELED
Method Detail |
---|
public static EventStatus[] values()
for (EventStatus c : EventStatus.values()) System.out.println(c);
public static EventStatus 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 isFinal()
public EnumSet<EventStatus> validNextStatuses()
public String toString()
toString
in class Enum<EventStatus>
public static EventStatus fromString(String text)
text
.
For details about the transformation, see
EnumerationUtility.enumFromString(Class, String)
.
text
- a text representation of a status.
text
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |