public interface MWInvokable
MWClient.createComponentProxy()
is an
implementation of this interface.Modifier and Type | Method and Description |
---|---|
<T> T |
invoke(java.lang.String functionName,
java.lang.Class<T> targetType,
java.lang.Object... inputs)
Invokes a MATLAB function that returns a single value.
|
<T> T |
invoke(java.lang.String functionName,
int nargout,
java.lang.Class<T> targetType,
java.lang.Object... inputs)
Invokes a MATLAB function that returns multiple values.
|
<T> MWRequest<T> |
invokeAsync(MWInvokeRequest<T> invokeRequest,
MWRequestListener<T> callback)
Invokes a MATLAB function asynchronously with a callback attached.
|
void |
invokeVoid(java.lang.String functionName,
java.lang.Object... inputs)
Invokes a MATLAB function that does not return a value.
|
<T> T invoke(java.lang.String functionName, int nargout, java.lang.Class<T> targetType, java.lang.Object... inputs) throws java.lang.Throwable
T
- The type of the returned objectfunctionName
- Name of the MATLAB function to be invokednargout
- Number of output argumentstargetType
- Java type for MATLAB outputinputs
- Parameters passed to MATLAB functionjava.lang.Throwable
<T> T invoke(java.lang.String functionName, java.lang.Class<T> targetType, java.lang.Object... inputs) throws java.lang.Throwable
T
- The type of the returned objectfunctionName
- Name of the MATLAB function to be invokedtargetType
- Java type for MATLAB outputinputs
- Parameters passed to MATLAB functionjava.lang.Throwable
void invokeVoid(java.lang.String functionName, java.lang.Object... inputs) throws java.lang.Throwable
functionName
- inputs
- java.lang.Throwable
<T> MWRequest<T> invokeAsync(MWInvokeRequest<T> invokeRequest, MWRequestListener<T> callback)
T
- The type of the returned object return A reference to an
MWRequest objectfunctionName
- Name of the MATLAB function to be invokednargout
- Number of output argumentstargetType
- Java type for MATLAB outputcallback
- A listener objectinputs
- Parameters passed to MATLAB functionCopyright 2010-2016 The MathWorks, Inc.