RemoteMatlabProxy

class RemoteMatlabProxy extends MatlabProxy

Allows for calling MATLAB from outside of MATLAB.

Author:Joshua Kaplan

Constructors

RemoteMatlabProxy

RemoteMatlabProxy(JMIWrapperRemote internalProxy, RequestReceiver receiver, Identifier id, boolean existingSession)

The proxy is never to be created outside of this package, it is to be constructed after a JMIWrapperRemote has been received via RMI.

Parameters:
  • internalProxy
  • receiver
  • id
  • existingSession

Methods

disconnect

public boolean disconnect()

eval

public void eval(String command)

exit

public void exit()

feval

public void feval(String functionName, Object... args)

getVariable

public Object getVariable(String variableName)

init

void init()

Initializes aspects of the proxy that cannot be done safely in the constructor without leaking a reference to this.

invokeAndWait

public <T> T invokeAndWait(MatlabThreadCallable<T> callable)

isConnected

public boolean isConnected()

isRunningInsideMatlab

public boolean isRunningInsideMatlab()

returningEval

public Object[] returningEval(String command, int nargout)

returningFeval

public Object[] returningFeval(String functionName, int nargout, Object... args)

setVariable

public void setVariable(String variableName, Object value)