Class AbstractActorTemplate

    • Field Detail

      • m_Name

        protected String m_Name
        the new name for the generated actor.
    • Constructor Detail

      • AbstractActorTemplate

        public AbstractActorTemplate()
    • Method Detail

      • getDefaultName

        protected String getDefaultName()
        Returns the default name.
        Returns:
        the default
      • setName

        public void setName​(String value)
        Sets the new name for the actor. Empty string uses the current one.
        Parameters:
        value - the name
      • getName

        public String getName()
        Returns the new name for the actor. Empty String uses the current one.
        Returns:
        the name
      • nameTipText

        public String nameTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • isInteractive

        public abstract boolean isInteractive()
        Whether the flow generated is an interactive one.
        Returns:
        true if interactive
      • preGenerate

        protected void preGenerate()
        Hook before generating the actor.

        Default implementation does nothing.
      • doGenerate

        protected abstract Actor doGenerate()
        Generates the actor.
        Returns:
        the generated acto
      • postGenerate

        protected Actor postGenerate​(Actor actor)
        Hook before generating the actor.

        Default implementation just updates the name of the actor, if necessary.
        Parameters:
        actor - the actor to post-process
        Returns:
        the processed actor
      • generate

        public Actor generate()
        Returns the generated actor.
        Returns:
        the actor
      • compareTo

        public int compareTo​(Object o)
        Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

        Only compares the commandlines of the two objects.
        Parameters:
        o - the object to be compared.
        Returns:
        a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
        Throws:
        ClassCastException - if the specified object's type prevents it from being compared to this object.
      • equals

        public boolean equals​(Object o)
        Returns whether the two objects are the same.

        Only compares the commandlines of the two objects.
        Overrides:
        equals in class Object
        Parameters:
        o - the object to be compared
        Returns:
        true if the object is the same as this one
      • getBaselineCorrections

        public static String[] getBaselineCorrections()
        Returns a list with classnames of template generator schemes.
        Returns:
        the template generator classnames
      • forName

        public static AbstractActorTemplate forName​(String classname,
                                                    String[] options)
        Instantiates the template generator scheme with the given options.
        Parameters:
        classname - the classname of the template generator scheme to instantiate
        options - the options for the template generator scheme
        Returns:
        the instantiated template generator scheme or null if an error occurred
      • forCommandLine

        public static AbstractActorTemplate forCommandLine​(String cmdline)
        Instantiates the template generator scheme from the given commandline (i.e., classname and optional options).
        Parameters:
        cmdline - the classname (and optional options) of the template generator scheme to instantiate
        Returns:
        the instantiated template generator scheme or null if an error occurred