org.chronicj
Interface ScheduleElement

All Known Implementing Classes:
DefaultScheduleElement

public interface ScheduleElement

Encapsulates the information and behaviour for specific Events in the context of a Schedule.

This class is based directly on patterns described in a paper by Martin Fowler which can be found here.

Author:
Matthew Lipper
See Also:
Recurring Events for Calendars

Method Summary
 boolean isOccuring(org.chronicj.Event anEvent, org.chronicj.DateRange aDateRange)
          Determines if a given event occurs within a particular data range.
 boolean isOccuring(org.chronicj.Event anEvent, org.chronicj.TimePoint aTimePoint)
          Determines if a given event occurs during a particular instant in time.
 

Method Detail

isOccuring

public boolean isOccuring(org.chronicj.Event anEvent,
                          org.chronicj.TimePoint aTimePoint)
Determines if a given event occurs during a particular instant in time.

Parameters:
anEvent - the Event
aTimePoint - the moment in time
Returns:
a boolean value indicating whether the event occurs during the specified TimePoint

isOccuring

public boolean isOccuring(org.chronicj.Event anEvent,
                          org.chronicj.DateRange aDateRange)
Determines if a given event occurs within a particular data range.

Parameters:
anEvent - the Event whose schedule is being queried
aDateRange - the time period in which to check
Returns:
a boolean value indicating whether the event occurs within the specified DateRange


Copyright © 2003-2004 Digital Clash Software. All Rights Reserved.