VANET Simulator
 All Classes Functions Variables
Public Member Functions | Static Public Member Functions | List of all members
vanetsim.scenario.AttackRSU Class Reference

Public Member Functions

 AttackRSU (int x, int y, int radius)
 
int getX ()
 
int getY ()
 
int getWifiRadius ()
 
long getArsuID_ ()
 

Static Public Member Functions

static final boolean deleteARSU (int x, int y)
 
static final AttackRSU getARSU (int x, int y)
 

Detailed Description

A Road-Side-Unit to intercept WiFi signals.

Constructor & Destructor Documentation

vanetsim.scenario.AttackRSU.AttackRSU ( int  x,
int  y,
int  radius 
)
inline

Instantiates a new Attack-RSU.

Parameters
xthe x coordinate
ythe y coordinate
radiusthe signal radius

Member Function Documentation

static final boolean vanetsim.scenario.AttackRSU.deleteARSU ( int  x,
int  y 
)
inlinestatic

Searches for an arsu near this coordinates and deletes it. Returns true if an arsu was found and deleted.

Parameters
xcoordinate of the ARSU to delete
ycoordinate of the ARSU to delete
Returns
if delete or no
static final AttackRSU vanetsim.scenario.AttackRSU.getARSU ( int  x,
int  y 
)
inlinestatic

Get a Attack RSU with coordinates

Parameters
xX coordinate
yY coordinate
Returns
the Attack RSU or null
long vanetsim.scenario.AttackRSU.getArsuID_ ( )
inline

Returns the ARSU ID

Returns
the ID of this arsu
int vanetsim.scenario.AttackRSU.getWifiRadius ( )
inline

Returns the wifi radius

Returns
the wifi radius in cm
int vanetsim.scenario.AttackRSU.getX ( )
inline

Returns the x coordinate of the RSU

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

Returns the y coordinate of the RSU

Returns
the y coordinate

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