Class ConcreteMatrixToken


  • public class ConcreteMatrixToken
    extends MatrixToken
    A token that represents an empty matrix, with no element type. This is instantiated by the Constants class with name "matrix".
    Since:
    Ptolemy II 2.0
    Version:
    $Id$
    Author:
    Edward A. Lee
    See Also:
    Constants
    Pt.AcceptedRating:
    Yellow (wbwu)
    Pt.ProposedRating:
    Yellow (yuhong)
    • Constructor Detail

      • ConcreteMatrixToken

        public ConcreteMatrixToken()
    • Method Detail

      • getColumnCount

        public int getColumnCount()
        Return the number of columns of the contained matrix.
        Specified by:
        getColumnCount in class MatrixToken
        Returns:
        Zero.
      • getElementAsToken

        public Token getElementAsToken​(int row,
                                       int column)
                                throws java.lang.ArrayIndexOutOfBoundsException
        Throw an ArrayIndexOutOfBoundsException.
        Specified by:
        getElementAsToken in class MatrixToken
        Parameters:
        row - The row index of the desired element.
        column - The column index of the desired element.
        Returns:
        An exception.
        Throws:
        java.lang.ArrayIndexOutOfBoundsException - Always thrown.
      • getElementType

        public Type getElementType()
        Return the Type of the tokens contained in this matrix token.
        Specified by:
        getElementType in class MatrixToken
        Returns:
        A Type.
      • getRowCount

        public int getRowCount()
        Return the number of rows of the contained matrix.
        Specified by:
        getRowCount in class MatrixToken
        Returns:
        Zero.
      • getType

        public Type getType()
        Return the type of this token.
        Overrides:
        getType in class Token
        Returns:
        BaseType.MATRIX.