public class GenericWeeklySchedule extends Object implements SessionSchedule
Constructor and Description |
---|
GenericWeeklySchedule() |
Modifier and Type | Method and Description |
---|---|
void |
addInterval(WeeklyInterval interval)
Adds activity interval.
|
WeeklyIntervalList |
getIntervalList()
Returns list of activity intervals.
|
SessionSchedule |
validate()
Validates scheduled intervals.
|
public void addInterval(WeeklyInterval interval) throws ScheduleValidationException
interval
- activity intervalScheduleValidationException
- if interval
validation failedpublic WeeklyIntervalList getIntervalList()
getIntervalList
in interface SessionSchedule
public SessionSchedule validate() throws ScheduleValidationException
SessionSchedule
validate
in interface SessionSchedule
ScheduleValidationException
- if the interval(s) is(are) invalid.Copyright © 2005–2024 Onix Solutions. All rights reserved.