/**
 * TimerResult.java
 * Created on Jul 10, 2008
 * (C) Copyright TANDBERG Television Ltd.
 */
package com.tandbergtv.watchpoint.pmm.job.timers;

import java.util.Date;

/**
 * An object of this class is currently returned by various timer classes.
 * It contains: 
 * - a flag to indicate whether or not it is a periodic task
 * - the periodicity of this task 
 * - The date from which this periodicty should be applied.
 * 
 * @author spuranik
 * 
 */
public class TimerResult {

	public Date startDate;	
	public boolean isPeriodic;
	public long repeatInterval;

	/**
	 * @return the startDate
	 */
	public Date getStartDate() {
		return startDate;
	}

	/**
	 * @param startDate
	 *            the startDate to set
	 */
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	
	/**
	 * @return the periodic
	 */
	public boolean getIsPeriodic() {
		return isPeriodic;
	}

	/**
	 * @param periodic the periodic to set
	 */
	public void setIsPeriodic(boolean isPeriodic) {
		this.isPeriodic = isPeriodic;
	}

	/**
	 * @return the repeatInterval
	 */
	public long getRepeatInterval() {
		return repeatInterval;
	}

	/**
	 * @param repeatInterval the repeatInterval to set
	 */
	public void setRepeatInterval(long repeatInterval) {
		this.repeatInterval = repeatInterval;
	}
	
	/**
	 * @param isPeriodic 	
	 * @param repeatInterval
	 * @param startDate
	 */
	public TimerResult(boolean isPeriodic, long repeatInterval, Date startDate) {
		this.isPeriodic = isPeriodic;
		this.repeatInterval = repeatInterval;
		this.startDate = startDate;
	}
}
