public class ComponentProxy extends Object implements MWInvokable
| Constructor and Description |
|---|
ComponentProxy(MWFevalHandler httpHandler,
URL url,
MWMarshalingRules marshalingRules,
MWClientUsageLock clientUsageLock,
MWHttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
invoke(String functionName,
Class<T> targetType,
Object... inputs)
Invokes a MATLAB function that returns a single value.
|
<T> T |
invoke(String functionName,
int nargout,
Class<T> targetType,
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.
|
void |
invokeVoid(String functionName,
Object... inputs)
Invokes a MATLAB function that does not return a value.
|
public ComponentProxy(MWFevalHandler httpHandler, URL url, MWMarshalingRules marshalingRules, MWClientUsageLock clientUsageLock, MWHttpClient httpClient)
httpHandler - Handler to the HTTP client driver, could be sun/apache url to
the CTF with the form:
http://:/ marshalingRules - Marshaling rules to define a list java classes that should be
treated as structurespublic <T> T invoke(String functionName, int nargout, Class<T> targetType, Object... inputs) throws Throwable
MWInvokableinvoke in interface MWInvokableT - functionName - Name of the MATLAB functionnargout - number of output arguments for the MATLAB function being
calledtargetType - specified data types for the output arguments, default is
Objectinputs - inputs to the MATLAB function being calledMATLABExceptionIOExceptionThrowablepublic <T> T invoke(String functionName, Class<T> targetType, Object... inputs) throws Throwable
MWInvokableinvoke in interface MWInvokableT - functionName - Name of the MATLAB functiontargetType - specified data types for the output arguments, default is
Objectinputs - inputs to the MATLAB function being calledMATLABExceptionIOExceptionThrowablepublic void invokeVoid(String functionName, Object... inputs) throws Throwable
MWInvokableinvokeVoid in interface MWInvokablefunctionName - inputs - Throwablepublic <T> MWRequest<T> invokeAsync(MWInvokeRequest<T> invokeRequest, MWRequestListener<T> callback)
invokeAsync in interface MWInvokableT - The type of the returned objectinvokeRequest - An MWInvokeRequestcallback - A listener objectCopyright © 2015–2024. All rights reserved.