org.oddjob.schedules.schedules
Class ParentChildSchedule

java.lang.Object
  extended by org.oddjob.schedules.schedules.ParentChildSchedule
All Implemented Interfaces:
Schedule

public class ParentChildSchedule
extends Object
implements Schedule

A help class for resolving a single parent/child schedule.

Author:
rob

Constructor Summary
ParentChildSchedule(Schedule parent, Schedule child)
           
 
Method Summary
 ScheduleResult nextDue(ScheduleContext context)
          Provides the next due interval for the parent and child.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParentChildSchedule

public ParentChildSchedule(Schedule parent,
                           Schedule child)
Method Detail

nextDue

public ScheduleResult nextDue(ScheduleContext context)
Provides the next due interval for the parent and child.

Specified by:
nextDue in interface Schedule
Returns:
The next due interval for the schedule.