Interface ScheduleManager
-
- All Superinterfaces:
ExtensionPointManager
public interface ScheduleManager extends ExtensionPointManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddHoliday(HolidayModel newHoliday, UICallback ui)voidaddSchedule(AbstractScheduleModel model, UICallback ui)booleancheckSchedule(java.lang.String schedule, long date)Checks to see if the schedule named is active or not at the given time.booleancheckSchedule(java.lang.String schedule, java.util.Date date)Checks to see if the schedule named is active or not at the given time.voideditHoliday(java.lang.String originalName, HolidayModel holiday, UICallback ui)voideditSchedule(java.lang.String originalName, AbstractScheduleModel model, UICallback ui)HolidayModelgetHoliday(java.lang.String holidayName)java.util.List<HolidayModel>getHolidays()AbstractScheduleModelgetScheduleModel(java.lang.String schedule)Returns the model of the named schedulejava.util.List<java.lang.String>getSchedules()Return a list of all defined schedulesbooleanisScheduleDefined(java.lang.String schedule)Checks to see if there is a schedule with the given name.voidremoveHoliday(java.lang.String holidayName, UICallback ui)voidremoveSchedule(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)
-
-