|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The daily schedule specifies the time periods during the day when the schedule is active.
The hour schedule consist of two arrays of start times and end times, which defines the intervals when the schedule shall be active. The start time and end time lie between 00.00 and 24.00 hours.
Method Summary | |
java.lang.Object |
clone()
Deep copy of this instance. |
java.util.Calendar[] |
getStartTimes()
Returns the start times when the daily schedule shall be active. |
java.util.Calendar[] |
getStopTimes()
Returns the stop times when the daily schedule shall not be active. |
boolean |
isActive()
Checks if the schedule is active or not. |
void |
setStartTimes(java.util.Calendar[] startTimes)
Sets the start times when the daily schedule shall be active. |
void |
setStopTimes(java.util.Calendar[] stopTimes)
Sets the stop times when the daily schedule shall not be active. |
Method Detail |
public java.lang.Object clone()
public boolean isActive()
If the current time is within the defined schedule this method will return true. If the current time is outside the schedule false will be returned.
Calendar.HOUR_OF_DAY
,
Calendar.MINUTE
,
Calendar.SECOND
public java.util.Calendar[] getStartTimes()
If no start times has been set an empty arry is returned.
setStartTimes(java.util.Calendar[])
public void setStartTimes(java.util.Calendar[] startTimes)
startTimes
- Array of start times which defines when the daily schedule shall be active.getStartTimes()
public java.util.Calendar[] getStopTimes()
If no stop times has been set an empty arry is returned.
setStopTimes(java.util.Calendar[])
public void setStopTimes(java.util.Calendar[] stopTimes)
stopTimes
- Array of stop times which defines when the daily schedule shall not be active.getStopTimes()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |