CapacityScheduleData

constructor(capacityItems: List<CapacityItemData>, initialStartTime: Double = 0.0, isScheduleRepeatable: Boolean = false, isAutoStartFlag: Boolean = true)(source)

Parameters

capacityItems

the items on the schedule

initialStartTime

the start time of the schedule. Defaults to 0.0

isScheduleRepeatable

indicates if the schedule should repeat. The default is false.

isAutoStartFlag

indicates if the schedule should automatically start itself. The default is true.


constructor(capacities: IntArray, duration: Double, initialStartTime: Double = 0.0, isScheduleRepeatable: Boolean = false, isAutoStartFlag: Boolean = true)(source)

A data class to represent the data associated with a CapacitySchedule.

Parameters

capacities

the capacities for each duration. The array must not be empty. All capacity values must be greater than or equal to 0

duration

the common duration for each capacity value. Must be greater than 0.0

initialStartTime

the start time of the schedule. Defaults to 0.0

isScheduleRepeatable

indicates if the schedule should repeat. The default is false.

isAutoStartFlag

indicates if the schedule should automatically start itself. The default is true.