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

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

public final class GSMSampleData
extends AbstractSampleData

The device specific sample data of a GSM sensor device are the operator name, the cell id, the location area code and the signal strength.

See Also:
GSMDevice, GSMDeviceScanner

Field Summary
private  int cellId
          The GSM cell ID
private  int locationAreaCode
          The GSM location area code
private  List<GSMNeighborCell> neighbors
           
private  String operator
          The operator name if available ( null if unknown )
private  int signalStrength
          The GSM received signal strength indicator
 
Constructor Summary
GSMSampleData()
          Constructor
GSMSampleData(GSMSampleData sampleData)
          Copy Constructor
 
Method Summary
 SampleData doClone()
          Method to clone sample data
 boolean equals(Object o)
           
 int getCellId()
          Getter for the cell Id
 int getLocationAreaCode()
          Getter for the location area code
 List<GSMNeighborCell> getNeighbors()
          Getter for the neighbors cell list
 String getOperator()
          Getter for the operator
 int getSignalStrength()
          Getter for the signal strength
 void setCellId(int cellId)
          Setter for the cell Id
 void setLocationAreaCode(int locationAreaCode)
          Setter for the location area code
 void setNeighbors(List<GSMNeighborCell> neighbors)
          Setter for the neighbors cell list
 void setOperator(String operator)
          Setter for the operator
 void setSignalStrength(int signalStrength)
          Setter for the signal strength
 
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

operator

private String operator
The operator name if available ( null if unknown )


cellId

private int cellId
The GSM cell ID


locationAreaCode

private int locationAreaCode
The GSM location area code


signalStrength

private int signalStrength
The GSM received signal strength indicator


neighbors

private List<GSMNeighborCell> neighbors
Constructor Detail

GSMSampleData

public GSMSampleData()
Constructor


GSMSampleData

public GSMSampleData(GSMSampleData sampleData)
Copy Constructor

Parameters:
sampleData - the sample 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

getNeighbors

public final List<GSMNeighborCell> getNeighbors()
Getter for the neighbors cell list

Returns:
the neighbors cell list

setNeighbors

public final void setNeighbors(List<GSMNeighborCell> neighbors)
Setter for the neighbors cell list

Parameters:
neighbors - the neighbors cell list to set

getOperator

public final String getOperator()
Getter for the operator

Returns:
the operator

setOperator

public final void setOperator(String operator)
Setter for the operator

Parameters:
operator - the operator to set

getCellId

public final int getCellId()
Getter for the cell Id

Returns:
the cell Id

setCellId

public final void setCellId(int cellId)
Setter for the cell Id

Parameters:
cellId - the cell Id to set

getLocationAreaCode

public final int getLocationAreaCode()
Getter for the location area code

Returns:
the location area code

setLocationAreaCode

public final void setLocationAreaCode(int locationAreaCode)
Setter for the location area code

Parameters:
locationAreaCode - the location area code to set

getSignalStrength

public final int getSignalStrength()
Getter for the signal strength

Returns:
the signal strength

setSignalStrength

public final void setSignalStrength(int signalStrength)
Setter for the signal strength

Parameters:
signalStrength - the signal strength to set