|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vanetsim.scenario.events.EventList
public final class EventList
This class stores all events.
Method Summary | |
---|---|
void |
addCurrentBlockings(StartBlocking event)
Adds an event to the list of currently active events. |
void |
addEvent(Event event)
Adds an event. |
void |
clearEvents()
Removes all events. |
void |
delCurrentBlockings(StartBlocking event)
Removes an event from the list of currently active events. |
void |
delEvent(Event event)
Removes an event. |
java.util.ArrayList<StartBlocking> |
getAllBlockingsArrayList()
Gets the list with all blocking events. |
java.util.ArrayList<StartBlocking> |
getCurrentBlockingsArrayList()
Gets the list with the currently active events. |
static EventList |
getInstance()
Gets the single instance of this EventList. |
java.util.Iterator<Event> |
getIterator()
Gets an iterator over all events. |
void |
processEvents(int time)
Process next event(s). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static EventList getInstance()
public void addEvent(Event event)
event
- the eventpublic void delEvent(Event event)
event
- the eventpublic void clearEvents()
public java.util.Iterator<Event> getIterator()
public java.util.ArrayList<StartBlocking> getAllBlockingsArrayList()
public java.util.ArrayList<StartBlocking> getCurrentBlockingsArrayList()
public void addCurrentBlockings(StartBlocking event)
event
- the eventpublic void delCurrentBlockings(StartBlocking event)
event
- the eventpublic void processEvents(int time)
time
- the current absolute time of the simulation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |