|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.data.expr.MatlabUtilities
This class provides access to the Ptolemy Matlab interface in ptolemy.matlab by using reflection.
ParseTreeEvaluator
| Yellow (neuendor) |
| Green (neuendor) |
| Constructor Summary | |
MatlabUtilities()
|
|
| Method Summary | |
static Token |
evaluate(java.lang.String expression,
java.util.Set variableNames,
ParserScope scope)
Evaluate a Matlab expression within a scope. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MatlabUtilities()
| Method Detail |
public static Token evaluate(java.lang.String expression,
java.util.Set variableNames,
ParserScope scope)
throws IllegalActionException
Note that having an instance of Expression in the model will keep the matlab
engine open from model preinitialize() to wrapup() and hence
opening/closing of additional Engine instances done by this
matlab expression evaluator becomes fast. Most users should
prefer to use Expression and resort to
this mechanism of invoking matlab only where necessary, e.g. in
FSM transition action expressions (which was the reason for
introducing this form of matlab engine access).
If a "packageDirectories" Parameter is in the scope of this
expression, its value is added to the matlab path while the
expression is being executed (like Expression).
expression - The Matlab expression to be evaluatedscope - The scope to evaluate the expression within.
IllegalActionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||