|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectat.lcm.x2c.core.environment.X2cEnvironment
public class X2cEnvironment
Provide access to some functionality of the environment (Matlab, Scilab, ...) in an abstract way. This call is implemented as a singleton. Use X2cEnvironment.getInstance() to get the instance. It will automatically return the correct instance for the environment (Matlab, Scilab, ...).
| Field Summary | |
|---|---|
protected static org.apache.logging.log4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
protected |
X2cEnvironment()
|
| Method Summary | |
|---|---|
ExpressionEvaluationResult |
evaluateExpression(java.lang.String expression)
Evaluate an Expression in the surrounding numerical environment |
ExpressionEvaluationResult |
evaluateExpression(java.lang.String expression,
at.lcm.x2c.core.structure.MaskDataType maskParameterDataType)
Evaluate an Expression in the surrounding numerical environment |
void |
evaluateExpressionDirect(java.lang.String expression)
evaluate expression |
static X2cEnvironment |
getInstance()
Return the only instance of the X2cEnvironment. |
void |
reset()
reset the environment Shall only be used while testing |
static void |
setInstance_TestingOnly(X2cEnvironment environment)
Do not use, testing only |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.logging.log4j.Logger logger
| Constructor Detail |
|---|
protected X2cEnvironment()
| Method Detail |
|---|
public static X2cEnvironment getInstance()
throws X2cEnvironmentRuntimeException
X2cEnvironmentRuntimeException
EvnironmentNotRecognisedExceptionpublic static void setInstance_TestingOnly(X2cEnvironment environment)
environment - public ExpressionEvaluationResult evaluateExpression(java.lang.String expression)
public ExpressionEvaluationResult evaluateExpression(java.lang.String expression,
at.lcm.x2c.core.structure.MaskDataType maskParameterDataType)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void evaluateExpressionDirect(java.lang.String expression)
expression - public void reset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||