org.treesched.schedules
Class AfterSchedule

java.lang.Object
  extended byorg.treesched.AbstractSchedule
      extended byorg.treesched.schedules.AfterSchedule
All Implemented Interfaces:
RefineableSchedule, Schedule, java.io.Serializable

public final class AfterSchedule
extends AbstractSchedule
implements java.io.Serializable

This schedule returns an interval which is a point in time after it's child interval.

Typical configuration is:

 <after<
   <interval interval="00:20"/>>
 >/after<
 

Author:
Rob Gordon
See Also:
Serialized Form

Constructor Summary
AfterSchedule()
           
 
Method Summary
 Interval nextDue(java.util.Date now)
          For a given date a schedule will provide the interval this schedule should next be scheduled in.
 
Methods inherited from class org.treesched.AbstractSchedule
addChildSchedule, getChildSchedule, getLimits, reset, setChildSchedule, setLimits
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AfterSchedule

public AfterSchedule()
Method Detail

nextDue

public Interval nextDue(java.util.Date now)
Description copied from interface: Schedule
For a given date a schedule will provide the interval this schedule should next be scheduled in.

If the schedule is never due again for the given date, null is returned.

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