public class ScheduleCondition extends java.lang.Object implements Rule.Condition
Rule.
As the name suggests schedule conditions are time based conditions, which can used solely or in
conjunction with ResourceCondition
to form constraint in a rule.
Schedule condition encapsulates the information about time and duration of a resource upon which Scene and Rule can be triggered.
| Modifier and Type | Class and Description |
|---|---|
static class |
ScheduleCondition.Builder
Builder design pattern to create a Schedule Condition object.
|
static class |
ScheduleCondition.ScheduleType
Type of scheduling options for a schedule condition that a user can set.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SCHEDULE_CONDITION_ID
Default ID of the
ScheduleCondition. |
| Modifier and Type | Method and Description |
|---|---|
ScheduleCondition |
duplicate()
A function to create new copy of this
ScheduleCondition. |
java.time.LocalTime |
getExpiryTime()
A function to get expiry time of the
ScheduleCondition as LocalTime. |
int |
getId()
A function to get unique ID of this
ScheduleCondition in Network. |
ScheduleCondition.ScheduleType |
getScheduleType()
A function to get
ScheduleCondition.ScheduleType of the ScheduleCondition. |
java.time.Instant |
getStartTime()
A function to get the start time of the
ScheduleCondition. |
java.lang.String |
toString() |
public static final int DEFAULT_SCHEDULE_CONDITION_ID
ScheduleCondition.public int getId()
ScheduleCondition in Network.ScheduleCondition.public java.time.Instant getStartTime()
ScheduleCondition.public java.time.LocalTime getExpiryTime()
ScheduleCondition as LocalTime.public ScheduleCondition.ScheduleType getScheduleType()
ScheduleCondition.ScheduleType of the ScheduleCondition.ScheduleCondition.ScheduleType of the condition.public ScheduleCondition duplicate()
ScheduleCondition.duplicate in interface Rule.ConditionScheduleConditionpublic java.lang.String toString()
toString in class java.lang.Object