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 class
AbstractActuator.Type
-
Field Summary
Fields Modifier and Type Field Description Set<Long>
commids
Float
dt
long
id
boolean
initialized
AbstractController
myController
actuator.InterfaceTarget
target
-
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 Long
getId()
core.ScenarioElementType
getSEType()
abstract AbstractActuator.Type
getType()
void
initialize(Scenario scenario, float timestamp, boolean override_targets)
void
poke(dispatch.Dispatcher dispatcher, float timestamp)
abstract void
process_command(control.command.InterfaceCommand command, float timestamp)
error.OTMErrorLog
to_jaxb()
void
turn_off()
void
turn_on()
void
validate_post_init(error.OTMErrorLog errorLog)
void
validate_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:
getId
in interfacecore.InterfaceScenarioElement
-
getSEType
public final core.ScenarioElementType getSEType()
- Specified by:
getSEType
in 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_jaxb
in interfacecore.InterfaceScenarioElement
-
poke
public void poke(dispatch.Dispatcher dispatcher, float timestamp) throws error.OTMException
- Specified by:
poke
in 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
-
-