Package adams.core.scripting
Class JepScriptingEngine
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.scripting.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
-
-
Field Summary
Fields Modifier and Type Field Description protected JepScriptingEngineThread
m_ProcessingThread
the thread to use for executing the commands.protected static JepScriptingEngine
m_Singleton
the singleton.
-
Constructor Summary
Constructors Constructor Description JepScriptingEngine()
Initializes the engine.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(JepScriptlet scriplet)
Places the scriplet in the processing queue.JepScriptingEngineThread
getProcessingThread()
Returns the thread for processing the scripting commands.static JepScriptingEngine
getSingleton()
Returns the singleton instance of the scripting engine.void
stopEngine()
Stops the scripting engine.-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_Singleton
protected static JepScriptingEngine m_Singleton
the singleton.
-
m_ProcessingThread
protected JepScriptingEngineThread m_ProcessingThread
the thread to use for executing the commands.
-
-
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 interfaceadams.core.scriptingengine.BackgroundScriptingEngine
-
getSingleton
public static JepScriptingEngine getSingleton()
Returns the singleton instance of the scripting engine.- Returns:
- the engine
-
-