Class AbstractSensor

    • Constructor Detail

      • AbstractSensor

        public AbstractSensor()
      • AbstractSensor

        public AbstractSensor​(String label,
                              DataFeed... dataFeeds)
    • Method Detail

      • requestData

        public List<Data> requestData​(Object... param)
        Description copied from interface: Device
        Pulls data from data feed. This method serves as handler for data from DataFeed. Forwards parameters for getNextValue method (see DataFeed.getNextValue).
        Specified by:
        requestData in interface Device
        Parameters:
        param - for DataFeed computing
        Returns:
        a list of generated values
      • addDataFeed

        public void addDataFeed​(DataFeed dataFeed)
        Description copied from interface: Sensor
        Adds DataFeed to Composition
        Specified by:
        addDataFeed in interface Sensor
        Parameters:
        dataFeed - instance of DataFeed
      • removeDataFeed

        public void removeDataFeed​(DataFeed dataFeed)
        Description copied from interface: Sensor
        Removes DataFeed from Composition
        Specified by:
        removeDataFeed in interface Sensor
        Parameters:
        dataFeed - instance of DataFeed
      • getDataFeeds

        public List<DataFeed> getDataFeeds()
        Description copied from interface: Sensor
        Returns list of all DataFeeds for Composition
        Specified by:
        getDataFeeds in interface Sensor
        Returns:
        list of DataFeeds