matlabcontrol.extensions
Class MatlabTypeConverter

java.lang.Object
  extended by matlabcontrol.extensions.MatlabTypeConverter

public class MatlabTypeConverter
extends java.lang.Object

Converts between MATLAB and Java types. Currently only supports numeric arrays.

This class is unconditionally thread-safe.

Since:
4.0.0

Constructor Summary
MatlabTypeConverter(MatlabProxy proxy)
          Constructs the converter.
 
Method Summary
 MatlabNumericArray getNumericArray(java.lang.String arrayName)
          Retrieves the MATLAB numeric array with the variable name arrayName.
 void setNumericArray(java.lang.String arrayName, MatlabNumericArray array)
          Stores the array in MATLAB with the variable name arrayName.
 java.lang.String toString()
          Returns a brief description of this converter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatlabTypeConverter

public MatlabTypeConverter(MatlabProxy proxy)
Constructs the converter.

Parameters:
proxy -
Method Detail

getNumericArray

public MatlabNumericArray getNumericArray(java.lang.String arrayName)
                                   throws MatlabInvocationException
Retrieves the MATLAB numeric array with the variable name arrayName.

Parameters:
arrayName -
Returns:
the retrieved numeric array
Throws:
MatlabInvocationException - if thrown by the proxy

setNumericArray

public void setNumericArray(java.lang.String arrayName,
                            MatlabNumericArray array)
                     throws MatlabInvocationException
Stores the array in MATLAB with the variable name arrayName.

Parameters:
arrayName - the variable name
array -
Throws:
MatlabInvocationException - if thrown by the proxy

toString

public java.lang.String toString()
Returns a brief description of this converter. The exact details of this representation are unspecified and are subject to change.

Overrides:
toString in class java.lang.Object
Returns: