Matrix
- 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.
viewis the matrix view, from which its names and every attribute it declares are read, anddirectionis the direction itscellViewdeclares.rowsandcolumnsare the headers in display order, andtraceabilitythe relationships connecting the two axes.traceabilityholds strong links only.show_weak_traceabilityis thecellView’sshowWeakTraceability: 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)RWRWRWRWRWRWThe traceability filling the cell of
rowandcolumn, intraceabilityorder; several entries are several relationships in one cell.The traceability filling any cell of
column, intraceabilityorder.The traceability filling any cell of
row, intraceabilityorder.Attributes
- columns: tuple[syside.experimental.grid.MatrixHeader, ...] = None
- direction: syside.experimental.grid.MatrixTraceabilityDirection = None
- rows: tuple[syside.experimental.grid.MatrixHeader, ...] = 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
rowandcolumn, intraceabilityorder; 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 –
rowis not a row, orcolumnnot 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, intraceabilityorder.- Raises:
LookupError –
columnis 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, intraceabilityorder.- Raises:
LookupError –
rowis not a row of this matrix.
Used by