org.oddjob.schedules
Interface RefineableSchedule

All Superinterfaces:
Schedule
All Known Implementing Classes:
AbstractSchedule, AfterSchedule, ConstrainedSchedule, CountSchedule, DailySchedule, DateSchedule, DayAfterSchedule, DayBeforeSchedule, LastSchedule, MonthlySchedule, OccurrenceSchedule, TimeSchedule, WeeklySchedule, YearlySchedule

public interface RefineableSchedule
extends Schedule

Interface for a schedule that can be refined by the addition of a sub schedule. This is designed to aid applications which are building a schedule from some kind of configuration file.


Method Summary
 void setRefinement(Schedule refinement)
          Add a child schedule of the given name.
 
Methods inherited from interface org.oddjob.schedules.Schedule
nextDue
 

Method Detail

setRefinement

void setRefinement(Schedule refinement)
Add a child schedule of the given name. The implementing class will typically use a factory to create the schedule, add it to it's list of child schedules, and return it so that it's attributes may be set by the calling application.

Parameters:
schedule - The child schedule.