CapacitySchedule

constructor(parent: ModelElement, startTime: Double = 0.0, autoStartOption: Boolean = true, repeatable: Boolean = false, eventPriority: Int = KSLEvent.DEFAULT_PRIORITY, name: String? = null)(source)

Parameters

parent

the parent model element holding the schedule

startTime

the time after the start of the replication that the schedule should start. The default is 0.0

autoStartOption

whether the schedule should start automatically. The default is true.

repeatable

whether the schedule will automatically repeat. The default is false.

eventPriority

the default priority of the events used to start each item on the schedule

name

an optional name for the schedule


constructor(parent: ModelElement, capacityScheduleData: CapacityScheduleData, eventPriority: Int = KSLEvent.DEFAULT_PRIORITY, name: String? = null)(source)

Creates a CapacitySchedule based on capacity schedule data

Author

rossetti

Parameters

parent

the parent model element holding the schedule

capacityScheduleData

the schedule data

eventPriority

the default priority of the events used to start each item on the schedule

name

an optional name for the schedule


constructor(parent: ModelElement, capacities: IntArray, duration: Double, startTime: Double = 0.0, autoStartOption: Boolean = true, repeatable: Boolean = false, eventPriority: Int = KSLEvent.DEFAULT_PRIORITY, name: String? = null)(source)

Creates a CapacitySchedule based on capacity schedule data

Author

rossetti

Parameters

parent

the parent model element holding the schedule

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

capacityScheduleData

the schedule data

eventPriority

the default priority of the events used to start each item on the schedule

name

an optional name for the schedule