|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener l)
The SensorEvents get deliverd to all registered PropertyChangeListener s. |
void |
disableEvent(SensorEventDescriptor eventDescriptor)
Disable delivering the Events described by the given SensorEventDescriptor . |
void |
enableEvent(SensorEventDescriptor eventDescriptor)
Enable delivering the Events described by the given SensorEventDescriptor . |
boolean |
getDeliversFloatingPoint()
Tells whether this SensorPeer delivers discrete values or not. |
double |
getPrecision()
Returns the maximum of the expectable error in the value. |
double |
getValue()
Returns the value this peer represents as a double. |
boolean |
isConnected()
Tells whether the connection to the represented sensor is still intact. |
void |
processEvent(SensorEvent event)
Deliver the given SensorEvent to all Listeners. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove the specified listener. |
void |
update()
Generate and deliver a SensorEvent for the current sensors state. |
Method Detail |
public double getValue()
public boolean getDeliversFloatingPoint()
public boolean isConnected()
RobotInterface.isConnected()
public void enableEvent(SensorEventDescriptor eventDescriptor)
SensorEventDescriptor
. Not fully used. Implementors may enable more than the descibed Events an this is pretty much "all" in the current implementations.SensorEventDescriptor
public void disableEvent(SensorEventDescriptor eventDescriptor)
SensorEventDescriptor
. Not fully used. Implementors may disable less than the descibed Events an this is pretty much "none" in the current implementations.SensorEventDescriptor
public void update()
public double getPrecision()
public void addPropertyChangeListener(PropertyChangeListener l)
PropertyChangeListener
s.
The PropertyChangeEvent has the SensorEvent as it's new value and the last SensorEvent as the old value. The property name used for this is value
.
This mechanism in the SensorPeer is not really used for anything else right now but may be in future releases.Sensor.addPropertyChangeListener(PropertyChangeListener)
,
processEvent(SensorEvent)
public void removePropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener(PropertyChangeListener)
public void processEvent(SensorEvent event)
SensorEvent
to all Listeners. Maybe update internal cache of the value.addPropertyChangeListener(PropertyChangeListener)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |