Package net.thevpc.naru.ext.tools.plan
Enum Class NaruPlanStatus
- All Implemented Interfaces:
Serializable,Comparable<NaruPlanStatus>,Constable
Aggregate state of a whole
NaruPlan, always derived from its items by
NaruPlan.status(). It is never stored, so it cannot drift from the items.
Note this used to be the per-step status enum; the item lifecycle lives in
NaruPlanItemStatus.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNothing is runnable and at least one item isNaruPlanItemStatus.BLOCKEDorNaruPlanItemStatus.FAILED.Every item isNaruPlanItemStatus.DONE.At least one item isNaruPlanItemStatus.READY,NaruPlanItemStatus.RUNNINGorNaruPlanItemStatus.VALIDATING.Items exist but none is currently runnable or running. -
Method Summary
Modifier and TypeMethodDescriptionstatic net.thevpc.nuts.util.NOptional<NaruPlanStatus>static NaruPlanStatusReturns the enum constant of this class with the specified name.static NaruPlanStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PENDING
Items exist but none is currently runnable or running. -
OPEN
At least one item isNaruPlanItemStatus.READY,NaruPlanItemStatus.RUNNINGorNaruPlanItemStatus.VALIDATING. -
BLOCKED
Nothing is runnable and at least one item isNaruPlanItemStatus.BLOCKEDorNaruPlanItemStatus.FAILED. Needs a human to make progress. -
COMPLETED
Every item isNaruPlanItemStatus.DONE.
-
-
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
-
parse
-