Interface ComplexInstrument

All Superinterfaces:
AutoCloseable, Commented, ComprehensiveIdentification, Device, Identified<Identification>, Named, Serializable
All Known Subinterfaces:
VotingMachine, WeatherStation
All Known Implementing Classes:
SimulatedVotingMachine, SimulatedWeatherStation

public interface ComplexInstrument extends Device
Represents a complex instrument that may contain multiple sensors or actuators. A ComplexInstrument is a physical collection of devices.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Details

    • getSensors

      List<Sensor<?>> getSensors()
      Returns:
      The list of sensors attached to this instrument.
    • getActuators

      default List<Actuator<?>> getActuators()
      Returns:
      The list of actuators attached to this instrument.
    • calibrate

      default void calibrate() throws Exception
      Calibrates the entire instrument.
      Specified by:
      calibrate in interface Device
      Throws:
      Exception - if calibration fails