Class SequenceSource

    • Field Detail

      • m_OutputTokens

        protected transient List<Token> m_OutputTokens
        for storing generated output tokens.
    • Constructor Detail

      • SequenceSource

        public SequenceSource()
    • Method Detail

      • actorsTipText

        public String actorsTipText()
        Returns the tip text for this property.
        Specified by:
        actorsTipText in class MutableConnectedControlActor
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getOutputTokens

        public List<Token> getOutputTokens()
        Initializes m_OutputTokens if necessary and returns it.
        Returns:
        m_OutputTokens
      • addOutputToken

        protected void addOutputToken​(Token output)
        Adds the given token to the list of available output tokens.
        Parameters:
        output - the token to add
        See Also:
        getOutputTokens()
      • generates

        public Class[] generates()
        Returns the class that the consumer accepts.
        Specified by:
        generates in interface OutputProducer
        Returns:
        the Class of objects that can be processed
      • 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.

        The method is not allowed allowed to return "true" before the actor has been executed. For actors that return an infinite number of tokens, the m_Executed flag can be returned.
        Specified by:
        hasPendingOutput in interface OutputProducer
        Returns:
        true if there is pending output