Class EventQueue
java.lang.Object
org.episteme.natural.engineering.eventdriven.EventQueue
A synchronized priority queue for events.
Handles high-priority internal events and normal events.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondequeue()booleanisEmpty()doublePeeks at the next event time without removing it.voidqueueInternal(Event event) voidqueueNormal(Event event)
-
Constructor Details
-
EventQueue
public EventQueue()
-
-
Method Details
-
peekNextTime
public double peekNextTime()Peeks at the next event time without removing it. Returns Double.NaN if queues are empty. -
dequeue
- Throws:
InterruptedException
-
queueNormal
-
queueInternal
-
isEmpty
public boolean isEmpty()
-