|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.chronicj.impl.DefaultSchedule
Default implementation of a Schedule.
| Constructor Summary | |
DefaultSchedule()
Creates an instance of a DefaultSchedule. |
|
| Method Summary | |
void |
add(org.chronicj.Event anEvent,
org.chronicj.TemporalExpression aTemporalExpression)
Adds an Eventwhose occurance is determined by the given
TemporalExpression. |
java.util.List |
dates(org.chronicj.Event anEvent,
org.chronicj.DateRange during)
All calculations are made using DatePrecision#DATE precision. |
boolean |
isOccuring(org.chronicj.Event anEvent,
org.chronicj.DateRange aDateRange)
Default implementation of org.chronicj.Schedule#isOccuring(org.chronicj.Event,org.chronicj.DateRangeImpl). |
boolean |
isOccuring(org.chronicj.Event anEvent,
org.chronicj.TimePoint aTimePoint)
Default implementation of Schedule.isOccuring(org.chronicj.Event,org.chronicj.TimePoint). |
boolean |
isScheduled(org.chronicj.Event anEvent)
|
org.chronicj.TimePoint |
nextOccurence(org.chronicj.Event anEvent,
org.chronicj.TimePoint aTimePoint)
Returns a TimePointindicating the next occurence of the
supplied Eventon or after the given point in time. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultSchedule()
DefaultSchedule.
| Method Detail |
public boolean isOccuring(org.chronicj.Event anEvent,
org.chronicj.DateRange aDateRange)
org.chronicj.Schedule#isOccuring(org.chronicj.Event,org.chronicj.DateRangeImpl).
isOccuring in interface ScheduleanEvent - the Event whose schedule is being queriedaDateRange - the time period in which to check schedule information
java.lang.NullPointerException - if either argument is null
java.lang.IllegalArgumentException - if the DateRange argument is emptyorg.chronicj.Schedule#isOccuring(org.chronicj.Event,org.chronicj.DateRangeImpl)
public boolean isOccuring(org.chronicj.Event anEvent,
org.chronicj.TimePoint aTimePoint)
Schedule.isOccuring(org.chronicj.Event,org.chronicj.TimePoint).
isOccuring in interface ScheduleanEvent - the Event whose schedule is being queriedaTimePoint - the moment in time
java.lang.NullPointerException - if either argument is nullorg.chronicj.Schedule#isOccuring(org.chronicj.Event,org.chronicj.DateRangeImpl)public boolean isScheduled(org.chronicj.Event anEvent)
public void add(org.chronicj.Event anEvent,
org.chronicj.TemporalExpression aTemporalExpression)
ScheduleEventwhose occurance is determined by the given
TemporalExpression.
add in interface ScheduleanEvent - the Event to addaTemporalExpression - the date/time(s) when this Event occurs.
public java.util.List dates(org.chronicj.Event anEvent,
org.chronicj.DateRange during)
DatePrecision#DATE precision.
dates in interface ScheduleanEvent - the Event whose schedule is being queried
org.chronicj.Schedule#dates(org.chronicj.Event,
org.chronicj.DateRangeImpl)
public org.chronicj.TimePoint nextOccurence(org.chronicj.Event anEvent,
org.chronicj.TimePoint aTimePoint)
ScheduleTimePointindicating the next occurence of the
supplied Eventon or after the given point in time.
nextOccurence in interface ScheduleanEvent - the Event whose schedule is being queriedaTimePoint - point in time after which to check the Event's next
occurrence.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||