Class: Schedule

Schedule(bone)

The run schedule for an instance. A schedule covers one week long start/stop cycle of an instance. Feed it with one day schedule definitions and it will be happy to serve you.

Constructor

new Schedule(bone)

Creates a new schedule based on the given trackbone tag

Parameters:
Name Type Description
bone string

The trackbone tag value

Author:
Source:

Methods

addScheduleDefinition(scheduleDefinition)

Adds a ScheduleDefinition to this schedule.

Parameters:
Name Type Description
scheduleDefinition ScheduleDefinition
Source:

instanceShouldRun(weekday, time) → {boolean}

Get, whether an instance with this schedule should be running at a given moment.

Parameters:
Name Type Description
weekday number

The number of the day of the week (1-7)

time string

The time in 24h format (hh:mm)

Source:
Returns:
Type
boolean