[DEFERRED] Use Editor API for state machine (StateUsage + TransitionUsage) once upstream ships

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
jupyter-notebook, python
Ambito
tooling

Direzione di ricerca

Start in the construction cell containing IDLE_STATE and START_TRANS, and verify whether the upstream Editor API now accepts kind='state usage' and kind='transition'. Once supported, replace each SysML string fragment with the corresponding API call and rerun the state-machine example to confirm the sub-states and transitions are preserved.

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

Descrizione

Context

The opensysml v0.9.0 parser accepts this construct:

```sysml
package P {
state def Cycle {
state idle;
transition idle_to_heating
first idle
accept Start
then heating;
state heating;
transition heating_to_ready
first heating
accept Finish
then ready;
state ready;
}
}
```

This proves the construct is defined in the SysML v2 specification.

Probing (2026-09-25): editor.add_member(kind='state def', name='Cycle') produces a bare
state def Cycle;. editor.add_member(kind='state usage', ...) and
editor.add_member(kind='transition', ...) both raise IllegalMemberKindError.

A full state machine (sub-states + transitions) requires Pattern B (SysML string).

Spec reference

SysML v2 Language Specification formal/2026-03-02, clause 7.18 (StateDefinition, StateUsage,
TransitionUsage, TransitionBody — accept and then clauses)

Current workaround

Construction cell uses a SysML string fragment per sub-element (one per future API call):

```python
IDLE_STATE = " state idle;"
START_TRANS = " transition idle_to_heating first idle accept Start then heating;"

etc.

```

Upstream issues

Open-MBEE/OpenSysML#TBD for state usage and transition kind support (to be filed)

Resolution

When the upstream Editor API supports kind='state usage' and kind='transition',
migrate each fragment variable to the corresponding API call.

Lingua principale
Jupyter Notebook
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

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 Open-MBEE/toaster

Tutte le issue di Open-MBEE/toaster

Issue simili

Altre issue su DevTools

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.