Interface SimpleSensor

  • All Superinterfaces:
    Device, Sensor, Unit
    All Known Implementing Classes:
    AbstractSimpleSensor, Default, Hygrometer, Thermometer

    public interface SimpleSensor
    extends Sensor
    Briefly modifies behaviour of Sensor. SingleSensor can manipulate with only one DataFeed. It is used to simulate sensors with only one source of date (e.g. thermometer, gyroscope...). DataFeed manipulating methods restrict user to single DataFeed.
    • Method Detail

      • setDataFeed

        void setDataFeed​(DataFeed dataFeed)
        Sets DataFeed for SimpleSensor
        dataFeed - instance of DataFeed
      • getDataFeed

        DataFeed getDataFeed()
        Returns single instance of DataFeed for SimpleSensor
        instance of DataFeed
      • removeDataFeed

        void removeDataFeed()