|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcat.sensor.util.Value
This class represents a sensor data value object. A sensor data value may actually have two values such as GPS location.
Field Summary | |
private Agent |
from
The agent that the sensor data value is from. |
private boolean |
remote
True if the sensor data value is from a remote sensor. |
private java.lang.Object |
secondary
The secondary value of this sensor data value object. |
private java.lang.Object |
value
The main value of this sensor data value object. |
Constructor Summary | |
Value(java.lang.Object v)
Construct a Value object with single local sensor data value. |
|
Value(java.lang.Object v,
Agent a,
boolean r)
Construct a Value object with single remote sensor data value. |
|
Value(java.lang.Object v,
java.lang.Object s)
Construct a Value object with two local sensor data values. |
|
Value(java.lang.Object v,
java.lang.Object s,
Agent a,
boolean r)
Construct a Value object with two remote sensor data values. |
Method Summary | |
Agent |
getAgent()
Returns the agent who gave us the remote sensor data value. |
java.lang.Object |
getSecondaryValue()
Returns the secondary value of this Sensor data value object. |
java.lang.Object |
getValue()
Returns the main value of this Sensor data value object. |
boolean |
isRemote()
Returns true if this value is from a remote sensor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.Object value
private java.lang.Object secondary
private boolean remote
private Agent from
Constructor Detail |
public Value(java.lang.Object v)
v
- The value.public Value(java.lang.Object v, java.lang.Object s)
v
- The value.s
- The secondary value.public Value(java.lang.Object v, Agent a, boolean r)
v
- The value.a
- The agent.r
- true if remote.public Value(java.lang.Object v, java.lang.Object s, Agent a, boolean r)
v
- The value.s
- The secondary value.a
- The agent.r
- true if remote.Method Detail |
public java.lang.Object getValue()
public java.lang.Object getSecondaryValue()
public boolean isRemote()
public Agent getAgent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |