class

Quartz::PriorityQueue(T)

Inherits Reference / Object

A PriorityQueue is the base class to implement a planning strategy for all future events to be evaluated. Events should be dequeued in a strict order of precedence, according to their associated priority.

The priority is represented by the Duration data type, which represent a planned phase, an offset from the beginning of the current epoch relative to the current simulated time.

It is internally used by the pending event set EventSet.

Constructors

new(priority_queue : Symbol, &comparator : Duration, Duration, Bool -> Int32) : self
Source

Instance methods

clear
Source
delete(priority : Duration, value : T) : T | Nil
Source
empty?
Source
next_priority
Source
peek
Source
peek?
Source
pop_imminents
Source
push(priority : Duration, value : T)
Source
size
Source