|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Event
Basic interface of any simulation event. Events are sorted in first order by their time and in second order by their priority.
Field Summary | |
---|---|
static java.util.Comparator<Event> |
COMPARATOR
Comparison function, which imposes a total ordering of events. |
static int |
DEFAULT_PRIORITY
The default priority of events. |
Method Summary | |
---|---|
void |
addEventListener(EventListener listener)
Add an model for this event. |
java.util.Collection<EventListener> |
getEventListeners()
Get the unmodifiable collection of the event listeners for this event. |
int |
getPriority()
Retrieve the event's priority. |
Time |
getTime()
Retrieve the event's time. |
void |
imported(Calendar calendar)
This event was pushed to a calendar. |
boolean |
inform()
Request, if this event is an internal or external event. |
boolean |
isInitialized()
Check, if this event has just been created. |
boolean |
isPopped()
Check, if this event has already executed. |
boolean |
isPushed()
Check, if this event has already been pushed to a calendar. |
Event |
popped(Calendar calendar)
This event was popped from a calendar. |
Event |
pushed(Calendar calendar)
This event was pushed to a calendar. |
void |
removeEventListener(EventListener listener)
Remove an model for this event. |
Methods inherited from interface jasi.sim.basic.value.ExtendedComparable |
---|
isEQ, isGE, isGT, isLE, isLT, isNE |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface jasi.sim.basic.id.SimObject |
---|
getId, setId |
Field Detail |
---|
static final java.util.Comparator<Event> COMPARATOR
static final int DEFAULT_PRIORITY
Method Detail |
---|
boolean isInitialized()
boolean isPushed()
boolean isPopped()
java.util.Collection<EventListener> getEventListeners()
void addEventListener(EventListener listener)
listener
- The model to handle the event.void removeEventListener(EventListener listener)
listener
- The model to handle the event.Time getTime()
int getPriority()
boolean inform()
void imported(Calendar calendar)
calendar
- The calendar, where this event was pushed to.Event pushed(Calendar calendar)
calendar
- The calendar, where this event was pushed to.
Event popped(Calendar calendar)
calendar
- The calendar which popped this event.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |