Class JepScriptingEngine

  • All Implemented Interfaces:
    adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.scriptingengine.BackgroundScriptingEngine, adams.core.SizeOfHandler, Serializable

    public class JepScriptingEngine
    extends adams.core.logging.CustomLoggingLevelObject
    implements adams.core.scriptingengine.BackgroundScriptingEngine
    Engine that executes Jep/Python scripts centrally.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • JepScriptingEngine

        public JepScriptingEngine()
        Initializes the engine.
    • Method Detail

      • add

        public void add​(JepScriptlet scriplet)
        Places the scriplet in the processing queue.
        Parameters:
        scriplet - the scriplet to execute
      • getProcessingThread

        public JepScriptingEngineThread getProcessingThread()
        Returns the thread for processing the scripting commands.
        Returns:
        the thread
      • stopEngine

        public void stopEngine()
        Stops the scripting engine.
        Specified by:
        stopEngine in interface adams.core.scriptingengine.BackgroundScriptingEngine
      • getSingleton

        public static JepScriptingEngine getSingleton()
        Returns the singleton instance of the scripting engine.
        Returns:
        the engine