de.jaetzold.art.platform
Class ForwardingSensorPeer

java.lang.Object
  |
  +--de.jaetzold.art.platform.BaseSensorPeer
        |
        +--de.jaetzold.art.platform.ForwardingSensorPeer
All Implemented Interfaces:
SensorPeer

public abstract class ForwardingSensorPeer
extends BaseSensorPeer


Field Summary
protected  SensorPeer target
           
 
Fields inherited from class de.jaetzold.art.platform.BaseSensorPeer
changes, eventQueue
 
Constructor Summary
ForwardingSensorPeer(SensorPeer target)
           
 
Method Summary
 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()
          Returns true.
 double getValue()
          Returns the value this peer represents as a double.
 boolean isConnected()
          Returns true.
 
Methods inherited from class de.jaetzold.art.platform.BaseSensorPeer
addPropertyChangeListener, getIntValue, getPrecision, processEvent, removePropertyChangeListener, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

protected SensorPeer target
Constructor Detail

ForwardingSensorPeer

public ForwardingSensorPeer(SensorPeer target)
Method Detail

getValue

public double getValue()
Description copied from interface: SensorPeer
Returns the value this peer represents as a double.

isConnected

public boolean isConnected()
Description copied from class: BaseSensorPeer
Returns true.
Overrides:
isConnected in class BaseSensorPeer
Following copied from interface: de.jaetzold.art.platform.SensorPeer
See Also:
RobotInterface.isConnected()

getDeliversFloatingPoint

public boolean getDeliversFloatingPoint()
Description copied from class: BaseSensorPeer
Returns true.
Overrides:
getDeliversFloatingPoint in class BaseSensorPeer

enableEvent

public void enableEvent(SensorEventDescriptor eventDescriptor)
Description copied from interface: SensorPeer
Enable delivering the Events described by the given SensorEventDescriptor. Not fully used. Implementors may enable more than the descibed Events an this is pretty much "all" in the current implementations.
Overrides:
enableEvent in class BaseSensorPeer
Following copied from interface: de.jaetzold.art.platform.SensorPeer
See Also:
SensorEventDescriptor

disableEvent

public void disableEvent(SensorEventDescriptor eventDescriptor)
Description copied from interface: SensorPeer
Disable delivering the Events described by the given SensorEventDescriptor. Not fully used. Implementors may disable less than the descibed Events an this is pretty much "none" in the current implementations.
Overrides:
disableEvent in class BaseSensorPeer
Following copied from interface: de.jaetzold.art.platform.SensorPeer
See Also:
SensorEventDescriptor