Class ActiveDeviceImpl
- java.lang.Object
-
- io.patriot_framework.generator.device.active.ActiveDeviceImpl
-
- All Implemented Interfaces:
ActiveDevice
public class ActiveDeviceImpl extends Object implements ActiveDevice
-
-
Constructor Summary
Constructors Constructor Description ActiveDeviceImpl()
ActiveDeviceImpl(DataFeed timeFeed, Device device)
-
Method Summary
All Methods Instance Methods Concrete 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
public void start()
Description copied from interface:ActiveDevice
Starts simulation process.- Specified by:
start
in interfaceActiveDevice
-
stop
public void stop()
Description copied from interface:ActiveDevice
Stops simulation.- Specified by:
stop
in interfaceActiveDevice
-
setDevice
public void setDevice(Device device)
Description copied from interface:ActiveDevice
Sets Device for TimeSimulation- Specified by:
setDevice
in interfaceActiveDevice
- Parameters:
device
- instance of Device
-
getDevice
public Device getDevice()
Description copied from interface:ActiveDevice
Gets Device for TimeSimulation- Specified by:
getDevice
in interfaceActiveDevice
- Returns:
- instance of Device
-
setTimeFeed
public void setTimeFeed(DataFeed timeFeed)
Description copied from interface:ActiveDevice
Sets DataFeed for TimeSimulation- Specified by:
setTimeFeed
in interfaceActiveDevice
- Parameters:
timeFeed
- instance of DataFeed
-
getTimeFeed
public DataFeed getTimeFeed()
Description copied from interface:ActiveDevice
Returns DataFeed for TimeSimulation- Specified by:
getTimeFeed
in interfaceActiveDevice
- Returns:
- instance of DataFeed
-
-