Class WifiAccessPoint

java.lang.Object
com.irurueta.navigation.indoor.WifiAccessPoint
All Implemented Interfaces:
RadioSource, Serializable
Direct Known Subclasses:
WifiAccessPointLocated, WifiAccessPointWithPower

public class WifiAccessPoint extends Object implements Serializable, RadioSource
Data related to a WiFi access point.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
    Basic service set identifier of this access point in the form of a six-byte MAC address: xx:xx:xx:xx:xx:xx.
    private double
    Frequency used by this Access Point (expressed in Hz).
    private String
    Service set identifier (SSID) of this 802.11 network.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Empty constructor.
     
    WifiAccessPoint(String bssid, double frequency)
    Constructor.
     
    WifiAccessPoint(String bssid, double frequency, String ssid)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether two access points are considered to be equal or not.
    Gets the basic service set identifier of this access point in the form of a six-byte MAC address: xx:xx:xx:xx:xx:xx.
    double
    Gets frequency used by this Access Point (expressed in Hz).
    Gets service set identifier (SSID) of this 802.11 network.
    Gets radio source type, which can be either a Wi-Fi Access point or a bluetooth Beacon.
    int
    Returns hashcode associated to this access point.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • bssid

      private String bssid
      Basic service set identifier of this access point in the form of a six-byte MAC address: xx:xx:xx:xx:xx:xx.
    • frequency

      private double frequency
      Frequency used by this Access Point (expressed in Hz).
    • ssid

      private String ssid
      Service set identifier (SSID) of this 802.11 network. This value is optional.
  • Constructor Details

    • WifiAccessPoint

      public WifiAccessPoint(String bssid, double frequency)
      Constructor.
      Parameters:
      bssid - basic service set identifier of this access point in the form of a six-byte MAC address: xx:xx:xx:xx:xx:xx.
      frequency - frequency used by this Access Point (expressed in Hz).
      Throws:
      IllegalArgumentException - if BSSID is null or frequency is negative.
    • WifiAccessPoint

      public WifiAccessPoint(String bssid, double frequency, String ssid)
      Constructor.
      Parameters:
      bssid - basic service set identifier of this access point in the form of a six-byte MAC address: xx:xx:xx:xx:xx:xx.
      frequency - frequency used by this Access Point (expressed in Hz).
      ssid - service set identifier (SSID) of this 802.11 network.
      Throws:
      IllegalArgumentException - if BSSID is null or frequency is negative.
    • WifiAccessPoint

      protected WifiAccessPoint()
      Empty constructor.
  • Method Details

    • getBssid

      public String getBssid()
      Gets the basic service set identifier of this access point in the form of a six-byte MAC address: xx:xx:xx:xx:xx:xx.
      Returns:
      the basic service set identifier.
    • getFrequency

      public double getFrequency()
      Gets frequency used by this Access Point (expressed in Hz).
      Specified by:
      getFrequency in interface RadioSource
      Returns:
      frequency used by this Access Point (expressed in Hz).
    • getSsid

      public String getSsid()
      Gets service set identifier (SSID) of this 802.11 network.
      Returns:
      service set identifier (SSID).
    • equals

      public boolean equals(Object obj)
      Indicates whether two access points are considered to be equal or not. Two access points are considered equal if they have the same BSSID.
      Specified by:
      equals in interface RadioSource
      Overrides:
      equals in class Object
      Parameters:
      obj - other object to be compared.
      Returns:
      true if both access points are considered to be equal, false otherwise.
    • hashCode

      public int hashCode()
      Returns hashcode associated to this access point.
      Overrides:
      hashCode in class Object
      Returns:
      hashcode associated to this access point.
    • getType

      public RadioSourceType getType()
      Gets radio source type, which can be either a Wi-Fi Access point or a bluetooth Beacon.
      Specified by:
      getType in interface RadioSource
      Returns:
      radio source type.