Class InputOutputListener

    • Field Detail

      • BACKUP_CALLABLEINPUT

        public static final String BACKUP_CALLABLEINPUT
        the key for backing up the callable actor (input).
        See Also:
        Constant Field Values
      • BACKUP_CALLABLEOUTPUT

        public static final String BACKUP_CALLABLEOUTPUT
        the key for backing up the callable actor (output).
        See Also:
        Constant Field Values
      • BACKUP_CONFIGURED

        public static final String BACKUP_CONFIGURED
        the key for backing up the configured state.
        See Also:
        Constant Field Values
      • m_OnInput

        protected boolean m_OnInput
        whether to listen to the input tokens.
      • m_InputDestination

        protected CallableActorReference m_InputDestination
        the callable actor to send the input tokens to.
      • m_OnOutput

        protected boolean m_OnOutput
        whether to listen to the output tokens.
      • m_OutputDestination

        protected CallableActorReference m_OutputDestination
        the callable actor to send the output tokens to.
      • m_CallableInput

        protected Actor m_CallableInput
        the callable actor (input).
      • m_CallableOutput

        protected Actor m_CallableOutput
        the callable actor (output).
      • m_Configured

        protected boolean m_Configured
        whether the callable actor has been configured.
    • Constructor Detail

      • InputOutputListener

        public InputOutputListener()
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class SubProcess
      • setOnInput

        public void setOnInput​(boolean value)
        Sets whether to listen to input tokens.
        Parameters:
        value - true if to listen to input
      • getOnInput

        public boolean getOnInput()
        Returns whether to listen to input tokens.
        Returns:
        true if to listen to input
      • onInputTipText

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

        public void setInputDestination​(CallableActorReference value)
        Sets the callable actor to send the input tokens to.
        Parameters:
        value - the callable actor
      • getInputDestination

        public CallableActorReference getInputDestination()
        Returns the callable actor to send the input tokens to.
        Returns:
        the callable actor
      • inputDestinationTipText

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

        public void setOnOutput​(boolean value)
        Sets whether to listen to output tokens.
        Parameters:
        value - true if to listen to output
      • getOnOutput

        public boolean getOnOutput()
        Returns whether to listen to output tokens.
        Returns:
        true if to listen to output
      • onOutputTipText

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

        public void setOutputDestination​(CallableActorReference value)
        Sets the callable actor to send the output tokens to.
        Parameters:
        value - the callable actor
      • getOutputDestination

        public CallableActorReference getOutputDestination()
        Returns the callable actor to send the output tokens to.
        Returns:
        the callable actor
      • outputDestinationTipText

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

        protected String setUpCallableActors()
        Configures the callable actors.
        Returns:
        null if OK, otherwise error message
      • input

        public void input​(Token token)
        The method that accepts the input token and then processes it.
        Specified by:
        input in interface InputConsumer
        Overrides:
        input in class SubProcess
        Parameters:
        token - the token to accept and process