Package actuator
Class AbstractActuator
- java.lang.Object
-
- actuator.AbstractActuator
-
- All Implemented Interfaces:
core.InterfaceScenarioElement,dispatch.Pokable
- Direct Known Subclasses:
ActuatorSignal
public abstract class AbstractActuator extends Object implements dispatch.Pokable, core.InterfaceScenarioElement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractActuator.Type
-
Field Summary
Fields Modifier and Type Field Description Set<Long>commidsFloatdtlongidbooleaninitializedAbstractControllermyControlleractuator.InterfaceTargettarget
-
Constructor Summary
Constructors Constructor Description AbstractActuator(Scenario scenario, jaxb.Actuator jaxb_actuator)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description LonggetId()core.ScenarioElementTypegetSEType()abstract AbstractActuator.TypegetType()voidinitialize(Scenario scenario, float timestamp, boolean override_targets)voidpoke(dispatch.Dispatcher dispatcher, float timestamp)abstract voidprocess_command(control.command.InterfaceCommand command, float timestamp)error.OTMErrorLogto_jaxb()voidturn_off()voidturn_on()voidvalidate_post_init(error.OTMErrorLog errorLog)voidvalidate_pre_init(error.OTMErrorLog errorLog)
-
-
-
Field Detail
-
id
public long id
-
dt
public Float dt
-
initialized
public boolean initialized
-
myController
public AbstractController myController
-
target
public actuator.InterfaceTarget target
-
-
Constructor Detail
-
AbstractActuator
public AbstractActuator(Scenario scenario, jaxb.Actuator jaxb_actuator) throws error.OTMException
- Throws:
error.OTMException
-
-
Method Detail
-
getType
public abstract AbstractActuator.Type getType()
-
process_command
public abstract void process_command(control.command.InterfaceCommand command, float timestamp) throws error.OTMException- Throws:
error.OTMException
-
getId
public final Long getId()
- Specified by:
getIdin interfacecore.InterfaceScenarioElement
-
getSEType
public final core.ScenarioElementType getSEType()
- Specified by:
getSETypein interfacecore.InterfaceScenarioElement
-
validate_pre_init
public void validate_pre_init(error.OTMErrorLog errorLog)
-
initialize
public void initialize(Scenario scenario, float timestamp, boolean override_targets) throws error.OTMException
- Throws:
error.OTMException
-
validate_post_init
public void validate_post_init(error.OTMErrorLog errorLog)
-
to_jaxb
public error.OTMErrorLog to_jaxb()
- Specified by:
to_jaxbin interfacecore.InterfaceScenarioElement
-
poke
public void poke(dispatch.Dispatcher dispatcher, float timestamp) throws error.OTMException- Specified by:
pokein interfacedispatch.Pokable- Throws:
error.OTMException
-
turn_on
public final void turn_on() throws error.OTMException- Throws:
error.OTMException
-
turn_off
public final void turn_off() throws error.OTMException- Throws:
error.OTMException
-
-