de.jaetzold.art.platform.lego
Class Mindstorms.MSCountSensorPeer
java.lang.Object
|
+--de.jaetzold.art.platform.BaseSensorPeer
|
+--de.jaetzold.art.platform.lego.Mindstorms.RCXRawSensorPeer
|
+--de.jaetzold.art.platform.lego.Mindstorms.RCXStateSensorPeer
|
+--de.jaetzold.art.platform.lego.Mindstorms.MSCountSensorPeer
- All Implemented Interfaces:
- CountSensorPeer, SensorPeer, StateSensorPeer
- Enclosing class:
- Mindstorms
- protected class Mindstorms.MSCountSensorPeer
- extends Mindstorms.RCXStateSensorPeer
- implements CountSensorPeer
Method Summary |
boolean |
getDeliversFloatingPoint()
Tells whether this SensorPeer delivers discrete values or not. |
void |
setCount(double count)
The point from which to count can be set with this method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Mindstorms.MSCountSensorPeer
protected Mindstorms.MSCountSensorPeer(byte inputID,
Mindstorms.RotationSensorValueDefinition valueDefinition)
Mindstorms.MSCountSensorPeer
protected Mindstorms.MSCountSensorPeer(byte inputID)
setCount
public void setCount(double count)
- Description copied from interface:
CountSensorPeer
- The point from which to count can be set with this method. It could be seen as some kind of calibration.
- Specified by:
setCount
in interface CountSensorPeer
getDeliversFloatingPoint
public boolean getDeliversFloatingPoint()
- Description copied from interface:
SensorPeer
- Tells whether this SensorPeer delivers discrete values or not. A result of false means that the result of a getValue() can be cast to int without a loss of precision.
- Specified by:
getDeliversFloatingPoint
in interface SensorPeer
- Overrides:
getDeliversFloatingPoint
in class Mindstorms.RCXRawSensorPeer