|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
gui.jmatlink.CoreJMatLink
public class CoreJMatLink
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
CoreJMatLink()
This is the constructor for the CoreJMatLink library. |
|
| Method Summary | |
|---|---|
void |
destroy()
terminate running thread |
void |
engClose()
Close the connection to MATLAB. |
void |
engClose(long epL)
Close a specified connection to an instance of MATLAB. |
void |
engCloseAll()
Close all open handles to MATLAB. |
void |
engEvalString(long epL,
java.lang.String evalS)
Evaluate an expression in MATLAB's workspace. |
void |
engEvalString(java.lang.String evalS)
Evaluate an expression in MATLAB's workspace. |
double[][] |
engGetArray(long epL,
java.lang.String arrayS)
Get an array from a specified instance/workspace of MATLAB. |
double[][] |
engGetArray(java.lang.String arrayS)
Get an array from MATLAB's workspace. |
java.lang.String[] |
engGetCharArray(java.lang.String arrayS)
Get an 'char' array (string) from MATLAB's workspace. |
double |
engGetScalar(long epL,
java.lang.String arrayS)
Get a scalar value from a specified workspace. |
double |
engGetScalar(java.lang.String arrayS)
Get a scalar value from MATLAB's workspace. |
boolean |
engGetVisible(long epL)
|
void |
engOpen(java.lang.String startCmdS)
Open engine. |
long |
engOpenSingleUse(java.lang.String startCmdS)
Open engine for single use. |
java.lang.String |
engOutputBuffer()
Return the outputs of previous commands from MATLAB's workspace. |
java.lang.String |
engOutputBuffer(long epL,
int buflenI)
Return the ouputs of previous commands in MATLAB's workspace. |
void |
engPutArray(long epL,
java.lang.String arrayS,
double[][] valuesDD)
Put an array (2 dimensional) into a specified instance/workspace of MATLAB. |
void |
engPutArray(java.lang.String arrayS,
double[][] valuesDD)
Put an array (2 dimensional) into MATLAB's workspace. |
void |
engSetVisible(long epL,
boolean engVisB)
|
void |
kill()
|
void |
run()
|
void |
setDebug(boolean debugB)
Switch on or disable debug information printed to standard output. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CoreJMatLink()
| Method Detail |
|---|
public void destroy()
destroy in class java.lang.Threadpublic void kill()
public void engOpen(java.lang.String startCmdS)
This command is only useful on unix systems. On windows the optional parameter must be NULL. This method is used in conjunction with engClose()
startCmdS - start command for engine. Does not work on Windows.public long engOpenSingleUse(java.lang.String startCmdS)
startCmdS - start command for engine. Does not work on Windows.public void engClose()
public void engClose(long epL)
epL - close one connection to the engine, with pointer epLpublic void engCloseAll()
public void engSetVisible(long epL,
boolean engVisB)
epL - engVisB - public boolean engGetVisible(long epL)
epL -
public void engEvalString(java.lang.String evalS)
evalS - String which contains MATLAB commands (e.g. "sin(a);b=rand(3,4)")
public void engEvalString(long epL,
java.lang.String evalS)
epL - pointer to individual connection to the engineevalS - String which contains MATLAB commands (e.g. "sin(a);b=rand(3,4)")public double engGetScalar(java.lang.String arrayS)
scalar - variable in MATLAB's workspace
public double engGetScalar(long epL,
java.lang.String arrayS)
epL - pointer to individual connection to the engineevalS - String which contains MATLAB commands (e.g. "sin(a);b=rand(3,4)")
public double[][] engGetArray(java.lang.String arrayS)
public double[][] engGetArray(long epL,
java.lang.String arrayS)
public java.lang.String[] engGetCharArray(java.lang.String arrayS)
public void engPutArray(java.lang.String arrayS,
double[][] valuesDD)
public void engPutArray(long epL,
java.lang.String arrayS,
double[][] valuesDD)
public java.lang.String engOutputBuffer()
public java.lang.String engOutputBuffer(long epL,
int buflenI)
public void setDebug(boolean debugB)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||