|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.treesched.AbstractSchedule
org.treesched.ConstrainedSchedule
A base class for a Schedule which has a from and a to date.
| Constructor Summary | |
ConstrainedSchedule()
|
|
| Method Summary | |
abstract java.util.Date |
getEndDate(java.util.Date now)
For the given time, calculate when this schedule interval should finish. |
abstract java.lang.String |
getFrom()
Get the from date/time as a String. |
abstract java.util.Date |
getStartDate(java.util.Date now)
For the given time, calculate when this schedule should start or should have started. |
abstract java.lang.String |
getTo()
Get the to date/time as a String. |
Interval |
nextDue(java.util.Date now)
For a given date a schedule will provide the interval this schedule should next be scheduled in. |
abstract void |
setFrom(java.lang.String from)
Set the from date/time as a String. |
void |
setOn(java.lang.String on)
Set the on date as a string. |
abstract void |
setTo(java.lang.String to)
Set the to date/time as a String. |
java.lang.String |
toString()
Override 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 |
| Constructor Detail |
public ConstrainedSchedule()
| Method Detail |
public abstract void setFrom(java.lang.String from)
throws java.text.ParseException
from - The from date.
java.text.ParseException - If the String can not be parsed
to a date.public abstract java.lang.String getFrom()
public abstract void setTo(java.lang.String to)
throws java.text.ParseException
to - The to date.
java.text.ParseException - If the String can not be parsed
to a date.public abstract java.lang.String getTo()
public abstract java.util.Date getStartDate(java.util.Date now)
now - The date/time now.
public abstract java.util.Date getEndDate(java.util.Date now)
now - The date/time now.
public void setOn(java.lang.String on)
throws java.text.ParseException
java.text.ParseException - If the string isn't a date.public Interval nextDue(java.util.Date now)
ScheduleIf the schedule is never due again for the given date, null is returned.
now - The date now.
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||