Interface BooleanCondition

    • Method Detail

      • getQuickInfo

        String getQuickInfo()
        Returns the quick info string to be displayed in the flow editor.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        the info or null if no info to be displayed
      • accepts

        Class[] accepts()
        Returns the class that the consumer accepts.
        Returns:
        the accepted class
      • setUp

        String setUp​(Actor owner)
        Configures the condition.
        Parameters:
        owner - the actor this condition belongs to
        Returns:
        null if everything is fine, otherwise error message
      • evaluate

        boolean evaluate​(Actor owner,
                         Token token)
        Evaluates whether to executed the "then" or "else" branch.
        Parameters:
        owner - the owning actor
        token - the current token passing through the actor
        Returns:
        true if the condition applies
      • shallowCopy

        BooleanCondition shallowCopy​(boolean expand)
        Returns a shallow copy of itself, i.e., based on the commandline options.
        Specified by:
        shallowCopy in interface ShallowCopySupporter<BooleanCondition>
        Parameters:
        expand - whether to expand variables to their current values
        Returns:
        the shallow copy
      • stopExecution

        void stopExecution()
        Stops the execution.
        Specified by:
        stopExecution in interface Stoppable