Class: ManualScheduler

ManualScheduler()

new ManualScheduler()

Author:
Source:

Members

_manualScheduleIds :Object.<string, ManualSchedule>

Type:
Source:

_subscriptions :Object.<string, Subscription>

Type:
  • Object.<string, Subscription>
Source:

manualSchedules :Array.<ManualSchedule>

Type:
Source:

observable

Source:

Methods

_getManualScheduleId(manualSchedule) → {string}

Parameters:
Name Type Description
manualSchedule ManualSchedule
Source:
Returns:
Type
string

_isManualSchedule(schedule) → {boolean}

Parameters:
Name Type Description
schedule ManualSchedule
Source:
Throws:
if schedule is not of type ManualSchedule
Type
Error
Returns:
Type
boolean

addManualSchedule(manualSchedule) → {this}

Parameters:
Name Type Description
manualSchedule ManualSchedule
Source:
Returns:
Type
this

addSchedule(schedule) → {this}

Calls addManualSchedule() with the given Schedule.
Parameters:
Name Type Description
schedule Schedule | ManualSchedule
Source:
Returns:
Type
this

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

Directly obtains and returns a ManualSchedule's Observable. However, its items are mapped to ManualScheduleEventSimple objects, to conform with the type of this method.
Parameters:
Name Type Description
schedule T | Schedule | ManualSchedule
Source:
Returns:
An Observable for the designated schedule.
Type
Observable.<(T|ScheduleEvent|ManualScheduleEventSimple)>

hasManualSchedule(manualSchedule) → {boolean}

Parameters:
Name Type Description
manualSchedule ManualSchedule
Source:
Returns:
Type
boolean

hasSchedule(schedule) → {boolean}

Calls hasManualSchedule() with the given Schedule.
Parameters:
Name Type Description
schedule ManualSchedule
Source:
Returns:
Type
boolean

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

Parameters:
Name Type Attributes Description
after Date <optional>
Optional. Defaults to undefined.
before Date <optional>
Optional. Defaults to undefined.
Source:
Returns:
Type
IterableIterator.<PreliminaryScheduleEvent.<ManualSchedule, any>>

removeAllSchedules() → {Array.<ManualSchedule>}

Removes all ManualSchedules from this scheduler. This will lead to un-scheduling all of the schedules.
Source:
Returns:
Type
Array.<ManualSchedule>

removeManualSchedule(manualSchedule) → {this}

Parameters:
Name Type Description
manualSchedule ManualSchedule
Source:
Returns:
Type
this

removeSchedule(schedule) → {this}

Calls removeManualSchedule() with the given Schedule.
Parameters:
Name Type Description
schedule ManualSchedule
Source:
Returns:
Type
this