add Item
abstract fun addItem(capacity: Int, duration: Double, itemPriority: Int = eventPriority): CapacitySchedule.CapacityItem
Adds an item to the schedule
Return
the created CapacityItem
Parameters
duration
the duration of the item
capacity
a message or datum to attach to the item