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.BackgroundScriptingEngineEngine 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 JepScriptingEngineThreadm_ProcessingThreadthe thread to use for executing the commands.protected static JepScriptingEnginem_Singletonthe 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 voidadd(AbstractJepScriptlet scriplet)Places the scriplet in the processing queue.JepScriptingEngineThreadgetProcessingThread()Returns the thread for processing the scripting commands.static JepScriptingEnginegetSingleton()Returns the singleton instance of the scripting engine.voidstopEngine()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(AbstractJepScriptlet 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:
stopEnginein interfaceadams.core.scriptingengine.BackgroundScriptingEngine
-
getSingleton
public static JepScriptingEngine getSingleton()
Returns the singleton instance of the scripting engine.- Returns:
- the engine
-
-