Matrix

Labs

class Matrix

Description

A matrix view, read from a locked model by build_matrix().

A snapshot: it points into the model, is usable only while the model stays locked, and is not updated when the model changes.

view is the matrix view, from which its names and every attribute it declares are read, and direction is the direction its cellView declares. rows and columns are the headers in display order, and traceability the relationships connecting the two axes.

traceability holds strong links only. show_weak_traceability is the cellView’s showWeakTraceability: when it is true, the extension’s grid view also marks the cells a relationship reaches through what contains or generalises a header’s element, and those cells are not represented here.

Inheritance:

Members defined in Matrix (9 members)

columns

RW

direction

RW

rows

RW

show_weak_traceability

RW

traceability

RW

view

RW

between

The traceability filling the cell of row and column, in traceability order; several entries are several relationships in one cell.

of_column

The traceability filling any cell of column, in traceability order.

of_row

The traceability filling any cell of row, in traceability order.

Attributes

columns: tuple[syside.experimental.grid.MatrixHeader, ...] = None
direction: syside.experimental.grid.MatrixTraceabilityDirection = None
rows: tuple[syside.experimental.grid.MatrixHeader, ...] = None
show_weak_traceability: bool = None
traceability: tuple[syside.experimental.grid.MatrixTraceability, ...] = None
view: syside.ViewUsage = None

Methods

between(row: syside.experimental.grid.MatrixHeader | syside.Element, column: syside.experimental.grid.MatrixHeader | syside.Element) → tuple[syside.experimental.grid.MatrixTraceability, ...]

The traceability filling the cell of row and column, in traceability order; several entries are several relationships in one cell.

Parameters:
  • row – A row header, or the element of one.

  • column – A column header, or the element of one.

Raises:

LookupError – row is not a row, or column not a column, of this matrix.

of_column(column: syside.experimental.grid.MatrixHeader | syside.Element) → tuple[syside.experimental.grid.MatrixTraceability, ...]

The traceability filling any cell of column, in traceability order.

Raises:

LookupError – column is not a column of this matrix.

of_row(row: syside.experimental.grid.MatrixHeader | syside.Element) → tuple[syside.experimental.grid.MatrixTraceability, ...]

The traceability filling any cell of row, in traceability order.

Raises:

LookupError – row is not a row of this matrix.

Used by