VANET Simulator
 All Classes Functions Variables
Public Member Functions | Protected Attributes | List of all members
vanetsim.scenario.KnownRSU Class Reference

Public Member Functions

 KnownRSU (RSU rsu, long ID, int x, int y, boolean isEncrypted, int time)
 
void setX (int x)
 
void setY (int y)
 
void setLastUpdate (int time)
 
int getX ()
 
int getY ()
 
long getID ()
 
RSU getRSU ()
 
int getLastUpdate ()
 
KnownRSU getNext ()
 
KnownRSU getPrevious ()
 
void setNext (KnownRSU next)
 
void setPrevious (KnownRSU previous)
 
boolean isEncrypted ()
 
void setEncrypted (boolean isEncrypted)
 

Protected Attributes

KnownRSU previous_
 
KnownRSU next_
 

Detailed Description

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 & Destructor Documentation

vanetsim.scenario.KnownRSU.KnownRSU ( RSU  rsu,
long  ID,
int  x,
int  y,
boolean  isEncrypted,
int  time 
)
inline

Instantiates a new known RSU

Parameters
rsuthe Road-Side-Unit
IDthe ID of the RSU
xthe x coordinate
ythe y coordinate
timethe current time
isEncryptedif RSU sends encrypted

Member Function Documentation

long vanetsim.scenario.KnownRSU.getID ( )
inline

Gets the ID.

Returns
the ID
int vanetsim.scenario.KnownRSU.getLastUpdate ( )
inline

Gets when this RSU was last updated.

Returns
the last update time in milliseconds
KnownRSU vanetsim.scenario.KnownRSU.getNext ( )
inline

Returns the KnownRSU after this one.

Returns
the next
KnownRSU vanetsim.scenario.KnownRSU.getPrevious ( )
inline

Returns the KnownRSU before this one.

Returns
the previous
RSU vanetsim.scenario.KnownRSU.getRSU ( )
inline

Gets the RSU.

Returns
the Road-Side-Unit
int vanetsim.scenario.KnownRSU.getX ( )
inline

Gets the x coordinate.

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

Gets the y coordinate.

Returns
the y coordinate
void vanetsim.scenario.KnownRSU.setLastUpdate ( int  time)
inline

Updates the last modification time.

Parameters
timethe current time
void vanetsim.scenario.KnownRSU.setNext ( KnownRSU  next)
inline

Sets the KnownRSU after this one.

Parameters
nextthe object which comes after this one
void vanetsim.scenario.KnownRSU.setPrevious ( KnownRSU  previous)
inline

Sets the KnownRSU before this one.

Parameters
previousthe object which comes before this one
void vanetsim.scenario.KnownRSU.setX ( int  x)
inline

Updates the x coordinate.

Parameters
xthe x coordinate
void vanetsim.scenario.KnownRSU.setY ( int  y)
inline

Updates the y coordinate.

Parameters
ythe y coordinate

Member Data Documentation

KnownRSU vanetsim.scenario.KnownRSU.next_
protected

Link to the next object.

KnownRSU vanetsim.scenario.KnownRSU.previous_
protected

Link to the previous object.


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