|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.ucm.look.locationProviderWifi.wifi.NodoWifi
public class NodoWifi
Mantains information of an Access Point
Field Summary | |
---|---|
static int |
MAX_DIF
MAX signal level - MIN signal level |
Constructor Summary | |
---|---|
NodoWifi(java.lang.String bssid,
int level,
int id)
Parameterized contructor. |
Method Summary | |
---|---|
static int |
averageLevel(java.util.ArrayList<java.lang.Integer> l)
Calculates the average signal of a list of signal values |
int |
compareTo(java.lang.Object o)
Compares two nodes by signal level |
java.lang.String |
getBssid()
Returns MAC address of the access point |
int |
getId()
Returns the id number of the access point |
java.lang.String |
getKey()
Returns the id number of the access point as a string |
int |
getLevel()
Returns signal level of the access point |
int |
getSignalSimilarity(int signal)
Compares the current AP signal with another and returns the similarity level between them. |
static int |
maxLevel(java.util.ArrayList<java.lang.Integer> l)
Calculates the maximum signal of a list of signal values |
java.lang.String |
toString()
Returns access point information as a string |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MAX_DIF
Constructor Detail |
---|
public NodoWifi(java.lang.String bssid, int level, int id)
bssid
- MAC address of the access pointlevel
- Signal levelid
- Id nunmberMethod Detail |
---|
public static int averageLevel(java.util.ArrayList<java.lang.Integer> l)
l
- List of signal levels
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable<java.lang.Object>
o
- Node to compare with the current
public java.lang.String getBssid()
public int getId()
public java.lang.String getKey()
public int getLevel()
public int getSignalSimilarity(int signal)
signal
- Signal level of the other AP.
public static int maxLevel(java.util.ArrayList<java.lang.Integer> l)
l
- List of signal levels
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |