addItem

fun addItem(capacity: Int, duration: Double, itemPriority: Int = eventPriority)

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