org.pentaho.platform.scheduler2.recur
Class IncrementalRecurrence

java.lang.Object
  extended by org.pentaho.platform.scheduler2.recur.IncrementalRecurrence
All Implemented Interfaces:
ITimeRecurrence

public class IncrementalRecurrence
extends Object
implements ITimeRecurrence

Used to specify incremental dates or times. For example an incremental recurrence with 1 as a starting value and 3 as an increment translates to 1, 4, 7, etc. The time units may represent years, or days of month or hours, etc. The method to which this class is passed will determine the meaning of the integers within the list.

Author:
arodriguez

Constructor Summary
IncrementalRecurrence()
          Creates a new incremental recurrence with a null starting value and increment
IncrementalRecurrence(Integer startingValue, Integer increment)
          Creates a new incremental recurrence.
 
Method Summary
 Integer getIncrement()
          Returns the increment
 Integer getStartingValue()
          Returns the starting value
 void setIncrement(Integer increment)
          Sets the increment
 void setStartingValue(Integer startingValue)
          Sets the starting value
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncrementalRecurrence

public IncrementalRecurrence()
Creates a new incremental recurrence with a null starting value and increment


IncrementalRecurrence

public IncrementalRecurrence(Integer startingValue,
                             Integer increment)
Creates a new incremental recurrence.

Parameters:
startingValue - the starting value
increment - the increment
Method Detail

getStartingValue

public Integer getStartingValue()
Returns the starting value

Returns:
the starting value

setStartingValue

public void setStartingValue(Integer startingValue)
Sets the starting value

Parameters:
startingValue - the starting value

getIncrement

public Integer getIncrement()
Returns the increment

Returns:
the increment

setIncrement

public void setIncrement(Integer increment)
Sets the increment

Parameters:
increment - the increment