Package com.irurueta.navigation.indoor
Class WifiAccessPoint
java.lang.Object
com.irurueta.navigation.indoor.WifiAccessPoint
- All Implemented Interfaces:
RadioSource,Serializable
- Direct Known Subclasses:
WifiAccessPointLocated,WifiAccessPointWithPower
Data related to a WiFi access point.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEmpty constructor.WifiAccessPoint(String bssid, double frequency) Constructor.WifiAccessPoint(String bssid, double frequency, String ssid) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether two access points are considered to be equal or not.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.doubleGets frequency used by this Access Point (expressed in Hz).getSsid()Gets service set identifier (SSID) of this 802.11 network.getType()Gets radio source type, which can be either a Wi-Fi Access point or a bluetooth Beacon.inthashCode()Returns hashcode associated to this access point.
-
Field Details
-
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 frequencyFrequency used by this Access Point (expressed in Hz). -
ssid
Service set identifier (SSID) of this 802.11 network. This value is optional.
-
-
Constructor Details
-
WifiAccessPoint
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
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
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:
getFrequencyin interfaceRadioSource- Returns:
- frequency used by this Access Point (expressed in Hz).
-
getSsid
Gets service set identifier (SSID) of this 802.11 network.- Returns:
- service set identifier (SSID).
-
equals
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:
equalsin interfaceRadioSource- Overrides:
equalsin classObject- 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. -
getType
Gets radio source type, which can be either a Wi-Fi Access point or a bluetooth Beacon.- Specified by:
getTypein interfaceRadioSource- Returns:
- radio source type.
-