|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vanetsim.scenario.events.Event vanetsim.scenario.events.StopBlocking
public final class StopBlocking
This class represents an event which ends blocking on a street ("unblock").
Constructor Summary | |
---|---|
StopBlocking(int time,
int x,
int y)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(Event other)
Compare to another event. |
void |
destroy()
Destroys itself. |
void |
execute()
Execute the task. |
java.lang.String |
getText()
Returns a descriptive text for display in the GUI. |
int |
getX()
Gets the x coordinate. |
int |
getY()
Gets the y coordinate. |
Methods inherited from class vanetsim.scenario.events.Event |
---|
getTextColor, getTime |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StopBlocking(int time, int x, int y) throws java.text.ParseException
time
- the time in milliseconds when this event gets activex
- the x coordinate of this eventy
- the y coordinate of this event
java.text.ParseException
- the parse exceptionMethod Detail |
---|
public int getX()
public int getY()
public java.lang.String getText()
getText
in class Event
Event.getText()
public int compareTo(Event other)
other
- the other event
-1
if other
is larger, 1
if it's smaller and 0 if both are equal.Comparable.compareTo(java.lang.Object)
public void execute()
execute
in class Event
Event.execute()
public void destroy()
destroy
in class Event
Event.destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |