|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
jmatlink.CoreJMatLink
Field Summary | |
static int |
THREAD_DEAD
|
static int |
THREAD_DYING
|
static int |
THREAD_RUNNING
|
static int |
THREAD_STARTING
|
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 |
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. |
java.lang.String |
engGetOutputBuffer()
Return the outputs of previous commands from MATLAB's workspace. |
java.lang.String |
engGetOutputBuffer(long epL)
Return the ouputs of previous commands in 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. |
double[][] |
engGetVariable(long epL,
java.lang.String arrayS)
Get an array from a specified instance/workspace of MATLAB. |
double[][] |
engGetVariable(java.lang.String arrayS)
Get an array 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. |
int |
engOutputBuffer()
Return the outputs of previous commands from MATLAB's workspace. |
int |
engOutputBuffer(long epL,
int buflenI)
Return the ouputs of previous commands in MATLAB's workspace. |
void |
engPutVariable(long epL,
java.lang.String arrayS,
double[][] valuesDD)
Put an array (2 dimensional) into a specified instance/workspace of MATLAB. |
void |
engPutVariable(java.lang.String arrayS,
double[][] valuesDD)
Put an array (2 dimensional) into MATLAB's workspace. |
void |
engSetVisible(long epL,
boolean engVisB)
|
int |
getNoOfEngines()
Returns the number of currently opened engines |
int |
getThreadStatus()
closing of the engine thread takes some time. |
void |
kill()
this kills the engine thread |
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, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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 |
Field Detail |
public static final int THREAD_DEAD
public static final int THREAD_STARTING
public static final int THREAD_RUNNING
public static final int THREAD_DYING
Constructor Detail |
public CoreJMatLink()
Method Detail |
public int getThreadStatus()
public void kill()
public int getNoOfEngines()
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)
public double engGetScalar(long epL, java.lang.String arrayS)
epL
- pointer to individual connection to the engine
public double[][] engGetVariable(java.lang.String arrayS)
public double[][] engGetVariable(long epL, java.lang.String arrayS)
public void engPutVariable(java.lang.String arrayS, double[][] valuesDD)
public void engPutVariable(long epL, java.lang.String arrayS, double[][] valuesDD)
public int engOutputBuffer()
public int engOutputBuffer(long epL, int buflenI)
public java.lang.String engGetOutputBuffer()
public java.lang.String engGetOutputBuffer(long epL)
public void setDebug(boolean debugB)
public void run()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |