|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vanetsim.scenario.KnownRSU
public class KnownRSU
A known RSU (discovered by receiving a beacon). The variables represent what is known and might differ from the real ones if it hasn't been updated for some time!
Constructor Summary | |
---|---|
KnownRSU(RSU rsu,
long ID,
int x,
int y,
boolean isEncrypted,
int time)
Instantiates a new known RSU |
Method Summary | |
---|---|
long |
getID()
Gets the ID. |
int |
getLastUpdate()
Gets when this RSU was last updated. |
KnownRSU |
getNext()
Returns the KnownRSU after this one. |
KnownRSU |
getPrevious()
Returns the KnownRSU before this one. |
RSU |
getRSU()
Gets the RSU. |
int |
getX()
Gets the x coordinate. |
int |
getY()
Gets the y coordinate. |
boolean |
isEncrypted()
|
void |
setEncrypted(boolean isEncrypted)
|
void |
setLastUpdate(int time)
Updates the last modification time. |
void |
setNext(KnownRSU next)
Sets the KnownRSU after this one. |
void |
setPrevious(KnownRSU previous)
Sets the KnownRSU before this one. |
void |
setX(int x)
Updates the x coordinate. |
void |
setY(int y)
Updates the y coordinate. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KnownRSU(RSU rsu, long ID, int x, int y, boolean isEncrypted, int time)
rsu
- the Road-Side-UnitID
- the ID of the RSUx
- the x coordinatey
- the y coordinatetime
- the current timeisEncrypted
- if RSU sends encryptedMethod Detail |
---|
public void setX(int x)
x
- the x coordinatepublic void setY(int y)
y
- the y coordinatepublic void setLastUpdate(int time)
time
- the current timepublic int getX()
public int getY()
public long getID()
public RSU getRSU()
public int getLastUpdate()
public KnownRSU getNext()
public KnownRSU getPrevious()
public void setNext(KnownRSU next)
next
- the object which comes after this onepublic void setPrevious(KnownRSU previous)
previous
- the object which comes before this onepublic boolean isEncrypted()
public void setEncrypted(boolean isEncrypted)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |