// time range for the day public IntervalSchedule( string schid, DateTime startTime, int secs, TimeSpan fromTime, TimeSpan toTime, ScheduleJob[] jobs, bool IsPrimary) : base(schid, startTime, ScheduleType.INTERVAL, jobs, IsPrimary) { m_fromTime = fromTime; m_toTime = toTime; Interval = secs; }
public Schedule(string schid, DateTime startTime, ScheduleType type, int duationMin, ScheduleJob[] jobs, bool IsPrimary) { StartTime = startTime; m_nextTime = startTime; m_type = type; m_schid = schid; m_durationMin = duationMin; this.jobs = jobs; this.IsPrimary = IsPrimary; foreach (ScheduleJob job in jobs) job.setSchedule(this); }
public MonthlySchedule(string schid, DateTime startTime, ScheduleJob[] jobs,bool IsPrimary) : base(schid, startTime, ScheduleType.MONTHLY, jobs, IsPrimary) { }
public WeeklySchedule(string schid, DateTime startTime, ScheduleJob[] jobs, bool IsPrimary) : base(schid, startTime, ScheduleType.WEEKLY, jobs, IsPrimary) { }
public DailySchedule(string schid, DateTime startTime, int durationMin, ScheduleJob[] jobs, bool IsPrimary) : base(schid, startTime, ScheduleType.DAILY, durationMin, jobs, IsPrimary) { }
public OneTimeSchedule(string schid, DateTime startTime, int durMin, ScheduleJob[] jobs, bool IsPrimary) : base(schid, startTime, ScheduleType.ONETIME, jobs, IsPrimary) { //this.durMin = durMin; this.m_durationMin = durMin; }
// public int durMin; public OneTimeSchedule( string schid, DateTime startTime, ScheduleJob[] jobs,bool IsPrimary) : this(schid, startTime, 0, jobs, IsPrimary) { }