|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.usar2004.agent.module.sensor.SuperSensor
public class SuperSensor
It was initially abstract, but ctor with one parameter was inserted and now this class is used not only as base class for sensor modules, but also as class carrying elementary info about unknown sensors.
| Field Summary | |
|---|---|
protected SensorMessage |
lastMessage
|
protected SensorType |
sensorType
|
| Constructor Summary | |
|---|---|
|
SuperSensor()
Ctor. |
protected |
SuperSensor(SensorType type)
Ctor. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SensorMessage lastMessage
protected SensorType sensorType
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||