Class AbstractMetaRatInput

    • Field Detail

      • m_Input

        protected RatInput m_Input
        the base RatInput to use.
      • m_Data

        protected ArrayList m_Data
        the data queue.
    • Constructor Detail

      • AbstractMetaRatInput

        public AbstractMetaRatInput()
    • Method Detail

      • defineOptions

        public void defineOptions()
        Adds options to the internal list of options.
        Specified by:
        defineOptions in interface adams.core.option.OptionHandler
        Overrides:
        defineOptions in class adams.core.option.AbstractOptionHandler
      • setInput

        public void setInput​(RatInput value)
        Sets the base receiver to use.
        Parameters:
        value - the receiver
      • getInput

        public RatInput getInput()
        Returns the base receiver to use.
        Returns:
        the receiver
      • inputTipText

        public String inputTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the actor, which will be displayed in the GUI.
        Specified by:
        getQuickInfo in interface adams.core.QuickInfoSupporter
        Overrides:
        getQuickInfo in class AbstractRatInput
        Returns:
        null if no info available, otherwise short string
      • setUp

        public String setUp()
        Hook method for performing checks at setup time.
        Specified by:
        setUp in interface RatInput
        Overrides:
        setUp in class AbstractRatInput
        Returns:
        null if successful, otherwise error message
      • preReceive

        protected String preReceive()
        Hook method before calling the base-input's receive() method.

        Default implementation just clears the data queue.
        Returns:
        null if successful, otherwise error message
        See Also:
        m_Data
      • callReceive

        protected String callReceive()
        Hook method that calls the base-input's receive() method.
        Returns:
        null if successful, otherwise error message
      • postReceive

        protected String postReceive()
        Hook method after calling the base-input's receive() method.

        Default implementation collects all the pending data from the base-input.
        Returns:
        null if successful, otherwise error message
        See Also:
        m_Data