public class RemoteMatlabProxyFactory
extends java.lang.Object
RemoteMatlabProxy. Each proxy will control a
different instance of MATLAB. Confirmed to work on OS X, Windows, & Linux. If your operating
system is not reported as OS X, it will launch it as if it were on Windows or Linux (they are
handled exactly the same).| Constructor and Description |
|---|
RemoteMatlabProxyFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionListener(MatlabConnectionListener listener)
Add a listener to be notified when MATLAB connections are established and lost.
|
RemoteMatlabProxy |
getProxy()
Calling this method will get a
RemoteMatlabProxy. |
void |
removeConnectionListener(MatlabConnectionListener listener)
Removes a listener so that it is no longer notified.
|
void |
requestProxy()
Requests a proxy.
|
void |
setMatlabLocation(java.lang.String matlabLocation)
Set the location of the MATLAB program.
|
void |
setTimeout(int ms)
Sets the maximum amount of time to wait in attempting to setup a connection to MATLAB in
milliseconds.
|
public void setMatlabLocation(java.lang.String matlabLocation)
matlabLocation - public void requestProxy()
throws MatlabConnectionException
MatlabConnectionExceptiongetProxy(),
addConnectionListener(MatlabConnectionListener)public RemoteMatlabProxy getProxy() throws MatlabConnectionException
RemoteMatlabProxy. This will take some time as it
involves launching MATLAB. If for any reason a connection cannot be established, this method
will timeout in 60 seconds or the amount of time as specified by setTimeout(int).MatlabConnectionExceptionrequestProxy()public void setTimeout(int ms)
ms - public void addConnectionListener(MatlabConnectionListener listener)
listener - public void removeConnectionListener(MatlabConnectionListener listener)
listener -