Interface ActiveDevice
-
- All Known Implementing Classes:
ActiveDeviceImpl
public interface ActiveDevice
This interface provides possibility to simulate Device in time. Time intervals of data polling are determined from DataFeed. As Time Simulations requests data from Device with series of continuous tasks, the generated value itself is lost, therefore user is not able to get it as return value. This behavior requires use of DataObservable class and Observer Pattern.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Device
getDevice()
Gets Device for TimeSimulationDataFeed
getTimeFeed()
Returns DataFeed for TimeSimulationvoid
setDevice(Device device)
Sets Device for TimeSimulationvoid
setTimeFeed(DataFeed timeFeed)
Sets DataFeed for TimeSimulationvoid
start()
Starts simulation process.void
stop()
Stops simulation.
-
-
-
Method Detail
-
start
void start()
Starts simulation process.
-
stop
void stop()
Stops simulation.
-
setDevice
void setDevice(Device device)
Sets Device for TimeSimulation- Parameters:
device
- instance of Device
-
getDevice
Device getDevice()
Gets Device for TimeSimulation- Returns:
- instance of Device
-
setTimeFeed
void setTimeFeed(DataFeed timeFeed)
Sets DataFeed for TimeSimulation- Parameters:
timeFeed
- instance of DataFeed
-
getTimeFeed
DataFeed getTimeFeed()
Returns DataFeed for TimeSimulation- Returns:
- instance of DataFeed
-
-