Class AbstractTreeMatrix<T>

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Matrix>, TreeModel, HasMetaData, BaseMatrix, BooleanCalculations, CanPerformCalculations, DenseMatrix, DenseMatrix2D, DenseMatrixMultiD, BaseDoubleMatrix, BasicDoubleCalculations, DoubleCalculations, BasicEntrywiseDoubleCalculations, CreatorDoubleCalculations, EntrywiseDoubleCalculations, HyperbolicDoubleCalculations, MiscEntrywiseDoubleCalculations, RoundingDoubleCalculations, TrigonometricDoubleCalculations, DecompositionDoubleCalculations, DiscretizeCalculations, GeneralDoubleCalculations, MiscGeneralDoubleCalculations, MissingValueDoubleCalculations, StatisticalDoubleCalculations, DenseDoubleMatrix, DenseDoubleMatrix2D, DenseDoubleMatrixMultiD, DoubleMatrix, DoubleMatrix2D, DoubleMatrixMultiD, SparseDoubleMatrix, SparseDoubleMatrix2D, SparseDoubleMatrixMultiD, BaseGenericMatrix<Double>, DenseGenericMatrix<Double>, DenseGenericMatrix2D<Double>, DenseGenericMatrixMultiD<Double>, GenericMatrix<Double>, GenericMatrix2D<Double>, GenericMatrixMultiD<Double>, SparseGenericMatrix<Double>, SparseGenericMatrix2D<Double>, SparseGenericMatrixMultiD<Double>, BaseMatrixProperties, Clearable, Conversions, CoordinateFunctions, CoreObject, DistanceMeasures, ExtendedMatrixProperties, GettersAndSetters, HasDescription, HasGUIObject, HasId, HasLabel, IntCalculations, Matrix, Matrix2D, MatrixMultiD, BaseNumberMatrix<Double>, DenseNumberMatrix<Double>, DenseNumberMatrix2D<Double>, DenseNumberMatrixMultiD<Double>, NumberMatrix<Double>, NumberMatrix2D<Double>, NumberMatrixMultiD<Double>, SparseNumberMatrix<Double>, SparseNumberMatrix2D<Double>, SparseNumberMatrixMultiD<Double>, ObjectCalculations, SparseMatrix, SparseMatrix2D, SparseMatrixMultiD, StringCalculations, Tree<T>, TreeMatrix<T>
Direct Known Subclasses:
DefaultTreeMatrix, ObjectTreeMatrix

public abstract class AbstractTreeMatrix<T> extends AbstractSparseDoubleMatrix2D implements TreeMatrix<T>
See Also:
  • Field Details

  • Constructor Details

    • AbstractTreeMatrix

      public AbstractTreeMatrix()
  • Method Details

    • containsCoordinates

      public boolean containsCoordinates(long... coordinates)
      Description copied from interface: CoordinateFunctions
      Determines if the given Coordinates are part of the Matrix. If the Matrix is dense, true is returned for all Coordinates smaller than the Matrix's size. For sparse Matrices, this function checks if the coordinates are actually stored in the matrix or not.
      Specified by:
      containsCoordinates in interface CoordinateFunctions
      Parameters:
      coordinates - The coordinates to check
      Returns:
      a boolean stating if the coordinates are part of the Matrix
    • isChild

      public final boolean isChild(Object parent, Object child)
      Specified by:
      isChild in interface Tree<T>
    • isChild

      public final boolean isChild(int parentId, int childId)
      Specified by:
      isChild in interface Tree<T>
    • getObject

      public final T getObject(int index)
      Specified by:
      getObject in interface Tree<T>
    • getChildCountRecursive

      public final long getChildCountRecursive(Object parent)
      Specified by:
      getChildCountRecursive in interface Tree<T>
    • getParent

      public T getParent(Object o)
      Specified by:
      getParent in interface Tree<T>
    • addChildren

      public void addChildren(T parent, Collection<? extends T> children)
      Specified by:
      addChildren in interface Tree<T>
    • getSize

      public final long[] getSize()
      Specified by:
      getSize in interface BaseMatrixProperties
      Overrides:
      getSize in class AbstractMatrix
    • getDouble

      public final double getDouble(int row, int column)
      Specified by:
      getDouble in interface DoubleMatrix2D
    • getDouble

      public final double getDouble(long row, long column)
      Specified by:
      getDouble in interface DoubleMatrix2D
    • addChild

      public final void addChild(T parent, T child)
      Specified by:
      addChild in interface Tree<T>
    • removeChild

      public final void removeChild(T parent, T child)
      Specified by:
      removeChild in interface Tree<T>
    • setDouble

      public final void setDouble(double value, long row, long column)
      Specified by:
      setDouble in interface DoubleMatrix2D
    • setDouble

      public void setDouble(double value, int row, int column)
      Specified by:
      setDouble in interface DoubleMatrix2D
    • addTreeModelListener

      public void addTreeModelListener(TreeModelListener l)
      Specified by:
      addTreeModelListener in interface TreeModel
    • getChild

      public final T getChild(Object parent, int index)
      Specified by:
      getChild in interface TreeModel
    • getChildCount

      public final int getChildCount(Object parent)
      Specified by:
      getChildCount in interface TreeModel
    • getIndexOfChild

      public final int getIndexOfChild(Object parent, Object child)
      Specified by:
      getIndexOfChild in interface TreeModel
    • isLeaf

      public final boolean isLeaf(Object node)
      Specified by:
      isLeaf in interface TreeModel
    • removeTreeModelListener

      public final void removeTreeModelListener(TreeModelListener l)
      Specified by:
      removeTreeModelListener in interface TreeModel
    • valueForPathChanged

      public final void valueForPathChanged(TreePath path, Object newValue)
      Specified by:
      valueForPathChanged in interface TreeModel
    • getNumberOfObjects

      public final int getNumberOfObjects()
      Specified by:
      getNumberOfObjects in interface Tree<T>
    • addObject

      public void addObject(T o)
      Specified by:
      addObject in interface Tree<T>