Package se.hendeby.sensordata
Class CellRssData
java.lang.Object
se.hendeby.sensordata.SensorData
se.hendeby.sensordata.CellRssData
Radio data class.
-
Field Summary
Fields inherited from class se.hendeby.sensordata.SensorData
DATA_FIELDS_USED, sensorInfo, time -
Constructor Summary
ConstructorsConstructorDescriptionCellRssData(long time, int networkType, String networkFamily, String operator, int ci, int pci, int rss) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic CellRssDatadeserialize(String[] strs) intgetCI()intintgetPCI()intgetRSS()byte[]Serialize the measurement for streaming or saving to file.Methods inherited from class se.hendeby.sensordata.SensorData
deserialize, getTime, getValues
-
Constructor Details
-
CellRssData
public CellRssData(long time, int networkType, String networkFamily, String operator, int ci, int pci, int rss) Constructor.- Parameters:
time- Timestamp [ms].networkType- Type of the networknetworkFamily- Family of the networkoperator- Operator stringci- CI valuepci- PCI valuerss- Received signal strength (RSS)
-
-
Method Details
-
getNetworkType
public int getNetworkType() -
getNetworkFamily
-
getOperator
-
getCI
public int getCI() -
getPCI
public int getPCI() -
getRSS
public int getRSS() -
serialize
public byte[] serialize()Description copied from class:SensorDataSerialize the measurement for streaming or saving to file.- Overrides:
serializein classSensorData- Returns:
- The serialized measurement in a byte array.
-
deserialize
-