|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.treesched.ScheduleList
Provide a schedule based on a list of schedules. All schedules are evaluated and that schedule which is due to start first is used.
Most schedules use this class to support a list of child scheudules
such as this.
<schedule>
<day-of-week on="mon"/>
<day-of-week on="fri"/>
</schedule>
| Constructor Summary | |
ScheduleList()
|
|
| Method Summary | |
void |
addChildSchedule(Schedule schedule)
Add a schedule to the list. |
Interval |
getLimits()
Get any limits set for this schedule. |
Interval |
nextDue(java.util.Date now)
For a given date a schedule will provide the interval this schedule should next be scheduled in. |
void |
reset()
Reset the child schedules. |
void |
setLimits(Interval limits)
Specifies limits for the schedule. |
int |
size()
The number of subschedules this list contains. |
java.lang.String |
toString()
Override toString to be more useful. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ScheduleList()
| Method Detail |
public void setLimits(Interval limits)
ScheduleSchedule.nextDue(Date)
must be within the limits.
A repeating schedule will also use the start of the limit to calculate the boundry between intervals.
setLimits in interface Schedulelimits - The interval which bounds the schedule.public Interval getLimits()
public int size()
public void addChildSchedule(Schedule schedule)
addChildSchedule in interface RefineableScheduleschedule - The schedule to add.public Interval nextDue(java.util.Date now)
ScheduleIf the schedule is never due again for the given date, null is returned.
nextDue in interface Schedulenow - The date now.
public void reset()
reset in interface Schedulepublic java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||