public class ResponseProducer<T> extends Object
| Constructor and Description |
|---|
ResponseProducer(int nargout,
Class<T> targetType,
MWAttributesContainer attributesContainer,
String functionName,
boolean hasNargout) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkMLResultForErrors(MATLABResult.MATLAB_Result mlResult)
Analyze the MATLAB response and throw an exception if number of expected outputs based on
the function invocation arguments do not match the number of outputs received from MATLAB.
|
Object |
createMATLABResponse(MATLABResult.MATLAB_Result mlResult)
Convert a MATLABResult protobuf message into JAVA primitive types
|
String |
getFunctionName() |
public ResponseProducer(int nargout,
Class<T> targetType,
MWAttributesContainer attributesContainer,
String functionName,
boolean hasNargout)
public Object createMATLABResponse(MATLABResult.MATLAB_Result mlResult) throws MATLABException
mlResult - MATLABResult protobuf message representing the result of invocation of a
MATLAB functionMATLABExceptionpublic void checkMLResultForErrors(MATLABResult.MATLAB_Result mlResult) throws MATLABException
mlParams - Object containing information about the parameters passed while invoking a
MATLAB functionmlResult - Object containing the MATLAB responsefunctionName - MethodInfo instance containing information about the Java methodMATLABExceptionpublic String getFunctionName()
Copyright © 2015–2024. All rights reserved.