JMIWrapperRemote

interface JMIWrapperRemote extends Remote

Methods that can be called to control MATLAB except for checkConnection(). All of these methods throw RemoteException. RemoteException will be thrown if something occurs to disrupt the communication between this JVM and the one MATLAB is running in. For instance, closing MATLAB will terminate its JVM and then all method calls on this proxy will throw exceptions. For descriptions of what these methods do see the corresponding methods in MatlabProxy.

Author:Joshua Kaplan

Methods

checkConnection

public void checkConnection()

This method does nothing. It is used internally to check if a connection is still active via calling this method and seeing if it throws a RemoteException (if it does, the connection is no longer active).

Throws:
  • RemoteException

eval

public void eval(String command)

exit

public void exit()

feval

public void feval(String command, Object[] args)

getVariable

public Object getVariable(String variableName)

invokeAndWait

public <U> U invokeAndWait(MatlabProxy.MatlabThreadCallable<U> callable)

returningEval

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

returningFeval

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

setVariable

public void setVariable(String variableName, Object value)