|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vanetsim.scenario.LaneObject
public class LaneObject
This class represents an object which is on a lane of a street. Use this class as a base for all object which are on a lane (for example with a vehicle).
Constructor Summary | |
---|---|
LaneObject()
|
Method Summary | |
---|---|
boolean |
getCurDirection()
Gets the current direction on the street. |
int |
getCurLane()
Gets the current lane. |
double |
getCurPosition()
Gets the current relative position of this object. |
int |
getCurSpeed()
Gets the current speed of this object. |
Street |
getCurStreet()
Gets the current street. |
LaneObject |
getNext()
Returns the LaneObject after this one. |
LaneObject |
getPrevious()
Returns the LaneObject before this one. |
int |
getX()
Gets the current x coordinate. |
int |
getY()
Gets the current y coordinate. |
void |
setNext(LaneObject next)
Sets the LaneObject after this one. |
void |
setPrevious(LaneObject previous)
Sets the LaneObject before this one. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LaneObject()
Method Detail |
---|
public int getX()
public int getY()
public int getCurSpeed()
public double getCurPosition()
public int getCurLane()
public Street getCurStreet()
public boolean getCurDirection()
true
= moving from startNode to endNodefalse
= moving from endNode to startNodepublic LaneObject getNext()
public LaneObject getPrevious()
public void setNext(LaneObject next)
next
- the object which comes after this onepublic void setPrevious(LaneObject previous)
previous
- the object which comes before this one
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |