public interface ScriptingJob extends Job, EditableJobContainer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_TYPE_IDENTIFIER
The type identifier of the default implementation of this job.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getScriptEngine()
Returns the name of the script engine, or null, if script engine is not set.
|
java.net.URL |
getScriptFile()
Returns the file of the script which should be evaluated by the corresponding script engine.
|
void |
putVariable(java.lang.String key,
java.lang.Object value)
Adds a key value pair to the script engine, so that a variable with the name
|
void |
setRemoteScriptEngine(RemoteScriptEngine scriptEngine)
Sets the remote script engine which should be null.
|
void |
setScriptEngine(java.lang.String engine)
Sets the script engine with which the scripts should be evaluated.
|
void |
setScriptFile(java.net.URL scriptFile)
Sets the file of the script which should be evaluated by the corresponding script engine.
|
addJobListener, executeJob, initializeJob, removeJobListener, uninitializeJob
addMessageListener, getName, getPositionInformation, getUUID, removeMessageListener, setName
addJob, clearJobs, insertJob, removeJob
getJob, getJobs, getNumJobs
static final java.lang.String DEFAULT_TYPE_IDENTIFIER
void putVariable(java.lang.String key, java.lang.Object value) throws java.rmi.RemoteException, MeasurementRunningException
key
- Name of variable to be used in script.value
- Value of the variable.java.rmi.RemoteException
MeasurementRunningException
void setRemoteScriptEngine(RemoteScriptEngine scriptEngine) throws java.rmi.RemoteException, MeasurementRunningException
scriptEngine
- Sets the script engine to use.java.rmi.RemoteException
MeasurementRunningException
void setScriptEngine(java.lang.String engine) throws java.rmi.RemoteException, MeasurementRunningException
engine
- The script engine to use.java.rmi.RemoteException
MeasurementRunningException
java.lang.String getScriptEngine() throws java.rmi.RemoteException
java.rmi.RemoteException
void setScriptFile(java.net.URL scriptFile) throws java.rmi.RemoteException, MeasurementRunningException
scriptFile
- The file containing the script which should be evaluated.java.rmi.RemoteException
MeasurementRunningException
java.net.URL getScriptFile() throws java.rmi.RemoteException
java.rmi.RemoteException