Class AbstractActuator
- java.lang.Object
-
- io.patriot_framework.generator.device.AbstractDevice
-
- io.patriot_framework.generator.device.passive.actuators.AbstractActuator
-
- Direct Known Subclasses:
BinaryActuator
,LinearActuator
,RotaryActuator
public abstract class AbstractActuator extends AbstractDevice implements Actuator
-
-
Constructor Summary
Constructors Constructor Description AbstractActuator(String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
controlSignal()
Actuator is waiting for impulse to start simulation.StateMachine
getStateMachine()
Returns instance of StateMachineList<Data>
requestData(Object... params)
Pulls data from data feed.void
setStateMachine(StateMachine stateMachine)
Sets StateMachine for Actuator-
Methods inherited from class io.patriot_framework.generator.device.AbstractDevice
getCoapController, getDataObservable, getLabel, getNetworkAdapter, getUUID, setCoapController, setDataObservable, setLabel, setNetworkAdapter, setUUID, startCoapController, stopCoapController
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.patriot_framework.generator.device.Device
getCoapController, getDataObservable, getNetworkAdapter, setCoapController, setDataObservable, setNetworkAdapter, startCoapController, stopCoapController
-
-
-
-
Constructor Detail
-
AbstractActuator
public AbstractActuator(String label)
-
-
Method Detail
-
requestData
public List<Data> requestData(Object... params)
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 interfaceDevice
- Parameters:
params
- for DataFeed computing- Returns:
- a list of generated values
-
controlSignal
public void controlSignal()
Description copied from interface:Actuator
Actuator is waiting for impulse to start simulation. After control signal it should change state for set duration of time.- Specified by:
controlSignal
in interfaceActuator
-
getStateMachine
public StateMachine getStateMachine()
Description copied from interface:Actuator
Returns instance of StateMachine- Specified by:
getStateMachine
in interfaceActuator
- Returns:
- instance of StateMachine
-
setStateMachine
public void setStateMachine(StateMachine stateMachine)
Description copied from interface:Actuator
Sets StateMachine for Actuator- Specified by:
setStateMachine
in interfaceActuator
- Parameters:
stateMachine
- machine internally used by actuator
-
-