Class Rejector

    • Field Detail

      • m_LogSource

        protected String m_LogSource
        the source to fill in the log entries.
    • Constructor Detail

      • Rejector

        public Rejector()
        Default constructor.
      • Rejector

        public Rejector​(String name)
        Initializes with the specified name.
        Parameters:
        name - the name to use
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class AbstractTee
      • setLogSource

        public void setLogSource​(String value)
        Sets the source to use in the log entries. Empty string uses the full name of the actor as default value.
        Parameters:
        value - the source
      • getLogSource

        public String getLogSource()
        Returns the source to use in the log entries. An empty string uses the full name of the actor as default value.
        Returns:
        the source
      • logSourceTipText

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

        public Class[] accepts()
        Returns the class that the consumer accepts.
        Specified by:
        accepts in interface InputConsumer
        Overrides:
        accepts in class AbstractTee
        Returns:
        adams.data.container.DataContainer.class, adams.data.NotesHandler.class
      • setUpTeeActors

        protected String setUpTeeActors()
        Gets called in the setUp() method. Returns null if tee-actor is fine, otherwise error message.
        Overrides:
        setUpTeeActors in class Tee
        Returns:
        null if everything OK, otherwise error message
      • hasError

        protected boolean hasError​(Token token)
        Checks whether the input notes contain an error.
        Parameters:
        token - the input
        Returns:
        true if the notes contain an error
      • createTeeToken

        protected Token createTeeToken​(Token token)
        Generates the output for the tee actor.
        Overrides:
        createTeeToken in class AbstractTee
        Parameters:
        token - the input
        Returns:
        the error message token
      • canProcessInput

        protected boolean canProcessInput​(Token token)
        Returns whether the token can be processed in the tee actor.
        Overrides:
        canProcessInput in class AbstractTee
        Parameters:
        token - the token to process
        Returns:
        true if token can be processed
      • doExecute

        protected String doExecute()
        Executes the flow item.
        Overrides:
        doExecute in class AbstractTee
        Returns:
        null if everything is fine, otherwise error message