VANET Simulator
 All Classes Functions Variables
Public Member Functions | Protected Attributes | List of all members
vanetsim.scenario.events.Event Class Referenceabstract
Inheritance diagram for vanetsim.scenario.events.Event:
vanetsim.scenario.events.StartBlocking vanetsim.scenario.events.StopBlocking

Public Member Functions

abstract String getText ()
 
abstract void destroy ()
 
abstract void execute ()
 
int getTime ()
 
Color getTextColor ()
 

Protected Attributes

int time_
 
Color color_
 

Detailed Description

An abstract class for events.

Member Function Documentation

abstract void vanetsim.scenario.events.Event.destroy ( )
pure virtual
abstract void vanetsim.scenario.events.Event.execute ( )
pure virtual

This function should be called when the event is due. The event here does all needed actions.

Implemented in vanetsim.scenario.events.StopBlocking, and vanetsim.scenario.events.StartBlocking.

abstract String vanetsim.scenario.events.Event.getText ( )
pure virtual

Returns a descriptive text for display in the GUI.

Returns
the text

Implemented in vanetsim.scenario.events.StopBlocking, and vanetsim.scenario.events.StartBlocking.

Color vanetsim.scenario.events.Event.getTextColor ( )
inline

Gets the color of the descriptive text for display in the GUI.

Returns
the text color
See Also
vanetsim.scenario.events.Event::getTextColor()
int vanetsim.scenario.events.Event.getTime ( )
inline

Gets the time when this event will be fired.

Returns
the time
See Also
vanetsim.scenario.events.Event::getTime()

Member Data Documentation

Color vanetsim.scenario.events.Event.color_
protected

The color for display of this event.

int vanetsim.scenario.events.Event.time_
protected

The time in milliseconds when this event gets active.


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