Interface ScheduleManager
-
- All Superinterfaces:
ExtensionPointManager
public interface ScheduleManager extends ExtensionPointManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addHoliday(HolidayModel newHoliday, UICallback ui)
void
addSchedule(AbstractScheduleModel model, UICallback ui)
boolean
checkSchedule(java.lang.String schedule, long date)
Checks to see if the schedule named is active or not at the given time.boolean
checkSchedule(java.lang.String schedule, java.util.Date date)
Checks to see if the schedule named is active or not at the given time.void
editHoliday(java.lang.String originalName, HolidayModel holiday, UICallback ui)
void
editSchedule(java.lang.String originalName, AbstractScheduleModel model, UICallback ui)
HolidayModel
getHoliday(java.lang.String holidayName)
java.util.List<HolidayModel>
getHolidays()
AbstractScheduleModel
getScheduleModel(java.lang.String schedule)
Returns the model of the named schedulejava.util.List<java.lang.String>
getSchedules()
Return a list of all defined schedulesboolean
isScheduleDefined(java.lang.String schedule)
Checks to see if there is a schedule with the given name.void
removeHoliday(java.lang.String holidayName, UICallback ui)
void
removeSchedule(java.lang.String name, UICallback ui)
-
Methods inherited from interface com.inductiveautomation.ignition.gateway.model.ExtensionPointManager
getExtensionPoint, getExtensionPoints
-
-
-
-
Method Detail
-
checkSchedule
boolean checkSchedule(java.lang.String schedule, java.util.Date date)
Checks to see if the schedule named is active or not at the given time. If the schedule doesn't exist, false will be returned.
-
checkSchedule
boolean checkSchedule(@Nullable java.lang.String schedule, long date)
Checks to see if the schedule named is active or not at the given time. If the schedule doesn't exist, false will be returned.
-
isScheduleDefined
boolean isScheduleDefined(java.lang.String schedule)
Checks to see if there is a schedule with the given name. Names are case insensitive.
-
getSchedules
java.util.List<java.lang.String> getSchedules()
Return a list of all defined schedules
-
getScheduleModel
AbstractScheduleModel getScheduleModel(java.lang.String schedule)
Returns the model of the named schedule
-
removeSchedule
void removeSchedule(java.lang.String name, UICallback ui)
-
addSchedule
void addSchedule(AbstractScheduleModel model, UICallback ui)
-
editSchedule
void editSchedule(java.lang.String originalName, AbstractScheduleModel model, UICallback ui)
-
getHolidays
@Nonnull java.util.List<HolidayModel> getHolidays()
-
getHoliday
@Nullable HolidayModel getHoliday(java.lang.String holidayName)
-
removeHoliday
void removeHoliday(java.lang.String holidayName, UICallback ui)
-
addHoliday
void addHoliday(HolidayModel newHoliday, UICallback ui)
-
editHoliday
void editHoliday(java.lang.String originalName, HolidayModel holiday, UICallback ui)
-
-