VANET Simulator
 All Classes Functions Variables
Public Member Functions | Static Public Member Functions | List of all members
vanetsim.scenario.events.EventList Class Reference

Public Member Functions

void addEvent (Event event)
 
void delEvent (Event event)
 
void clearEvents ()
 
Iterator< EventgetIterator ()
 
ArrayList< StartBlockinggetAllBlockingsArrayList ()
 
ArrayList< StartBlockinggetCurrentBlockingsArrayList ()
 
void addCurrentBlockings (StartBlocking event)
 
void delCurrentBlockings (StartBlocking event)
 
void processEvents (int time)
 

Static Public Member Functions

static EventList getInstance ()
 

Detailed Description

This class stores all events.

Member Function Documentation

void vanetsim.scenario.events.EventList.addCurrentBlockings ( StartBlocking  event)
inline

Adds an event to the list of currently active events.

Parameters
eventthe event
void vanetsim.scenario.events.EventList.addEvent ( Event  event)
inline

Adds an event.

Parameters
eventthe event
void vanetsim.scenario.events.EventList.clearEvents ( )
inline

Removes all events.

void vanetsim.scenario.events.EventList.delCurrentBlockings ( StartBlocking  event)
inline

Removes an event from the list of currently active events.

Parameters
eventthe event
void vanetsim.scenario.events.EventList.delEvent ( Event  event)
inline

Removes an event.

Parameters
eventthe event
ArrayList<StartBlocking> vanetsim.scenario.events.EventList.getAllBlockingsArrayList ( )
inline

Gets the list with all blocking events. Note that this is not optimal for application performance as new a complete new ArrayList is created (applies only if there are lots of events).

Returns
the an array list with all blocking events.
ArrayList<StartBlocking> vanetsim.scenario.events.EventList.getCurrentBlockingsArrayList ( )
inline

Gets the list with the currently active events.

Returns
the current events array list
static EventList vanetsim.scenario.events.EventList.getInstance ( )
inlinestatic

Gets the single instance of this EventList.

Returns
single instance of this EventList
Iterator<Event> vanetsim.scenario.events.EventList.getIterator ( )
inline

Gets an iterator over all events.

Returns
the iterator
void vanetsim.scenario.events.EventList.processEvents ( int  time)
inline

Process next event(s).

Parameters
timethe current absolute time of the simulation

The documentation for this class was generated from the following file: