Class: IntervalScheduler

IntervalScheduler()

new IntervalScheduler()

Author:
Source:

Extends

Members

intervals :Array.<Interval>

Type:
Source:

observable :Observable.<IntervalEventSimple>

Type:
Overrides:
Source:

Methods

addInterval(interval) → {this}

Parameters:
Name Type Description
interval Interval
Source:
Returns:
Type
this

addSchedule(schedule) → {this}

Calls addInterval() with the given Schedule.
Parameters:
Name Type Description
schedule Interval
Overrides:
Source:
Returns:
Type
this

getObservableForSchedule(schedule) → {Observable.<(T|ScheduleEvent)>}

Parameters:
Name Type Description
schedule T | Schedule
Overrides:
Source:
Returns:
An Observable for the designated schedule.
Type
Observable.<(T|ScheduleEvent)>

hasInterval(interval) → {Boolean}

Parameters:
Name Type Description
interval Interval
Source:
Returns:
Type
Boolean

hasSchedule(schedule) → {Boolean}

Calls hasInterval() with the given Schedule.
Parameters:
Name Type Description
schedule Interval
Overrides:
Source:
Returns:
Type
Boolean

(generator) preliminaryEvents(afteropt, beforeopt) → {IterableIterator.<PreliminaryScheduleEvent.<(T|Schedule), any>>}

A generator that supposedly yields all schedules' preliminary events.
Parameters:
Name Type Attributes Description
after Date <optional>
Optional. Defaults to undefined.
before Date <optional>
Optional. Defaults to undefined.
Overrides:
Source:
Returns:
Type
IterableIterator.<PreliminaryScheduleEvent.<(T|Schedule), any>>

removeAllSchedules() → {Array.<Schedule>}

Removes all Schedules from this scheduler. This is an abstract methdod.
Overrides:
Source:
Returns:
All Schedules as array.
Type
Array.<Schedule>

removeInterval(interval) → {this}

Parameters:
Name Type Description
interval Interval
Source:
Returns:
Type
this

removeSchedule(schedule) → {this}

Calls removeInterval() with the given schedule.
Parameters:
Name Type Description
schedule Interval
Overrides:
Source:
Returns:
Type
this