Package control
Class AbstractController
- java.lang.Object
-
- control.AbstractController
-
- All Implemented Interfaces:
core.InterfaceEventWriter
,core.InterfaceScenarioElement
,dispatch.Pokable
- Direct Known Subclasses:
ControllerSignal
public abstract class AbstractController extends Object implements dispatch.Pokable, core.InterfaceScenarioElement, core.InterfaceEventWriter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractController.Algorithm
-
Field Summary
Fields Modifier and Type Field Description Map<String,AbstractActuator>
actuator_by_usage
Map<Long,AbstractActuator>
actuators
Map<Long,control.command.InterfaceCommand>
command
Float
dt
float
end_time
output.OutputController
event_output
long
id
Scenario
scenario
Map<String,AbstractSensor>
sensor_by_usage
Set<AbstractSensor>
sensors
float
start_time
AbstractController.Algorithm
type
-
Constructor Summary
Constructors Constructor Description AbstractController(Scenario scenario, jaxb.Controller jaxb_controller)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Class
get_actuator_class()
control.command.InterfaceCommand
get_command_for_actuator_id(Long act_id)
control.command.InterfaceCommand
get_command_for_actuator_usage(String act_usage)
Long
getId()
core.ScenarioElementType
getSEType()
void
initialize(Scenario scenario, boolean override_targets)
boolean
is_inbuilt(String name)
void
poke(dispatch.Dispatcher dispatcher, float timestamp)
void
set_event_output(output.AbstractOutputEvent e)
error.OTMErrorLog
to_jaxb()
abstract void
update_command(dispatch.Dispatcher dispatcher)
error.OTMErrorLog
validate_post_init()
void
validate_pre_init(error.OTMErrorLog errorLog)
-
-
-
Field Detail
-
scenario
public final Scenario scenario
-
id
public final long id
-
type
public final AbstractController.Algorithm type
-
dt
public Float dt
-
start_time
public float start_time
-
end_time
public float end_time
-
actuators
public Map<Long,AbstractActuator> actuators
-
actuator_by_usage
public Map<String,AbstractActuator> actuator_by_usage
-
sensors
public Set<AbstractSensor> sensors
-
sensor_by_usage
public Map<String,AbstractSensor> sensor_by_usage
-
event_output
public output.OutputController event_output
-
-
Constructor Detail
-
AbstractController
public AbstractController(Scenario scenario, jaxb.Controller jaxb_controller) throws error.OTMException
- Throws:
error.OTMException
-
-
Method Detail
-
update_command
public abstract void update_command(dispatch.Dispatcher dispatcher) throws error.OTMException
- Throws:
error.OTMException
-
get_actuator_class
public abstract Class get_actuator_class()
-
initialize
public final void initialize(Scenario scenario, boolean override_targets) 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)
-
validate_post_init
public error.OTMErrorLog validate_post_init()
-
to_jaxb
public error.OTMErrorLog to_jaxb()
- Specified by:
to_jaxb
in interfacecore.InterfaceScenarioElement
-
poke
public final void poke(dispatch.Dispatcher dispatcher, float timestamp) throws error.OTMException
- Specified by:
poke
in interfacedispatch.Pokable
- Throws:
error.OTMException
-
set_event_output
public void set_event_output(output.AbstractOutputEvent e) throws error.OTMException
- Specified by:
set_event_output
in interfacecore.InterfaceEventWriter
- Throws:
error.OTMException
-
is_inbuilt
public boolean is_inbuilt(String name)
-
get_command_for_actuator_id
public final control.command.InterfaceCommand get_command_for_actuator_id(Long act_id)
-
get_command_for_actuator_usage
public final control.command.InterfaceCommand get_command_for_actuator_usage(String act_usage)
-
-