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

オープン
#366 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
28/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript, rust, yaml
領域
data, design

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Rust
スター
8
フォーク
1
平均マージ
3時間 35分
マージ済み PR(30日)
69

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

sjames/syscribe のほかの issue

sjames/syscribe の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。