Package control

Class 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
    • 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 interface core.InterfaceScenarioElement
      • getSEType

        public final core.ScenarioElementType getSEType()
        Specified by:
        getSEType in interface core.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 interface core.InterfaceScenarioElement
      • poke

        public final void poke​(dispatch.Dispatcher dispatcher,
                               float timestamp)
                        throws error.OTMException
        Specified by:
        poke in interface dispatch.Pokable
        Throws:
        error.OTMException
      • set_event_output

        public void set_event_output​(output.AbstractOutputEvent e)
                              throws error.OTMException
        Specified by:
        set_event_output in interface core.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)