public class SuperSensor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected SensorMessage |
lastMessage |
protected SensorType |
sensorType |
| Modifier | Constructor and Description |
|---|---|
|
SuperSensor()
Ctor.
|
protected |
SuperSensor(SensorType type)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Name of the sensor.
|
SensorType |
getSensorType()
SensorType is a descriptor used for creating particular instance and for
getting type information about particular sensor.
|
double |
getTime()
Timestamp form the UT since server start in seconds.
|
String |
getType()
Type describes the sensor type.
|
Boolean |
isReady()
Used to make sure the object is filled.
|
void |
updateMessage(SensorMessage message)
Method used for updating the message object that provides particular
properties for given type.
|
protected SensorMessage lastMessage
protected SensorType sensorType
public SuperSensor()
protected SuperSensor(SensorType type)
type - Sensor type describes particular subject about which we want
to know about. It is used to distinguish incoming message from the
server.public void updateMessage(SensorMessage message)
message - Sensor message from server.public double getTime()
public Boolean isReady()
public String getType()
public SensorType getSensorType()
public String getName()
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.