org.flexiblepower.ral.messages
public enum AllocationStatus extends java.lang.Enum<AllocationStatus>
Allocation
.Enum Constant and Description |
---|
ACCEPTED
The appliance driver has accepted the
Allocation , meaning that it will try to follow the instructions
from the Allocation message as closely as possible. |
FINISHED
When the
Allocation has been completed, the appliance driver will inform the energy app by sending a
finished event. |
PROCESSING
The driver has not yet started but is processing the instructions in order to be able to start on time.
|
REJECTED
The driver is not able or willing to follow up the instructions.
|
STARTED
The driver has started the
Allocation of the energy app. |
Modifier and Type | Method and Description |
---|---|
static AllocationStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AllocationStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AllocationStatus ACCEPTED
Allocation
, meaning that it will try to follow the instructions
from the Allocation
message as closely as possible.public static final AllocationStatus REJECTED
public static final AllocationStatus PROCESSING
public static final AllocationStatus STARTED
Allocation
of the energy app.public static final AllocationStatus FINISHED
Allocation
has been completed, the appliance driver will inform the energy app by sending a
finished event.public static AllocationStatus[] values()
for (AllocationStatus c : AllocationStatus.values()) System.out.println(c);
public static AllocationStatus 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 namejava.lang.NullPointerException
- if the argument is null