public abstract class Array extends Data
CLASS_A, CLASS_APD, CLASS_D, CLASS_R, CLASS_S, DTYPE_ACTION, DTYPE_B, DTYPE_BU, DTYPE_CALL, DTYPE_CONDITION, DTYPE_CONGLOM, DTYPE_DEPENDENCY, DTYPE_DICTIONARY, DTYPE_DIMENSION, DTYPE_DISPATCH, DTYPE_DOUBLE, DTYPE_DSC, DTYPE_EVENT, DTYPE_FLOAT, DTYPE_FUNCTION, DTYPE_IDENT, DTYPE_L, DTYPE_LIST, DTYPE_LU, DTYPE_METHOD, DTYPE_NID, DTYPE_O, DTYPE_OU, DTYPE_PARAM, DTYPE_PATH, DTYPE_PROCEDURE, DTYPE_PROGRAM, DTYPE_Q, DTYPE_QU, DTYPE_RANGE, DTYPE_ROUTINE, DTYPE_SIGNAL, DTYPE_SLOPE, DTYPE_T, DTYPE_TUPLE, DTYPE_W, DTYPE_WINDOW, DTYPE_WITH_ERROR, DTYPE_WITH_UNITS, DTYPE_WU, TreeDEPENDENCY_AND, TreeDEPENDENCY_OR, TreeIGNORE_STATUS, TreeIGNORE_UNDEFINED, TreeNEGATE_CONDITION| Constructor and Description |
|---|
Array() |
Array(int[] dims,
Data help,
Data units,
Data error,
Data validation) |
| Modifier and Type | Method and Description |
|---|---|
abstract Data |
getElementAt(int idx) |
Data |
getElementAt(int[] getDims)
Return a single element, if the passed number of dimension is equals to the
dimension of dims field.
|
protected abstract Array |
getPortionAt(int startIdx,
int[] newDims,
int newSize) |
int[] |
getShape()
Get the array dimensions as an integer array.
|
int |
getSize() |
void |
setElementAt(int[] setDims,
Data data) |
abstract void |
setElementAt(int idx,
Data data) |
protected abstract void |
setPortionAt(Array data,
int startIdx,
int size) |
void |
setShape(int[] newDims) |
compile, compile, convertToDate, data, deserialize, evaluate, execute, executeWithContext, getByte, getByteArray, getDimensionAt, getDouble, getDoubleArray, getError, getFloat, getFloatArray, getHelp, getInt, getIntArray, getLong, getLongArray, getMdsMsg, getShort, getShortArray, getSizeInBytes, getString, getStringArray, getTime, getUnits, getValidation, plot, serialize, setCtxTree, setError, setHelp, setUnits, setValidation, toData, toData, toData, toData, toData, toData, toData, toData, toData, toData, toData, toData, toData, toData, toDouble, toStringpublic int[] getShape()
Datapublic void setShape(int[] newDims)
throws MdsException
MdsExceptionpublic abstract Data getElementAt(int idx)
protected abstract Array getPortionAt(int startIdx, int[] newDims, int newSize) throws MdsException
MdsExceptionpublic abstract void setElementAt(int idx,
Data data)
throws MdsException
MdsExceptionprotected abstract void setPortionAt(Array data, int startIdx, int size) throws MdsException
MdsExceptionpublic Data getElementAt(int[] getDims) throws MdsException
dims - MdsExceptionpublic void setElementAt(int[] setDims,
Data data)
throws MdsException
MdsExceptionCopyright © 2020. All rights reserved.