Class AbstractFlowExecutionListener

    • Field Detail

      • m_Owner

        protected Flow m_Owner
        the owner.
    • Constructor Detail

      • AbstractFlowExecutionListener

        public AbstractFlowExecutionListener()
    • Method Detail

      • startListening

        public void startListening()
        Gets called when the flow execution starts.

        Default implementation does nothing.
        Specified by:
        startListening in interface FlowExecutionListener
      • preInput

        public void preInput​(Actor actor,
                             Token token)
        Gets called before the actor receives the token.

        Default implementation does nothing.
        Specified by:
        preInput in interface FlowExecutionListener
        Parameters:
        actor - the actor that will receive the token
        token - the token that the actor will receive
      • postInput

        public void postInput​(Actor actor)
        Gets called after the actor received the token.

        Default implementation does nothing.
        Specified by:
        postInput in interface FlowExecutionListener
        Parameters:
        actor - the actor that received the token
      • preExecute

        public void preExecute​(Actor actor)
        Gets called before the actor gets executed.

        Default implementation does nothing.
        Specified by:
        preExecute in interface FlowExecutionListener
        Parameters:
        actor - the actor that will get executed
      • postExecute

        public void postExecute​(Actor actor)
        Gets called after the actor was executed.

        Default implementation does nothing.
        Specified by:
        postExecute in interface FlowExecutionListener
        Parameters:
        actor - the actor that was executed
      • preOutput

        public void preOutput​(Actor actor)
        Gets called before a token gets obtained from the actor.

        Default implementation does nothing.
        Specified by:
        preOutput in interface FlowExecutionListener
        Parameters:
        actor - the actor the token gets obtained from
      • postOutput

        public void postOutput​(Actor actor,
                               Token token)
        Gets called after a token was acquired from the actor.

        Default implementation does nothing.
        Specified by:
        postOutput in interface FlowExecutionListener
        Parameters:
        actor - the actor that the token was acquired from
        token - the token that was acquired from the actor
      • cleanUp

        public void cleanUp()
        Cleans up data structures, frees up memory.

        Default implementation cleans up options.
        Specified by:
        cleanUp in interface CleanUpHandler
      • compareTo

        public int compareTo​(Object o)
        Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

        Only compares the commandlines of the two objects.
        Specified by:
        compareTo in interface Comparable
        Parameters:
        o - the object to be compared.
        Returns:
        a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
        Throws:
        ClassCastException - if the specified object's type prevents it from being compared to this object.
      • equals

        public boolean equals​(Object o)
        Returns whether the two objects are the same.

        Only compares the commandlines of the two objects.
        Overrides:
        equals in class Object
        Parameters:
        o - the object to be compared
        Returns:
        true if the object is the same as this one
      • getListeners

        public static String[] getListeners()
        Returns a list with classnames of processors.
        Returns:
        the processor classnames
      • finishListening

        public void finishListening()
        Gets called when the flow execution ends.

        Default implementation only unsets the owner.
        Specified by:
        finishListening in interface FlowExecutionListener