de.jaetzold.art.platform.lego
Class Mindstorms.MSLightSensorPeer
java.lang.Object
|
+--de.jaetzold.art.platform.BaseSensorPeer
|
+--de.jaetzold.art.platform.lego.Mindstorms.RCXRawSensorPeer
|
+--de.jaetzold.art.platform.lego.Mindstorms.MSLightSensorPeer
- All Implemented Interfaces:
- LightSensorPeer, SensorPeer
- Enclosing class:
- Mindstorms
- protected class Mindstorms.MSLightSensorPeer
- extends Mindstorms.RCXRawSensorPeer
- implements LightSensorPeer
Method Summary |
double |
getMeasurableMax()
Same principle as for measurableMin. |
double |
getMeasurableMin()
This returns the smallest value which is still accurate (considering the precision). |
double |
getPrecision()
Returns the maximum of the expectable error in the value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Mindstorms.MSLightSensorPeer
protected Mindstorms.MSLightSensorPeer(byte inputID,
RCX.SensorValueDefinition valueDefinition)
Mindstorms.MSLightSensorPeer
protected Mindstorms.MSLightSensorPeer(byte inputID)
getMeasurableMin
public double getMeasurableMin()
- Description copied from interface:
LightSensorPeer
- This returns the smallest value which is still accurate (considering the precision).
That gives a LightSensor the chance to tell that the Light-Level is out of the range it can measure with sufficient precision. A value of 0 for example would usually not be a real measured value, except for the case where the measurableMin<=precision.
- Specified by:
getMeasurableMin
in interface LightSensorPeer
getMeasurableMax
public double getMeasurableMax()
- Description copied from interface:
LightSensorPeer
- Same principle as for measurableMin.
- Specified by:
getMeasurableMax
in interface LightSensorPeer
- Following copied from interface:
de.jaetzold.art.platform.LightSensorPeer
- See Also:
LightSensorPeer.getMeasurableMin()
getPrecision
public double getPrecision()
- Description copied from interface:
SensorPeer
- Returns the maximum of the expectable error in the value.
This is just a guess, what means that nothing really important should depend on it. It is meant to give an algorithm using a Sensor connected to this SensorPeer an idea of how precise the value is so that it either can refuse to use it or try to compensate if necessary.
- Specified by:
getPrecision
in interface SensorPeer
- Overrides:
getPrecision
in class BaseSensorPeer