de.jaetzold.art.platform.lego
Class Mindstorms.RCXRawSensorPeer

java.lang.Object
  |
  +--de.jaetzold.art.platform.BaseSensorPeer
        |
        +--de.jaetzold.art.platform.lego.Mindstorms.RCXRawSensorPeer
All Implemented Interfaces:
SensorPeer
Direct Known Subclasses:
Mindstorms.MSLightSensorPeer, Mindstorms.RCXActuatorPeer, Mindstorms.RCXStateSensorPeer
Enclosing class:
Mindstorms

protected class Mindstorms.RCXRawSensorPeer
extends BaseSensorPeer


Field Summary
protected  byte inputID
           
 
Fields inherited from class de.jaetzold.art.platform.BaseSensorPeer
changes, eventQueue
 
Constructor Summary
  Mindstorms.RCXRawSensorPeer(byte inputID)
           
protected Mindstorms.RCXRawSensorPeer(byte inputID, RCX.SensorValueDefinition valueDefinition)
           
 
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

inputID

protected byte inputID
Constructor Detail

Mindstorms.RCXRawSensorPeer

protected Mindstorms.RCXRawSensorPeer(byte inputID,
                                      RCX.SensorValueDefinition valueDefinition)

Mindstorms.RCXRawSensorPeer

public Mindstorms.RCXRawSensorPeer(byte inputID)
Method Detail

getDeliversFloatingPoint

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

getValue

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

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

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()