Modifier and Type | Field and Description |
---|---|
private java.util.List<AccessPointData> |
accessPointList
List that stores the available access points that are found.
|
private boolean |
changeOccured
Boolean that shows if there was a change in the access points list.
|
private java.lang.String |
wifname
Name of the wireless interface that is used to scan the environment for available access points.
|
Constructor and Description |
---|
AvailableAccessPoints() |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
convertChannel(java.lang.String channel) |
java.util.List<AccessPointData> |
getAccessPointList() |
java.lang.String |
getWifname() |
void |
printApData()
This method is used to print all data of the available access points that this thread has found.
|
void |
run() |
void |
scan()
Scans the environment for available access points and sets the access point data
for each one of them.For every access point that finds, creates an AvailableAccessPoints object and
adds it to the list.The data that finds for each object stores them to it and if some
data are not available stores them as "Not-available".
|
void |
setAccessPointList(java.util.List<AccessPointData> accessPointList) |
void |
setWifname(java.lang.String wifname) |
void |
startThread(java.lang.String wifname)
Sets the name of the wireless interface that this thread
will, at first, use to monitor the environment for access points
and then starts running the thread.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
private volatile java.util.List<AccessPointData> accessPointList
private java.lang.String wifname
private boolean changeOccured
public java.util.List<AccessPointData> getAccessPointList()
public void setAccessPointList(java.util.List<AccessPointData> accessPointList)
public java.lang.String getWifname()
public void setWifname(java.lang.String wifname)
public void scan()
private java.lang.String convertChannel(java.lang.String channel)
public void printApData()
public void startThread(java.lang.String wifname)
wifname
- the name of the wireless interface to be usedpublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread