PriorityQueueEventCalendar

This class provides an event calendar by using a priority queue to hold the underlying events.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val isEmpty: Boolean

Checks to see if the calendar is empty

Functions

Link copied to clipboard
open override fun add(event: KSLEvent<*>)

The add method will place the provided JSLEvent into the underlying data structure ensuring the ordering of the events to be processed

Link copied to clipboard
open override fun clear()

Clears or cancels every event in the data structure. Removes all JSLEvents from the data structure.

Link copied to clipboard
open override fun nextEvent(): KSLEvent<*>

Returns the next JSLEvent to be executed. The event is removed from the calendar if it exists

Link copied to clipboard
open override fun peekNext(): KSLEvent<*>?

Peeks at the next event without removing it

Link copied to clipboard
open override fun size(): Int

Returns the number of events in the calendar