Package actuator

Class AbstractActuator

  • All Implemented Interfaces:
    core.InterfaceScenarioElement, dispatch.Pokable
    Direct Known Subclasses:
    ActuatorSignal

    public abstract class AbstractActuator
    extends Object
    implements dispatch.Pokable, core.InterfaceScenarioElement
    • Field Detail

      • id

        public long id
      • initialized

        public boolean initialized
      • target

        public actuator.InterfaceTarget target
      • commids

        public Set<Long> commids
    • Constructor Detail

      • AbstractActuator

        public AbstractActuator​(Scenario scenario,
                                jaxb.Actuator jaxb_actuator)
                         throws error.OTMException
        Throws:
        error.OTMException
    • Method Detail

      • 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 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)
      • 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 interface core.InterfaceScenarioElement
      • poke

        public void poke​(dispatch.Dispatcher dispatcher,
                         float timestamp)
                  throws error.OTMException
        Specified by:
        poke in interface dispatch.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