Class AbstractCopyCallableActor

    • Field Detail

      • m_Optional

        protected boolean m_Optional
        whether the callable actor is optional.
    • Constructor Detail

      • AbstractCopyCallableActor

        public AbstractCopyCallableActor()
    • Method Detail

      • setCallableName

        public void setCallableName​(CallableActorReference value)
        Sets the name of the callable actor to use.
        Parameters:
        value - the callable name
      • getCallableName

        public CallableActorReference getCallableName()
        Returns the name of the callable actor in use.
        Returns:
        the callable name
      • callableNameTipText

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

        public void setOptional​(boolean value)
        Sets whether the callable actor is optional.
        Specified by:
        setOptional in interface OptionalCallableActor
        Parameters:
        value - true if optional
      • getOptional

        public boolean getOptional()
        Returns whether the callable actor is optional.
        Specified by:
        getOptional in interface OptionalCallableActor
        Returns:
        true if optional
      • optionalTipText

        public String optionalTipText()
        Returns the tip text for this property.
        Specified by:
        optionalTipText in interface OptionalCallableActor
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • findCallableActor

        protected Actor findCallableActor()
        Tries to find the callable actor referenced by its name.
        Returns:
        the callable actor or null if not found
      • isModifyingStructure

        public boolean isModifyingStructure()
        Returns whether the actor is modifying the structure.
        Specified by:
        isModifyingStructure in interface FlowStructureModifier
        Returns:
        true if the actor is modifying the structure
      • checkCallableActor

        protected abstract String checkCallableActor​(Actor actor)
        Performs checks on the callable actor.
        Parameters:
        actor - the actor to check
        Returns:
        null if OK, otherwise error message
      • getDefaultActor

        protected abstract Actor getDefaultActor()
        Returns the default actor if the callable actor is optional and not found.
        Returns:
        the default
      • setUpCallableActor

        protected String setUpCallableActor()
        Configures the callable actor.
        Returns:
        null if OK, otherwise error message
      • doExecute

        protected String doExecute()
        Executes the flow item.
        Specified by:
        doExecute in class AbstractActor
        Returns:
        null if everything is fine, otherwise error message