Interface SimpleSensor
-
- 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataFeed
getDataFeed()
Returns single instance of DataFeed for SimpleSensorvoid
removeDataFeed()
Removesvoid
setDataFeed(DataFeed dataFeed)
Sets DataFeed for SimpleSensor-
Methods inherited from interface io.patriot_framework.generator.device.Device
getCoapController, getDataObservable, getNetworkAdapter, requestData, setCoapController, setDataObservable, setNetworkAdapter, startCoapController, stopCoapController
-
Methods inherited from interface io.patriot_framework.generator.device.passive.sensors.Sensor
addDataFeed, getDataFeeds, removeDataFeed
-
-
-
-
Method Detail
-
setDataFeed
void setDataFeed(DataFeed dataFeed)
Sets DataFeed for SimpleSensor- Parameters:
dataFeed
- instance of DataFeed
-
getDataFeed
DataFeed getDataFeed()
Returns single instance of DataFeed for SimpleSensor- Returns:
- instance of DataFeed
-
removeDataFeed
void removeDataFeed()
Removes
-
-