Package org.shredzone.geordi.sensor
Class Sensor
java.lang.Object
org.shredzone.geordi.sensor.Sensor
public class Sensor extends Object
-
Constructor Summary
Constructors Constructor Description Sensor()
-
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
org.json.JSONObject
getConfig()
Reads the sensor config.int
getId()
Reads the sensor ID.String
getName()
Reads the human-readable sensor name.String
getUnit()
Reads the physical unit of the sensor value.int
hashCode()
void
setConfig(org.json.JSONObject config)
Sets the sensor config.void
setId(int id)
Sets the sensor ID.void
setName(String name)
Sets a human-readable sensor name.void
setUnit(String unit)
Sets the physical unit of the sensor value.
-
Constructor Details
-
Method Details
-
getId
Reads the sensor ID. -
setId
Sets the sensor ID. It must be unique. -
getName
Reads the human-readable sensor name. -
setName
Sets a human-readable sensor name. -
getUnit
Reads the physical unit of the sensor value. -
setUnit
Sets the physical unit of the sensor value. -
getConfig
Reads the sensor config. -
setConfig
Sets the sensor config. -
equals
-
hashCode
-