CapacityScheduleData

@Serializable
data class CapacityScheduleData @JvmOverloads constructor(val capacityItems: List<CapacityItemData>, var initialStartTime: Double = 0.0, var isScheduleRepeatable: Boolean = false, var isAutoStartFlag: Boolean = true) : ToJSONIfc(source)

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

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.

Constructors

Link copied to clipboard
constructor(capacityItems: List<CapacityItemData>, initialStartTime: Double = 0.0, isScheduleRepeatable: Boolean = false, isAutoStartFlag: Boolean = true)
constructor(capacities: IntArray, duration: Double, initialStartTime: Double = 0.0, isScheduleRepeatable: Boolean = false, isAutoStartFlag: Boolean = true)

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toJson(): String