Class ConditionalTee

    • Constructor Detail

      • ConditionalTee

        public ConditionalTee()
        Default constructor.
      • ConditionalTee

        public ConditionalTee​(String name)
        Initializes the actor with the specified name.
        Parameters:
        name - the name to use
      • ConditionalTee

        public ConditionalTee​(String name,
                              BooleanCondition condition)
        Initializes the actor with the specified name/condition.
        Parameters:
        name - the name to use
        condition - the condition to use
      • ConditionalTee

        public ConditionalTee​(BooleanCondition condition)
        Initializes the actor with the specified condition.
        Parameters:
        condition - the condition to use
    • Method Detail

      • conditionTipText

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

        protected boolean canFire()
        Determines whether the actor can "fire", i.e., outputting a token on the tee-branch.
        Returns:
        true if it can fire
      • 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