java.lang.Object
com.nomagic.reportwizard.tools.dependencymatrix.Matrix

@OpenApiAll public class Matrix extends Object
Class for getting row elements, column name and relation between row and column elements.
Since:
Feb 1, 2012
  • Constructor Details

    • Matrix

      public Matrix(com.nomagic.magicdraw.dependencymatrix.DependencyMatrix matrix)
      Constructor
      Parameters:
      matrix - Dependency Matrix instance
  • Method Details

    • getRowElements

      public List<Element> getRowElements()
      Get all row elements.
      Returns:
      list of elements
    • getColumnElements

      public List<Element> getColumnElements()
      Get all column element.
      Returns:
      list of elements
    • getRows

      @CheckForNull @Deprecated public List<Element> getRows()
      Deprecated.
    • getColumns

      @CheckForNull @Deprecated public List<Element> getColumns()
      Deprecated.
    • getRowNodes

      public List<ElementNode> getRowNodes()
      Returns:
      list of nodes that represent matrix rows, in the same order as they are actually displayed in the diagram. Grouping packages, that do not belong to the matrix data are skipped.
    • getColumnNodes

      public List<ElementNode> getColumnNodes()
      Returns:
      list of nodes that represent matrix rows, in the same order as they are actually displayed in the diagram. Grouping packages, that do not belong to the matrix data are skipped.
    • getCellDependencies

      public List<Relation> getCellDependencies(ElementNode rowNode, ElementNode columnNode)
      Get list of relations inside the cell identified row node and column node
    • getRelation

      public List<Relation> getRelation(Element rowElement, Element columnElement)
      Get list of relation between rowElement and column element.
      Parameters:
      rowElement - row element
      columnElement - column element
      Returns:
      list of Relation
    • getMatrix

      public com.nomagic.magicdraw.dependencymatrix.DependencyMatrix getMatrix()
      Gets dependency matrix instance.
      Returns:
      matrix
    • setMatrix

      public void setMatrix(com.nomagic.magicdraw.dependencymatrix.DependencyMatrix matrix)
      Sets dependency matrix instance.
      Parameters:
      matrix - matrix