public class CapabilityStateRepresents the state of a Capability.
The state of a capability is valid at a particular point in time.
If a particular capability is enabled at time T, there is no guarantee as to if it will be available at time T+1. When a maintenance period is scheduled, there will be usually advance notice as to when the capability is disabled.
Methods
getCapability()
public Capability getCapability()Returns the capability associated with this CapabilityState.
| Returns | |
|---|---|
| Type | Description |
Capability |
the capability associated with this CapabilityState. |
getScheduledDate()
public Date getScheduledDate()Returns the schedule date of maintenance for this activity.
This call will return a Date instance if and only if the status is SCHEDULED_MAINTENANCE.
| Returns | |
|---|---|
| Type | Description |
Date |
the schedule maintenance date for this activity or
|
getStatus()
public CapabilityStatus getStatus()Returns the status of the capability.
| Returns | |
|---|---|
| Type | Description |
CapabilityStatus |
the status of the capability. |