Class AbstractInteractiveArrayProvider

    • Field Detail

      • m_Queue

        protected ArrayList m_Queue
        contains the items.
      • m_OutputArray

        protected boolean m_OutputArray
        whether to output an array instead of single items.
      • m_Index

        protected int m_Index
        the current index.
    • Constructor Detail

      • AbstractInteractiveArrayProvider

        public AbstractInteractiveArrayProvider()
    • Method Detail

      • getItemClass

        protected abstract Class getItemClass()
        Returns the based class of the items.
        Returns:
        the class
      • setOutputArray

        public void setOutputArray​(boolean value)
        Sets whether to output the items as array or as single strings.
        Specified by:
        setOutputArray in interface ArrayProvider
        Specified by:
        setOutputArray in interface ArrayProvider
        Parameters:
        value - true if output is an array
      • generates

        public Class[] generates()
        Returns the class of objects that it generates.
        Specified by:
        generates in interface OutputProducer
        Returns:
        the classes
      • preExecute

        protected String preExecute()
        Resets the index.
        Overrides:
        preExecute in class AbstractActor
        Returns:
        null if everything is fine, otherwise error message
        See Also:
        m_Index
      • output

        public Token output()
        Returns the generated token.
        Specified by:
        output in interface OutputProducer
        Returns:
        the generated token
      • hasPendingOutput

        public boolean hasPendingOutput()
        Checks whether there is pending output to be collected after executing the flow item.
        Specified by:
        hasPendingOutput in interface OutputProducer
        Returns:
        true if there is pending output
      • wrapUp

        public void wrapUp()
        Cleans up after the execution has finished.
        Specified by:
        wrapUp in interface Actor
        Overrides:
        wrapUp in class AbstractActor