Derived class/data diagram with associations, multiplicities, and typed data (structs, typedefs, ranges, units)

Aperta
#366 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
28/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, rust, yaml
Ambito
data, design

Direzione di ricerca

Start by reading the existing derived BDD implementation and the definitions of PartDef, ItemDef, AttributeDef, and EnumerationDef; the issue does not name their files or test paths. The acceptance criteria call for golden IR/SVG coverage and validation of payload ranges and units. Done means the diagrams and constrained data types work, out-of-range values and unit mismatches are reported, and existing models remain unchanged.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Part of #363 (item 4).

Current state

The derived BDD shows part and item type hierarchies and compositions. ItemDef, AttributeDef and EnumerationDef exist, and elements carry multiplicity. There is no class-diagram notation (association ends with multiplicity, aggregation versus composition, attribute compartments with type, unit and range) and no struct/typedef with value constraints.

Proposal

  1. Derived class/data diagram (diagramKind: Class, or a BDD style) from PartDef/ItemDef/AttributeDef/EnumerationDef: specialisation arrows, composition and association with multiplicities at the ends, attribute compartment (name: Type [unit] {range}), operation compartment (from A), enumeration literals.
  2. Data types with constraints. AttributeDef gains range: (closed/open numeric interval), unit:, pattern: for strings, default:; EnumerationDef literals carry values. typedef is an AttributeDef with supertype:. A struct is an ItemDef whose features are attributes. Values in machine expressions and payload fields are checked against ranges (E935-class), and in scenarios a payload outside its range is an error.
  3. Scope control with the existing include:/exclude: filters of derived diagrams.

Acceptance (tests first)

  • Golden IR/SVG for a small model: specialisation, composition with 1..*, association, enum, struct with ranged attributes.
  • A payload value outside the declared range is reported; units are checked against the attribute's unit.
  • Existing models are unchanged: new fields are optional.

Part of #272 (executable MBSE / software design).


Generated by Claude Code

Lingua principale
Rust
Stelle
8
Fork
1
Merge medio
3h 35m
PR unite (30g)
69

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sjames/syscribe

Tutte le issue di sjames/syscribe

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.