Class IfThenElse.IfThenElseDirector

    • Field Detail

      • m_BranchToken

        protected transient Token m_BranchToken
        the token to use in the then/else branches.
    • Constructor Detail

      • IfThenElseDirector

        public IfThenElseDirector()
    • Method Detail

      • setIfThenElseActor

        protected void setIfThenElseActor​(AbstractDirectedControlActor value)
        Calls the super implementation of setControlActor.
        Parameters:
        value - the control actor to set
      • setControlActor

        public void setControlActor​(AbstractDirectedControlActor value)
        Sets the group to execute.
        Parameters:
        value - the group
      • setBranchToken

        public void setBranchToken​(Token value)
        Sets the token to use in the then/else branches.
        Parameters:
        value - the token to use
      • getBranchToken

        public Token getBranchToken()
        Returns the token to be forwarded to then/else branches.
        Returns:
        the token, can be null if not yet set
      • doThen

        protected boolean doThen()
        Determines whether to execute the 'then' branch.
        Returns:
        true if the 'then' branch should get executed
      • execute

        public String execute()
        Executes the group of actors.
        Specified by:
        execute in class AbstractDirector
        Returns:
        null if everything went smooth