vanetsim.scenario
Class AttackRSU

java.lang.Object
  extended by vanetsim.scenario.AttackRSU

public final class AttackRSU
extends java.lang.Object

A Road-Side-Unit to intercept WiFi signals.


Constructor Summary
AttackRSU(int x, int y, int radius)
          Instantiates a new Attack-RSU.
 
Method Summary
static boolean deleteARSU(int x, int y)
          Searches for an arsu near this coordinates and deletes it.
static AttackRSU getARSU(int x, int y)
          Get a Attack RSU with coordinates
 long getArsuID_()
          Returns the ARSU ID
 int getWifiRadius()
          Returns the wifi radius
 int getX()
          Returns the x coordinate of the RSU
 int getY()
          Returns the y coordinate of the RSU
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttackRSU

public AttackRSU(int x,
                 int y,
                 int radius)
Instantiates a new Attack-RSU.

Parameters:
x - the x coordinate
y - the y coordinate
radius - the signal radius
Method Detail

deleteARSU

public static final boolean deleteARSU(int x,
                                       int y)
Searches for an arsu near this coordinates and deletes it. Returns true if an arsu was found and deleted.

Parameters:
x - coordinate of the ARSU to delete
y - coordinate of the ARSU to delete
Returns:
if delete or no

getARSU

public static final AttackRSU getARSU(int x,
                                      int y)
Get a Attack RSU with coordinates

Parameters:
x - X coordinate
y - Y coordinate
Returns:
the Attack RSU or null

getX

public int getX()
Returns the x coordinate of the RSU

Returns:
the x coordinate

getY

public int getY()
Returns the y coordinate of the RSU

Returns:
the y coordinate

getWifiRadius

public int getWifiRadius()
Returns the wifi radius

Returns:
the wifi radius in cm

getArsuID_

public long getArsuID_()
Returns the ARSU ID

Returns:
the ID of this arsu