org.jboss.dtf.testframework.coordinator2.scheduler.types
Class WeeklySchedule
java.lang.Object
org.jboss.dtf.testframework.coordinator2.scheduler.types.ScheduleInformation
org.jboss.dtf.testframework.coordinator2.scheduler.types.WeeklySchedule
- All Implemented Interfaces:
- java.io.Serializable
public class WeeklySchedule
- extends ScheduleInformation
- See Also:
- Serialized Form
Constructor Summary |
WeeklySchedule(java.util.Date startDateTime,
int weeks,
int[] daysOfWeek)
|
Methods inherited from class org.jboss.dtf.testframework.coordinator2.scheduler.types.ScheduleInformation |
addFailure, associateFile, delete, deleteIfNecessary, deserialize, getAssociatedFile, getDistributionList, getFailures, getSoftwareVersion, getTestDefinitionsURL, getTestSelectionsURL, getUniqueId, serialize, serialize, setRunInformation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WeeklySchedule
public WeeklySchedule(java.util.Date startDateTime,
int weeks,
int[] daysOfWeek)
getStartDateTime
public java.util.Date getStartDateTime()
getNumberOfWeeks
public int getNumberOfWeeks()
getDaysOfWeek
public int[] getDaysOfWeek()
isOnThisDay
public boolean isOnThisDay(int day)
getNextActivationTime
public java.util.Calendar getNextActivationTime()
- Retrieves the a Date object containing the time and date this
schedule next becomes active.
- Specified by:
getNextActivationTime
in class ScheduleInformation
- Returns:
- The next activation time.
createSchedule
public static WeeklySchedule createSchedule(java.util.Date startDateTime,
int weeks,
int[] daysOfWeek)
throws ScheduleException
- Throws:
ScheduleException
isScheduleFinished
public boolean isScheduleFinished()
- Returns true if the schedule has now finished.
- Specified by:
isScheduleFinished
in class ScheduleInformation
- Returns:
- True if the schedule is finished.