|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.data.Token
ptolemy.data.MatrixToken
ptolemy.data.expr.ConcreteMatrixToken
A token that represents an empty matrix, with no element type. This is instantiated by the Constants class with name "matrix".
Constants,
Serialized Form
| Yellow (wbwu) |
| Yellow (yuhong) |
| Field Summary |
| Fields inherited from class ptolemy.data.MatrixToken |
DO_COPY, DO_NOT_COPY |
| Constructor Summary | |
ConcreteMatrixToken()
|
|
| Method Summary | |
int |
getColumnCount()
Return the number of columns of the contained matrix. |
Token |
getElementAsToken(int row,
int column)
Throw an ArrayIndexOutOfBoundsException. |
Type |
getElementType()
Return the Type of the tokens contained in this matrix token. |
int |
getRowCount()
Return the number of rows of the contained matrix. |
Type |
getType()
Return the type of this token. |
| Methods inherited from class ptolemy.data.Token |
isCloseTo, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, one, pow, zero, zeroReturnType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ConcreteMatrixToken()
| Method Detail |
public int getColumnCount()
getColumnCount in class MatrixToken
public Token getElementAsToken(int row,
int column)
throws java.lang.ArrayIndexOutOfBoundsException
getElementAsToken in class MatrixTokenrow - The row index of the desired element.column - The column index of the desired element.
java.lang.ArrayIndexOutOfBoundsException - Always thrown.public Type getElementType()
getElementType in class MatrixTokenpublic int getRowCount()
getRowCount in class MatrixTokenpublic Type getType()
getType in class Token
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||