Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ recursion.

**Scope:** `InterconnectionViewLayoutStrategy`'s `LayOutInterior`/`CollectParts` recursion;
possibly a new `LayeredPlacement` entry point that builds a genuinely nested `LayoutGraph`.

**Engine support:** `DemaConsulting.Rendering` 0.3.0-beta.2 now routes an edge declared on a graph
scope between nodes that sit at any depth beneath it (a cross-hierarchy edge, anchored to the actual
nested nodes rather than their containers), which removes the engine-side blocker for this item.
`GeneralViewLayoutStrategy` already uses it for edges across packages. The Interconnection
strategy's restructuring described above is still required, so this item remains open.
**Visual gate:** `connect psu to board.cpu;` renders a connector line that visually terminates on
the inner `cpu` box, not the `board` container's boundary.

Expand Down

Large diffs are not rendered by default.

57 changes: 48 additions & 9 deletions docs/gallery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,11 @@ Model: [`models/10-mission-control-expose-recursion.sysml`](models/10-mission-co
![Operator Console Deep View](png/OperatorConsoleDeepView.png)

`GroundSegmentDirectChildrenView` (`expose GroundSegment::*;`, NamespaceDirectChildren)
exposes only `GroundSegment`'s direct members, one level deep: `OperatorConsole` and
`ThermalRegulator` appear, but neither `OperatorConsole`'s own nested definitions nor
`RadioNetwork`'s nested `Uplink`/`Downlink` (both two levels below `GroundSegment`) do —
and `GroundSegment` itself is not included either.
exposes only `GroundSegment`'s direct members, one level deep: `OperatorConsole`, `ThermalRegulator`,
and the `RadioNetwork` package itself (drawn as an empty package node, since its own members
`Uplink`/`Downlink` are two levels below `GroundSegment` and so are not exposed) appear, but neither
`OperatorConsole`'s own nested definitions nor `RadioNetwork`'s contents do — and `GroundSegment`
itself is not included either.

Model: [`models/10-mission-control-expose-recursion.sysml`](models/10-mission-control-expose-recursion.sysml)
(`GroundSegmentDirectChildrenView`) ·
Expand All @@ -282,11 +283,10 @@ SVG: [`svg/GroundSegmentDirectChildrenView.svg`](svg/GroundSegmentDirectChildren

`GroundSegmentRecursiveView` (`expose GroundSegment::*::**;`, NamespaceRecursive) exposes
every descendant of `GroundSegment`, recursively — `OperatorConsole`, `DisplayPanel`,
`CommsHandset`, `ThermalRegulator`, `Uplink`, and `Downlink` all appear. `RadioNetwork`
is a bare `package`, not a definition, so it is never itself rendered as a box; its members
`Uplink`/`Downlink` are in scope and render as flat top-level boxes with no `RadioNetwork`
wrapper. `GroundSegment` (also a bare package) is excluded from scope and, like
`RadioNetwork`, shows no folder either.
`CommsHandset`, `ThermalRegulator`, `Uplink`, and `Downlink` all appear. `RadioNetwork` is
itself a descendant of `GroundSegment`, so it is drawn as a package folder around its members
`Uplink`/`Downlink`. `GroundSegment` (also a bare package) is excluded from scope and shows no
folder.

Model: [`models/10-mission-control-expose-recursion.sysml`](models/10-mission-control-expose-recursion.sysml)
(`GroundSegmentRecursiveView`) · SVG: [`svg/GroundSegmentRecursiveView.svg`](svg/GroundSegmentRecursiveView.svg)
Expand All @@ -303,6 +303,44 @@ Model: [`models/10-mission-control-expose-recursion.sysml`](models/10-mission-co
> around `Battery` in `BatterySubsystemView`, since `QuadcopterDrone` itself was never exposed —
> only `Battery` was.

The unscoped `MissionControlGeneralView` in the same model draws the whole hierarchy: the
`MissionControl` folder holds the `GroundSegment` and `SpaceSegment` folders, and
`GroundSegment` in turn holds the `RadioNetwork` folder beside the `OperatorConsole` and
`ThermalRegulator` boxes, because a nested package is drawn inside its owner's folder.

Model: [`models/10-mission-control-expose-recursion.sysml`](models/10-mission-control-expose-recursion.sysml)
(`MissionControlGeneralView`) · SVG: [`svg/MissionControlGeneralView.svg`](svg/MissionControlGeneralView.svg)

![Mission Control General View: SpaceSegment and GroundSegment folders, with RadioNetwork nested inside GroundSegment, all inside the MissionControl folder](png/MissionControlGeneralView.png)

---

## 11. General View — Nested Packages and Cross-Package Edges

Shows how a General View draws a package hierarchy. The `Vehicle` package owns two nested
packages, `Powertrain` and `Body`, which are drawn as folders **inside** the `Vehicle` folder
rather than beside it, together with `Car`, a definition owned by `Vehicle` itself.

Every relationship between two drawn definitions is drawn as a connector between the two
definition boxes themselves, whichever packages they are in. `Hybrid :> Powertrain::Engine`
is a specialization that crosses from the `Body` package into the `Powertrain` package, and
`Car`'s `engine : Powertrain::Engine` and `chassis : Body::Chassis` parts draw filled-diamond
composition edges from the nested packages' definitions to the owner-level `Car` box. Each
connector is declared in the innermost container that encloses both of its ends (here the
`Vehicle` folder), so it leaves the nested folders and ends on the definition boxes, not on the
folder borders. Specializations inside one package (`ElectricMotor :> Engine`,
`SportsChassis :> Chassis`) stay inside that package's folder.

The order of the definitions inside a folder follows where their relationships lead rather than the
order they were declared in: `Hybrid` is declared after `Chassis`, but its specialization leads into
the nearer `Powertrain` folder while `Chassis`'s composition leads past it to `Car`, so `Hybrid` is
drawn above `Chassis` and the connectors do not cross.

Model: [`models/11-nested-packages-general.sysml`](models/11-nested-packages-general.sysml) ·
SVG: [`svg/VehiclePackagesGeneralView.svg`](svg/VehiclePackagesGeneralView.svg)

![Vehicle Packages General View: Powertrain and Body folders nested inside the Vehicle folder, with the Hybrid specialization and the Engine and Chassis compositions into Car drawn between the definition boxes](png/VehiclePackagesGeneralView.png)

---

## View coverage
Expand All @@ -319,3 +357,4 @@ Model: [`models/10-mission-control-expose-recursion.sysml`](models/10-mission-co
| 8 | Nested Interconnection View | Computer System | ✅ |
| 9 | Multi-Port Interconnection View | Motor/Controller Rig | ✅ |
| 10 | Geometry View | — | Deferred (requires spatial coordinate data) |
| 11 | General View — Nested Packages | Vehicle Packages | ✅ |
30 changes: 30 additions & 0 deletions docs/gallery/models/11-nested-packages-general.sysml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package Vehicle {

// Two packages nested inside the Vehicle package. A General View draws each nested
// package as a folder inside its owner's folder, instead of beside it.
package Powertrain {
part def Engine;

// A specialization inside one nested package: both definitions share a folder.
part def ElectricMotor :> Engine;
}

package Body {
part def Chassis;
part def SportsChassis :> Chassis;

// A specialization across two sibling packages: Hybrid specializes Powertrain's
// Engine from Body's folder, so the edge crosses between the two nested folders.
part def Hybrid :> Powertrain::Engine;
}

// Car is owned by the outer Vehicle package and typed by definitions from both nested
// packages. Its parts draw composition edges from the nested definitions out to the
// owner-level Car box, crossing the nested folders' borders.
part def Car {
part engine : Powertrain::Engine;
part chassis : Body::Chassis;
}

view def VehiclePackagesGeneralView {}
}
Binary file modified docs/gallery/png/GroundSegmentDirectChildrenView.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/gallery/png/GroundSegmentRecursiveView.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/gallery/png/MissionControlGeneralView.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/gallery/png/VehiclePackagesGeneralView.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion docs/gallery/svg/GroundSegmentDirectChildrenView.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 22 additions & 19 deletions docs/gallery/svg/GroundSegmentRecursiveView.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading