de.unikassel.android.sdcframework.data.independent
Class WifiSampleData

Package class diagram package WifiSampleData
java.lang.Object
  extended by de.unikassel.android.sdcframework.data.independent.AbstractSampleData
      extended by de.unikassel.android.sdcframework.data.independent.WifiSampleData
All Implemented Interfaces:
SampleData, SerializableData

public final class WifiSampleData
extends AbstractSampleData

The device specific sample data of a Wifi sensor device are the network name, the access point adress, the device capabilities, the signal level (dBm) and the channel frequency (MHz).

See Also:
WifiDevice, WifiDeviceScanner

Field Summary
private  String BSSID
          The address of the access point.
private  String capabilities
          Describes the authentication, key management, and encryption schemes supported by the access point.
private  boolean connected
          The Flag if the device is currently connected to this network
private  int frequency
          The frequency in MHz of the channel over which the client is communicating with the access point.
private  int level
          The detected signal level in dBm.
private  String SSID
          The network name.
 
Constructor Summary
WifiSampleData()
          Constructor
WifiSampleData(WifiSampleData sampleData)
          Copy-Constructor
 
Method Summary
 SampleData doClone()
          Method to clone sample data
 boolean equals(Object o)
           
 String getBSSID()
          Getter for the address of the access point
 String getCapabilities()
          Getter for the capabilities
 int getFrequency()
          Getter for the the channel frequency in MHz
 int getLevel()
          Getter for the signal level in dBm
 String getSSID()
          Getter for the network name
 boolean isConnected()
          Getter for the connected
 void setBSSID(String BSSID)
          Setter for the address of the access point
 void setCapabilities(String capabilities)
          Setter for the capabilities
 void setConnected(boolean connected)
          Setter for the connected flag
 void setFrequency(int frequency)
          Setter for the channel frequency in MHz
 void setLevel(int level)
          Setter for the signal level in dBm
 void setSSID(String SSID)
          Setter for the network name
 
Methods inherited from class de.unikassel.android.sdcframework.data.independent.AbstractSampleData
clone, getRelatedData, toXML, updateRelatedData
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SSID

private String SSID
The network name.


BSSID

private String BSSID
The address of the access point.


capabilities

private String capabilities
Describes the authentication, key management, and encryption schemes supported by the access point.


frequency

private int frequency
The frequency in MHz of the channel over which the client is communicating with the access point.


level

private int level
The detected signal level in dBm.


connected

private boolean connected
The Flag if the device is currently connected to this network

Constructor Detail

WifiSampleData

public WifiSampleData()
Constructor


WifiSampleData

public WifiSampleData(WifiSampleData sampleData)
Copy-Constructor

Parameters:
sampleData - the sample data to copy from
Method Detail

doClone

public final SampleData doClone()
Description copied from interface: SampleData
Method to clone sample data

Returns:
a copy of the sample data

equals

public final boolean equals(Object o)
Overrides:
equals in class Object

getSSID

public final String getSSID()
Getter for the network name

Returns:
the network name

setSSID

public final void setSSID(String SSID)
Setter for the network name

Parameters:
SSID - the network name to set

getBSSID

public final String getBSSID()
Getter for the address of the access point

Returns:
the address of the access point

setBSSID

public final void setBSSID(String BSSID)
Setter for the address of the access point

Parameters:
BSSID - the address of the access point to set

getCapabilities

public final String getCapabilities()
Getter for the capabilities

Returns:
the capabilities

setCapabilities

public final void setCapabilities(String capabilities)
Setter for the capabilities

Parameters:
capabilities - the capabilities to set

getFrequency

public final int getFrequency()
Getter for the the channel frequency in MHz

Returns:
the the channel frequency in MHz

setFrequency

public final void setFrequency(int frequency)
Setter for the channel frequency in MHz

Parameters:
frequency - the the channel frequency in MHz to set

getLevel

public final int getLevel()
Getter for the signal level in dBm

Returns:
the signal level in dBm

setLevel

public final void setLevel(int level)
Setter for the signal level in dBm

Parameters:
level - the signal level in dBm to set

isConnected

public boolean isConnected()
Getter for the connected

Returns:
the connected

setConnected

public void setConnected(boolean connected)
Setter for the connected flag

Parameters:
connected - the connected flag to set