|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.ucsb.cs.jicos.services.external.services.ProxyServiceExternal
edu.ucsb.cs.jicos.services.external.services.matlab.MatlabImpl
public final class MatlabImpl
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_DebugStatus
The default debug mode value. |
static java.lang.String |
DEFAULT_StartCommand
The default command used to start the Matlab engine with. |
static boolean |
DEFAULT_StartEngine
The default start matlab engine value. |
static boolean |
isAvailable
Is matlab available on this host. |
static boolean |
isDebug
The current debug value. |
static java.lang.String |
PROPERTY_Base
Base name of properties for this class. |
static int |
TYPE_Boolean
A boolean data type. |
static int |
TYPE_Byte
A byte data (uint8_t) type. |
static int |
TYPE_Char
A character (int8_t) data type. |
static int |
TYPE_Double
A double data type. |
static int |
TYPE_Float
A float data type. |
static int |
TYPE_Int
A int data type. |
static int |
TYPE_LLong
A long long data (int64_t) type. |
static int |
TYPE_Long
A long data (int32_t) type. |
static int |
TYPE_Null
A null(Java)/NULL(C) value. |
static int |
TYPE_Short
A short int data (int16_t) type. |
static int |
TYPE_UChar
A unsigned character (uint8_t) data type. |
static int |
TYPE_UInt
A unsigned int data type. |
static int |
TYPE_ULLong
A unsigned long long data (uint64_t) type. |
static int |
TYPE_ULong
A unsigned long data (uint32_t) type. |
static int |
TYPE_Unknown
An unknown data type. |
static int |
TYPE_UShort
A unsigned short data (int16_t) type. |
| Constructor Summary | |
|---|---|
MatlabImpl()
Create a Matlab engine with the default starting arguments. |
|
MatlabImpl(java.lang.String startCommand,
java.lang.Boolean debugOn)
Create a Matlab engine with the given start arguments and debug mode. |
|
| Method Summary | |
|---|---|
void |
close()
Shut down the matlab engine. |
java.lang.Object |
evaluate(java.lang.String command,
java.lang.String resultName,
java.util.Map nameValueMap)
Evaluate a Matlab command - helper method: automatically flush vars. |
java.lang.Object |
evaluate(java.lang.String command,
java.lang.String resultName,
java.util.Map nameValueMap,
boolean flushVariables)
Evaluate a Matlab command. |
java.lang.Object |
getVariable(java.lang.String varName)
Retrieve a variable from the Matlab engine. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_Unknown
public static final int TYPE_Char
public static final int TYPE_UChar
public static final int TYPE_Byte
public static final int TYPE_Short
public static final int TYPE_UShort
public static final int TYPE_Int
public static final int TYPE_UInt
public static final int TYPE_Long
public static final int TYPE_ULong
public static final int TYPE_LLong
public static final int TYPE_ULLong
public static final int TYPE_Boolean
public static final int TYPE_Double
public static final int TYPE_Float
public static final int TYPE_Null
public static final boolean isAvailable
public static final java.lang.String DEFAULT_StartCommand
public static final java.lang.String DEFAULT_DebugStatus
public static final boolean DEFAULT_StartEngine
public static final java.lang.String PROPERTY_Base
public static boolean isDebug
| Constructor Detail |
|---|
public MatlabImpl()
throws MatlabProxyNotFoundException,
MatlabException
MatlabProxyNotFoundException - If the Matlab engine is not available on this machine.
MatlabException - If there was an exception whle starting the engine.
public MatlabImpl(java.lang.String startCommand,
java.lang.Boolean debugOn)
throws MatlabProxyNotFoundException,
MatlabException
startCommand - Command to start Matlab engine with.debugOn - Turn on debugging output (especially within the JNI code).
MatlabProxyNotFoundException - If the Matlab engine is not available on this machine.
MatlabException - If there was an exception whle starting the engine.| Method Detail |
|---|
public void close()
throws MatlabException
MatlabException
public java.lang.Object evaluate(java.lang.String command,
java.lang.String resultName,
java.util.Map nameValueMap)
throws java.lang.NumberFormatException,
MatlabException
evaluate in interface Matlabcommand - The command to evaluate.resultName - The variable with the answer (null implies "JICOS")nameValueMap - A collection of name/value pairs.
java.lang.NumberFormatException - If one of the data types is unknown.
MatlabException - On error in the engine.
public java.lang.Object evaluate(java.lang.String command,
java.lang.String resultName,
java.util.Map nameValueMap,
boolean flushVariables)
throws java.lang.NumberFormatException,
MatlabException
evaluate in interface Matlabcommand - The command to evaluate.resultName - The variable with the answer (null implies "JICOS")nameValueMap - A collection of name/value pairs.flushVariables - Automatically remove variables when done?
java.lang.NumberFormatException - If one of the data types is unknown.
MatlabException - On error in the engine.
public java.lang.Object getVariable(java.lang.String varName)
throws MatlabException
getVariable in interface MatlabvarName - The name of the variable to retrieve.
null if not available.
MatlabException - On error in the engine.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||