public class TimedEventQueue
extends java.lang.Object
Constructor and Description |
---|
TimedEventQueue(IModel model) |
Modifier and Type | Method and Description |
---|---|
void |
addTimedEventListener(ITimedEventListener tel,
java.util.concurrent.Executor executor) |
void |
dispose() |
void |
enqueue(ITimedEvent te)
queue up the event.
|
boolean |
fireExpiredEvents(double currentTime)
check the queue for events that should be fired.
|
java.util.Collection<ITimedEvent> |
getFiringEvents()
return the events that will fire right now.
|
IModel |
getModel() |
double |
getNextEndTime()
returns the time of the next expiring event, you should check the size
first..
|
java.util.Collection<ITimedEvent> |
getPendingEvents()
return all the events that are pending.
|
boolean |
isEmpty()
is the queue empty?
|
void |
removeTimedEventListener(ITimedEventListener tel) |
public TimedEventQueue(IModel model)
public void dispose()
public IModel getModel()
public boolean isEmpty()
public double getNextEndTime()
public void enqueue(ITimedEvent te)
public java.util.Collection<ITimedEvent> getPendingEvents()
public java.util.Collection<ITimedEvent> getFiringEvents()
public boolean fireExpiredEvents(double currentTime)
currentTime
- public void addTimedEventListener(ITimedEventListener tel, java.util.concurrent.Executor executor)
public void removeTimedEventListener(ITimedEventListener tel)