new IntervalScheduler()
- Author:
-
- Source:
Members
intervals :Array.<Interval>
Type:
- Source:
observable
- Source:
Methods
addInterval(interval) → {this}
Parameters:
- Source:
Returns:
-
Type
-
this
addSchedule(schedule) → {this}
Calls addInterval() with the given Schedule.
Parameters:
- Source:
Returns:
-
Type
-
this
getObservableForSchedule(interval) → {Observable.<IntervalEventSimple>}
Returns an Observable for the given Interval. Note that, for
finished Intervals, an empty Observable is returned.
Parameters:
Name |
Type |
Description |
interval |
Schedule
|
Interval
|
Must be an instance of Interval |
- Source:
Returns:
-
Type
-
Observable.<IntervalEventSimple>
hasInterval(interval) → {boolean}
Parameters:
- Source:
Returns:
-
Type
-
boolean
hasSchedule(schedule) → {boolean}
Calls hasInterval() with the given Schedule.
Parameters:
- Source:
Returns:
-
Type
-
boolean
(generator) preliminaryEvents(after, before) → {IterableIterator.<PreliminaryScheduleEvent.<Interval, undefined>>}
Parameters:
Name |
Type |
Description |
after |
Date
|
|
before |
Date
|
|
- Source:
Returns:
-
Type
-
IterableIterator.<PreliminaryScheduleEvent.<Interval, undefined>>
removeAllSchedules() → {Array.<Interval>}
Removes all Intervals and returns them. This will lead to the
un-scheduling of all Intervals.
- Source:
Returns:
-
Type
-
Array.<Interval>
removeInterval(interval) → {this}
Parameters:
- Source:
Returns:
-
Type
-
this
removeSchedule(schedule) → {this}
Calls removeInterval() with the given schedule.
Parameters:
- Source:
Returns:
-
Type
-
this