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

Public Member Functions

 StopBlocking (int time, int x, int y) throws ParseException
 
int getX ()
 
int getY ()
 
String getText ()
 
int compareTo (Event other)
 
void execute ()
 
void destroy ()
 
- Public Member Functions inherited from vanetsim.scenario.events.Event
int getTime ()
 
Color getTextColor ()
 

Additional Inherited Members

- Protected Attributes inherited from vanetsim.scenario.events.Event
int time_
 
Color color_
 

Detailed Description

This class represents an event which ends blocking on a street ("unblock").

Constructor & Destructor Documentation

vanetsim.scenario.events.StopBlocking.StopBlocking ( int  time,
int  x,
int  y 
) throws ParseException
inline

Constructor.

Parameters
timethe time in milliseconds when this event gets active
xthe x coordinate of this event
ythe y coordinate of this event
Exceptions
ParseExceptionthe parse exception

Member Function Documentation

int vanetsim.scenario.events.StopBlocking.compareTo ( Event  other)
inline

Compare to another event.

Parameters
otherthe other event
Returns
-1 if other is larger, 1 if it's smaller and 0 if both are equal.
See Also
java.lang.Comparable::compareTo(java.lang.Object)
void vanetsim.scenario.events.StopBlocking.destroy ( )
inlinevirtual
void vanetsim.scenario.events.StopBlocking.execute ( )
inlinevirtual
String vanetsim.scenario.events.StopBlocking.getText ( )
inlinevirtual

Returns a descriptive text for display in the GUI.

Returns
the text
See Also
vanetsim.scenario.events.Event::getText()

Implements vanetsim.scenario.events.Event.

int vanetsim.scenario.events.StopBlocking.getX ( )
inline

Gets the x coordinate.

Returns
the x coordinate
int vanetsim.scenario.events.StopBlocking.getY ( )
inline

Gets the y coordinate.

Returns
the y coordinate

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