useSchedule

abstract fun useSchedule(schedule: CapacitySchedule, changeRule: CapacityChangeRule = CapacityChangeRule.IGNORE)

Tells the resource to listen and react to capacity changes in the supplied schedule. The model cannot be running when changing the schedule.

Parameters

schedule

the schedule to use

changeRule

the rule to follow. By default, it is CapacityChangeRule.IGNORE.