Interface Sensor<Q extends Quantity<Q>>
- Type Parameters:
Q- the type of quantity produced by the sensor
- All Superinterfaces:
AutoCloseable, Commented, ComprehensiveIdentification, Device, Identified<Identification>, Named, Serializable
- All Known Subinterfaces:
HumidityProbe, Microscope, Multimeter, Oscilloscope, PHMeter, PressureGauge, Seismograph, Spectrometer, Telescope, TemperatureProbe, VoterScanner
- All Known Implementing Classes:
AbstractSensor, AbstractSimulatedSensor, MassSpectra, SimulatedHumidityProbe, SimulatedMicroscope, SimulatedMultimeter, SimulatedOscilloscope, SimulatedPHMeter, SimulatedPressureGauge, SimulatedSeismograph, SimulatedSpectrometer, SimulatedTelescope, SimulatedTemperatureProbe, SimulatedVoterScanner
-
Nested Class Summary
Nested classes/interfaces inherited from interface Device
Device.Record, Device.Status -
Method Summary
Methods inherited from interface AutoCloseable
closeMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, getTraits, setName, setTraitMethods inherited from interface Device
calibrate, calibrate, connect, disconnect, getAccuracy, getCalibrationHistory, getCapabilities, getDeviceStatus, getDisplayUnit, getFirmware, getHistory, getId, getLastCalibration, getLocationDescription, getManufacturer, getMaxRange, getMeasurableQuantities, getMinRange, getModel, getPrecisionDescription, getReadings, getResolution, getSensitivity, getStatus, getValue, isConnected, isEnabled, measure, needsCalibration, setDisplayUnit, setEnabled
-
Method Details
-
readValue
Reads a value from the sensor.- Returns:
- the measured value
- Throws:
IOException- if the read operation fails
-