[DEFERRED] Use Editor API for state machine (StateUsage + TransitionUsage) once upstream ships
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Open-MBEE/toaster
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
Tutte le issue di Open-MBEE/toaster
Issue simili
-
The print preview leaves writing space short by the margins of hidden headers, footers and solutionsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
PreTeXtBook/pretext#3329 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
ScoopInstaller/Extras#19404 ·
I maintainer di solito rispondono entro 1 giorno
-
area: batch
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
inabagumi/shinju-date#7294 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
streaming-video-technology-alliance/common-media-library#700 ·
I maintainer di solito rispondono entro 1 giorno
-
bot:ai-assisted component:platform-js status:untriaged
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
midnightntwrk/platform-js#35 ·