Class Trigger

    • Constructor Detail

      • Trigger

        public Trigger()
        Default constructor.
      • Trigger

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

      • initialize

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

        protected String setUpTeeActors()
        Gets called in the setUp() method. Returns null if tee-actors are fine, otherwise error message.
        Specified by:
        setUpTeeActors in class AbstractTee
        Returns:
        always null
      • canContainStandalones

        public boolean canContainStandalones()
        Returns whether singletons are allowed in this group or not.
        Returns:
        true if singletons are allowed
      • checkTeeActor

        protected String checkTeeActor​(int index,
                                       Actor actor)
        Checks the tee actor before it is set. Returns an error message if the actor is not acceptable, null otherwise.
        Specified by:
        checkTeeActor in class AbstractTee
        Parameters:
        index - the index the actor gets set
        actor - the actor to check
        Returns:
        always null
      • checkTeeActors

        protected String checkTeeActors​(Actor[] actors)
        Checks the tee actors before they are set via the setTeeActors method. Returns an error message if the actors are not acceptable, null otherwise.
        Specified by:
        checkTeeActors in class AbstractTee
        Parameters:
        actors - the actors to check
        Returns:
        null if checks passed or null in case of an error
      • processInput

        protected String processInput​(Token token)
        Processes the token.
        Overrides:
        processInput in class AbstractTee
        Parameters:
        token - ignored
        Returns:
        an optional error message, null if everything OK