|
CDMA client API
3.1.0
CDMA core library
|
This class defines main type used by the CDMA and some conversion methods. More...
Classes | |
| enum | ModelType |
| Public enumeration. More... | |
| enum | ParameterType |
Static Public Member Functions | |
| static ModelType | checkModelType (final Object signal) |
| static Object | findObject (URI uri, String dictionaryPath) throws FileAccessException |
| static Object | findObject (URI uri, String dictionaryPath, IFactory factory) throws FileAccessException |
| static ModelType | checkDataType (final URI uri, final String dictionaryPath) throws FileAccessException |
| static IArray | reshapeArray (final IArray array, final int[] shape) throws InvalidArrayTypeException |
| static IArray | copyToDoubleArray (final IArray array) |
| static IArray | copyToPositiveDoubleArray (final IArray array) |
| static void | copyTo (final IArray array1, final IArray array2, int length) throws DimensionNotSupportedException |
| static String | getKeyFromValue (IGroup group, String shortName) |
This class defines main type used by the CDMA and some conversion methods.
| static ModelType org.gumtree.data.utils.Utilities.checkDataType | ( | final URI | uri, |
| final String | dictionaryPath | ||
| ) | throws FileAccessException [static] |
Check the data type in the location referenced by the URI.
| uri | URI object |
| dictionaryPath | in String type |
| FileAccessException |
| static ModelType org.gumtree.data.utils.Utilities.checkModelType | ( | final Object | signal | ) | [static] |
Check the CDMA type of the object.
| signal | Object type |
| static void org.gumtree.data.utils.Utilities.copyTo | ( | final IArray | array1, |
| final IArray | array2, | ||
| int | length | ||
| ) | throws DimensionNotSupportedException [static] |
Helper method for copying the given number of items from one array to another. If the length is not given (length<0), as many items in array1 will be copied to array2 up to the smaller size of the two arrays.
| array1 | IArray object |
| array2 | IArray object |
| length | an int value |
| DimensionNotSupportedException |
| static IArray org.gumtree.data.utils.Utilities.copyToDoubleArray | ( | final IArray | array | ) | [static] |
Copy the array to a new array with double type storage.
| array | new IArray with new storage |
| static IArray org.gumtree.data.utils.Utilities.copyToPositiveDoubleArray | ( | final IArray | array | ) | [static] |
Copy the array to a new array with double type storage.
| array | new IArray with new storage |
| static Object org.gumtree.data.utils.Utilities.findObject | ( | URI | uri, |
| String | dictionaryPath | ||
| ) | throws FileAccessException [static] |
Retrieve the object that referenced by the URI.
| uri | URI object |
| dictionaryPath | in String type |
| FileAccessException | file access error |
| static Object org.gumtree.data.utils.Utilities.findObject | ( | URI | uri, |
| String | dictionaryPath, | ||
| IFactory | factory | ||
| ) | throws FileAccessException [static] |
Retrieve the object that referenced by the URI.
| uri | URI object |
| dictionaryPath | in String type |
| factory | data model factory |
| FileAccessException | file access error |
| static String org.gumtree.data.utils.Utilities.getKeyFromValue | ( | IGroup | group, |
| String | shortName | ||
| ) | [static] |
Reverse the dictionary. Return the key if given a value.
| group | |
| shortName |
| static IArray org.gumtree.data.utils.Utilities.reshapeArray | ( | final IArray | array, |
| final int[] | shape | ||
| ) | throws InvalidArrayTypeException [static] |
Create an new IArray by reshaping an IArray to a new shape. The total size of the new IArray must be same as the old IArray. The new IArray will use a new storage space.
| array | CDMA IArray type |
| shape | java array of integer |
| InvalidArrayTypeException |