|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvanetsim.map.JunctionQueue
public final class JunctionQueue
A queue for the vehicles waiting on a junction.
| Constructor Summary | |
|---|---|
JunctionQueue()
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
addVehicle(Vehicle vehicle)
Adds a vehicle to the queue. |
void |
cleanUp()
Cleans up. |
void |
delFirstVehicle()
Deletes the first vehicle in this queue. |
boolean |
delVehicle(Vehicle vehicle)
Removes a vehicle from the queue. |
Vehicle |
getFirstVehicle()
Gets the first vehicle in this queue. |
int |
size()
Returns the size of this queue. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JunctionQueue()
| Method Detail |
|---|
public boolean addVehicle(Vehicle vehicle)
vehicle - the vehicle to add
true if a vehicle was added, false if it previously existed in this queue.public boolean delVehicle(Vehicle vehicle)
vehicle - the vehicles to remove
true if a vehicle was found and deleted, else falsepublic void delFirstVehicle()
public void cleanUp()
public Vehicle getFirstVehicle()
public int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||