Modifier and Type | Field and Description |
---|---|
private IfDataFinder |
ifdf
IfDataFindr object to call the setInterface() method.
|
private java.lang.String |
wifname
The name of the monitored wireless interface.
|
private WirelessData |
winterf
The WirelessData object of the monitored wireless interface.
|
Constructor and Description |
---|
WifDataFinder() |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
convertChannel(java.lang.String channel) |
java.lang.String |
getDataString()
This method is used to print all data of the wireless interface that is being monitored by this thread.
|
void |
run() |
private void |
setApInfo(java.lang.String temps,
java.io.BufferedReader in) |
private void |
setNetLinkInfo(java.lang.String temps,
java.io.BufferedReader in) |
private void |
setTxpower(java.lang.String temps) |
void |
setWireless()
Sets the wireless interface data.For every data that finds
stores them to the WirelessData object of this thread and if some
data are not available stores them as "Not-available".
|
void |
startThread(java.lang.String wifname,
WirelessData winterf)
Sets the name and the WirelessData object of the wireless interface that this thread
will monitor 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 java.lang.String wifname
private WirelessData winterf
private IfDataFinder ifdf
public void setWireless()
private java.lang.String convertChannel(java.lang.String channel)
private void setNetLinkInfo(java.lang.String temps, java.io.BufferedReader in)
private void setTxpower(java.lang.String temps)
private void setApInfo(java.lang.String temps, java.io.BufferedReader in)
public java.lang.String getDataString()
public void startThread(java.lang.String wifname, WirelessData winterf)
wifname
- the name of the wireless interface to be monitoredwinterf
- the WirelessData object to be monitoredpublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread