|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.treesched.AbstractSchedule
org.treesched.RegularSchedule
org.treesched.schedules.IntervalSchedule
This schedule returns an interval from the given time to the interval time later. Commonly used within a time schedule.
Typical configuration is:
<interval interval="00:20"/>>
| Field Summary | |
static java.lang.String |
DEFAULT_DATE_FORMAT
|
| Constructor Summary | |
IntervalSchedule()
Constructor. |
|
| Method Summary | |
java.lang.String |
getFormat()
Get the date format used for translating string attributes. |
java.util.Date |
next(java.util.Date from)
Given a date, return the date which is interval of this RegularScheudle later. |
void |
setFormat(java.lang.String dateFormat)
Set the date format to use for translating string attributes. |
void |
setInterval(java.lang.String interval)
Set the interval. |
| Methods inherited from class org.treesched.RegularSchedule |
nextDue, toString |
| Methods inherited from class org.treesched.AbstractSchedule |
addChildSchedule, getChildSchedule, getLimits, reset, setChildSchedule, setLimits |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String DEFAULT_DATE_FORMAT
| Constructor Detail |
public IntervalSchedule()
| Method Detail |
public void setFormat(java.lang.String dateFormat)
dateFormat - The date format.public java.lang.String getFormat()
public void setInterval(java.lang.String interval)
throws java.text.ParseException
interval - The interval.
java.text.ParseException - If the interval is not a valid date.public java.util.Date next(java.util.Date from)
RegularSchedule
next in class RegularSchedulefrom - The date from which this schedule runs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||