public class MagnetometerSimulator extends Sensor implements MagnetometerSensor
simulatedOnly, validLoad| Constructor and Description |
|---|
MagnetometerSimulator() |
| Modifier and Type | Method and Description |
|---|---|
double[] |
getMagnetometerData() |
float |
getMagnetometerX() |
float |
getMagnetometerY() |
float |
getMagnetometerZ() |
java.lang.String |
getSensorName()
Returns the sensor name, typically the make/model of the hardware sensor that this class refers to.
|
void |
reloadSimulation()
Override this on any classes you need to do something as a simulated sensor
|
addListener, addNonResettableListener, addNonResettableValueChangedListener, addValueChangedListener, clearListeners, getSensor, isSimulatedOnly, isValidLoadedSensor, notifyListeners, removeListener, removeListener, resetToDefault, roundValue, scaleValue, setSimulatedOnly, setValidLoad, storeSensorpublic void reloadSimulation()
SensorreloadSimulation in class Sensorpublic java.lang.String getSensorName()
SensorgetSensorName in class SensorString representing the sensor's name.public float getMagnetometerX()
getMagnetometerX in interface MagnetometerSensorpublic float getMagnetometerY()
getMagnetometerY in interface MagnetometerSensorpublic float getMagnetometerZ()
getMagnetometerZ in interface MagnetometerSensorpublic double[] getMagnetometerData()
getMagnetometerData in interface MagnetometerSensor