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

public interface Sensor<Q extends Quantity<Q>> extends Device
Represents a sensor device that produces data.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Details

    • readValue

      Quantity<Q> readValue() throws IOException
      Reads a value from the sensor.
      Returns:
      the measured value
      Throws:
      IOException - if the read operation fails