Class AbstractScriptedTemplate

    • Field Detail

      • m_ScriptOptions

        protected String m_ScriptOptions
        the options for the script.
      • m_ScriptObject

        protected transient Object m_ScriptObject
        the loaded script object.
    • Constructor Detail

      • AbstractScriptedTemplate

        public AbstractScriptedTemplate()
    • Method Detail

      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the actor, which will be displayed in the GUI.
        Returns:
        null if no info available, otherwise short string
      • scriptFileTipText

        public String scriptFileTipText()
        Returns the tip text for this property.
        Specified by:
        scriptFileTipText in interface FileBasedScripting
        Returns:
        tip text for this property suitable for displaying in the explorer/experimenter gui
      • loadScriptObject

        protected abstract String loadScriptObject()
        Loads the scripts object and sets its options.
        Returns:
        null if OK, otherwise the error message
      • checkScriptObject

        protected abstract String checkScriptObject()
        Checks the script object.
        Returns:
        null if OK, otherwise the error message
      • initScriptObject

        protected String initScriptObject()
        Tries to initialize the scripts object, sets its options and performs some checks.
        Returns:
        null if OK, otherwise the error message
      • executeScript

        protected abstract Actor executeScript()
        Executes the script to generate the actor.
        Returns:
        the generated actor
      • cleanUp

        public void cleanUp()
        Cleans up, frees up memory.

        Default implementation does nothing.
        Specified by:
        cleanUp in interface CleanUpHandler