First-Class UML Dialect (14 Diagram Types) + Generic Graphs

Fifteen Diagram Types. One Grammar.

Dhi provides first-class support for the uml dialect (dialect uml;) covering all 14 UML diagram types, plus dialect-free Generic Diagrams—compiled from .dhi source with strict static validation and deterministic orthogonal layout.

behavioral uml::sequence_diagram

Sequence Diagram

Model time-ordered interactions, lifelines, activation frames, parallel blocks, and conditional branches with compile-time participant validation.

actor/client/service/database lifelines, phases, alt/else, par, async, notes Inspect →
behavioral uml::activity_diagram

Activity Diagram

Describe procedural workflows, swimlane partitions, object buffers, fork/join concurrency, and guarded control flows.

Control nodes (initial, decision, merge, final), actions, if/else guards Inspect →
behavioral uml::state_machine

State Machine

Specify finite and hierarchical state machines with typed events, entry/exit/run hooks, fork/join bars, and orthogonal regions.

pub event, lifecycle pseudostates, on Event -> Target, kinematic reference/branch/joint Inspect →
structural uml::class_diagram

Class Diagram

Design strongly-typed domain models with classes, interfaces, records, enums, generics, visibility modifiers, and UML relationships.

Subsystem frames, abstract, record, enum, interface, generics (Option<Order>), #[invariant] Inspect →
structural uml::component_diagram

Component Diagram

Architect modular software components with explicit provided/required interface ports, assembly wiring, and deployment artifacts.

Boundary ports (provides/requires), assembly connectors, artifacts, spread tokens Inspect →
structural uml::deployment_diagram

Deployment Diagram

Map physical and cloud execution topologies with nested nodes, runtime environments, artifacts, and encrypted communication paths.

Nested infrastructure (device -> runtime -> artifact), mTLS communication links Inspect →
general diagram

Generic Diagram

Build arbitrary architecture, cloud, and system topology graphs without UML-specific ceremony using rich geometric shapes and groups.

Dialect-free diagram "..." syntax, node shapes (cylinder, rounded, cloud, hexagon), ports & group Inspect →
structural uml::object_diagram

Object Diagram

Capture concrete runtime snapshots of class instances, field slot values, and active object links at a specific point in execution.

Runtime object instances, concrete slot values, and instance links Inspect →
structural uml::package_diagram

Package Diagram

Visualize namespace organization, layered architecture boundaries, and import/merge dependencies across modules.

Layered namespaces, package imports, access dependencies, and containment Inspect →
structural uml::composite_structure_diagram

Composite Structure

Inspect the internal runtime wiring of a structured classifier with parts, ports, and delegation/assembly connectors.

Internal class parts, boundary ports, delegation connectors, and collaborations Inspect →
behavioral uml::use_case_diagram

Use Case Diagram

Capture functional requirements, external actors, system scope boundaries, and include/extend use case relationships.

Actors, system boundaries, use cases, <<include>> and <<extend>> relationships Inspect →
structural uml::profile_diagram

Profile Diagram

Extend UML semantics for domain-specific modeling by defining custom stereotypes, metaclasses, and tagged attributes.

Stereotypes, metaclasses, tagged values, and domain extensions Inspect →
behavioral uml::communication_diagram

Communication Diagram

Emphasize structural links between collaborating objects alongside sequenced message numbering.

Object collaboration topology with numbered message sequences Inspect →
behavioral uml::interaction_overview_diagram

Interaction Overview

Combine activity-style control flow with interaction references to orchestrate complex multi-scenario workflows.

High-level control flow orchestrating interaction references Inspect →
behavioral uml::timing_diagram

Timing Diagram

Model hardware/protocol state changes along an explicit time axis with signal transitions and duration constraints.

State timelines, discrete time ticks, signal transitions, and timing constraints Inspect →