Analytics.Engine

Description

Functions to access TERR.

Functions

NameSignature and Synopsis
createEngineboolean createEngine(String engine)
Creates an instance of TERR Engine and returns true if successful
deleteEnginevoid deleteEngine(String engine)
Deletes instance of TERR Engine.
engineExecutevoid engineExecute(String engine, String Rscript, boolean interactive)
Parse and evaluate an expression in the TERR engine
engineExistsboolean engineExists(String engine)
Checks if the TERR engine exists.
getLastErrorMessageboolean getLastErrorMessage(String engine)
Gets the last error message of the engine
getVariableObject[] getVariable(String engine, String var)
Gets the variable from TERR
interruptvoid interrupt(String engine)
interrupt the given engine
invokeTERRFunctionObject[] invokeTERRFunction(String engine, String functionName, Object... args)
Calls the Terr engine to invoke the given function name and parameters
isEngineRunningboolean isEngineRunning(String engine)
Checks the status of given engine
setEngineParametersvoid setEngineParameters(String engine, String Parameters)
Sets the TERR engine parameters
setTerrHomevoid setTerrHome(String engine, String Path)
Sets the TERR Home for the engine. A global TERR HOME is still needed. This is to set TERR HOME for a particular engine in case of multiple TERR installations
setVariablevoid setVariable(String engine, String var, Object v)
Sets the variable from TERR
startEnginevoid startEngine(String engine)
Starts the given engine
stopEnginevoid stopEngine(String engine)
Stops the given engine