|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.chronicj.impl.DefaultScheduleElement
Default implementation of a ScheduleElement that can be used to compose a Schedule.
ScheduleElement| Constructor Summary | |
DefaultScheduleElement(org.chronicj.Event anEvent,
org.chronicj.TemporalExpression anExpression)
Create a default ScheduleElement
using the supplied Event and TemporalExpression. |
|
| Method Summary | |
boolean |
isOccuring(org.chronicj.Event anEvent,
org.chronicj.DateRange aDateRange)
Default implementation of org.chronicj.ScheduleElement#isOccuring(org.chronicj.Event,org.chronicj.DateRangeImpl)
that will return the logical AND of calling
isOccuring(org.chronicj.Event,org.chronicj.TimePoint)
for the start and end dates of the supplied DateRange. |
boolean |
isOccuring(org.chronicj.Event anEvent,
org.chronicj.TimePoint aTimePoint)
Default implementation of ScheduleElement.isOccuring(org.chronicj.Event,org.chronicj.TimePoint)
that will return true if the supplied Event
takes place during the supplied TimePoint. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultScheduleElement(org.chronicj.Event anEvent,
org.chronicj.TemporalExpression anExpression)
ScheduleElement
using the supplied Event and TemporalExpression.
anEvent - the event to be scheduledanExpression - the TemporalExpression that defines when the event occurs
java.lang.NullPointerException - if either argument is null| Method Detail |
public boolean isOccuring(org.chronicj.Event anEvent,
org.chronicj.TimePoint aTimePoint)
ScheduleElement.isOccuring(org.chronicj.Event,org.chronicj.TimePoint)
that will return true if the supplied Event
takes place during the supplied TimePoint.
isOccuring in interface ScheduleElementanEvent - the Event whose schedule is being queriedaTimePoint - an instant in time
java.lang.NullPointerException - if either argument is nullScheduleElement.isOccuring(org.chronicj.Event,org.chronicj.TimePoint)
public boolean isOccuring(org.chronicj.Event anEvent,
org.chronicj.DateRange aDateRange)
org.chronicj.ScheduleElement#isOccuring(org.chronicj.Event,org.chronicj.DateRangeImpl)
that will return the logical AND of calling
isOccuring(org.chronicj.Event,org.chronicj.TimePoint)
for the start and end dates of the supplied DateRange.
isOccuring in interface ScheduleElementanEvent - the Event whose schedule is being queriedaDateRange - the time period in which to check
java.lang.NullPointerException - if either argument is null
java.lang.IllegalArgumentException - if the DateRange argument is emptyorg.chronicj.ScheduleElement#isOccuring(org.chronicj.Event,
org.chronicj.DateRangeImpl)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||