# siamsell/fsm-methodes-separees architecture

> Architecture diagram of the GitHub repository siamsell/fsm-methodes-separees, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/siamsell/fsm-methodes-separees
- Repository: https://github.com/siamsell/fsm-methodes-separees

## Overview

This repository compares four ways to analyze FSM reachability and produce filtered FSM/XMI or UML in Modelio. The common workflow starts with an FSM/XMI model and an initial state, follows outgoing transitions to find reachable states, then reports or transforms the result. The graph preserves the standalone EMF transformation, Modelio macros, combined JAR-to-Modelio route, and integrated Java module. Source excerpts show some calls; README-documented relationships cover the broader method flows. Other macro and module internals were not fully sampled.

Main entry points: [`03-Integration-JAR-vers-Modelio/05_JAR_Transformer_et_Afficher_UML.py`](https://github.com/siamsell/fsm-methodes-separees/blob/main/03-Integration-JAR-vers-Modelio/05_JAR_Transformer_et_Afficher_UML.py) (JAR to UML macro), [`01-Java-EMF-FSM-vers-FSM/java/src/fsm/AccessibiliteTransformation.java`](https://github.com/siamsell/fsm-methodes-separees/blob/main/01-Java-EMF-FSM-vers-FSM/java/src/fsm/AccessibiliteTransformation.java) (Reachability analysis), [`04-Module-Java-Modelio-FSM-vers-UML/src/org/fsmaccessibilite/module/FsmAccessibilityTransformation.java`](https://github.com/siamsell/fsm-methodes-separees/blob/main/04-Module-Java-Modelio-FSM-vers-UML/src/org/fsmaccessibilite/module/FsmAccessibilityTransformation.java) (FSM to UML transform), [`04-Module-Java-Modelio-FSM-vers-UML/src/org/fsmaccessibilite/module/TransformFsmCommand.java`](https://github.com/siamsell/fsm-methodes-separees/blob/main/04-Module-Java-Modelio-FSM-vers-UML/src/org/fsmaccessibilite/module/TransformFsmCommand.java) (Package context command)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_fsm["FSM model"]
  node_fsm_schema["FSM Ecore schema"]
  node_fsm_api["FSM model API"]
end

subgraph group_emf["Java EMF"]
  node_reachability["Reachability analysis"]
  node_filtered_fsm["Filtered FSM/XMI"]
  node_java_jar["Accessibility JAR"]
end

subgraph group_macros["Modelio macros"]
  node_analysis_macro["Reachability report macro"]
  node_full_import_macro["Full FSM UML importer"]
  node_combined_macro["JAR to UML macro"]
  node_uml_model[("Modelio UML model")]
  node_uml_diagram["UML state diagram"]
end

subgraph group_module["Modelio module"]
  node_module_registration["Module registration"]
  node_module_command["Package context command"]
  node_module_transform["FSM to UML transform"]
end

node_user(("Model author"))

node_user -->|"runs with FSM"| node_reachability
node_reachability -->|"writes filtered FSM"| node_filtered_fsm
node_reachability -->|"loads and copies"| node_fsm_api
node_user -->|"runs analysis"| node_analysis_macro
node_analysis_macro -->|"reports reachability"| node_uml_model
node_user -->|"runs importer"| node_full_import_macro
node_full_import_macro -->|"creates UML"| node_uml_model
node_user -->|"runs combined route"| node_combined_macro
node_combined_macro -->|"launches JAR"| node_java_jar
node_java_jar -->|"writes filtered FSM"| node_filtered_fsm
node_combined_macro -->|"creates UML"| node_uml_model
node_combined_macro -->|"opens diagram"| node_uml_diagram
node_user -->|"selects FSM file"| node_module_command
node_module_registration -.->|"registers command"| node_module_command
node_module_command -->|"invokes transform"| node_module_transform
node_module_transform -->|"creates UML"| node_uml_model
node_module_transform -->|"creates diagram"| node_uml_diagram
node_fsm_schema -->|"defines model"| node_fsm_api

click node_fsm_schema "https://github.com/siamsell/fsm-methodes-separees/blob/main/01-Java-EMF-FSM-vers-FSM/metamodel/FiniteStateMachine.ecore"
click node_fsm_api "https://github.com/siamsell/fsm-methodes-separees/tree/main/01-Java-EMF-FSM-vers-FSM/java/src/fsm"
click node_reachability "https://github.com/siamsell/fsm-methodes-separees/blob/main/01-Java-EMF-FSM-vers-FSM/java/src/fsm/AccessibiliteTransformation.java"
click node_filtered_fsm "https://github.com/siamsell/fsm-methodes-separees/blob/main/01-Java-EMF-FSM-vers-FSM/java/src/fsm/AccessibiliteTransformation.java"
click node_analysis_macro "https://github.com/siamsell/fsm-methodes-separees/blob/main/02-Modelio-FSM-vers-UML/modelio/macros/04_Transformer_FSM_Accessible_Vers_UML.py"
click node_full_import_macro "https://github.com/siamsell/fsm-methodes-separees/blob/main/02-Modelio-FSM-vers-UML/modelio/macros/03_Importer_FSM_Complet_Vers_UML.py"
click node_combined_macro "https://github.com/siamsell/fsm-methodes-separees/blob/main/03-Integration-JAR-vers-Modelio/05_JAR_Transformer_et_Afficher_UML.py"
click node_java_jar "https://github.com/siamsell/fsm-methodes-separees/blob/main/03-Integration-JAR-vers-Modelio/fsm-accessibilite.jar"
click node_module_registration "https://github.com/siamsell/fsm-methodes-separees/blob/main/04-Module-Java-Modelio-FSM-vers-UML/src/org/fsmaccessibilite/module/FsmAccessibiliteModule.java"
click node_module_command "https://github.com/siamsell/fsm-methodes-separees/blob/main/04-Module-Java-Modelio-FSM-vers-UML/src/org/fsmaccessibilite/module/TransformFsmCommand.java"
click node_module_transform "https://github.com/siamsell/fsm-methodes-separees/blob/main/04-Module-Java-Modelio-FSM-vers-UML/src/org/fsmaccessibilite/module/FsmAccessibilityTransformation.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_fsm_schema,node_fsm_api toneBlue
class node_reachability,node_filtered_fsm,node_java_jar toneAmber
class node_analysis_macro,node_full_import_macro,node_combined_macro,node_uml_model,node_uml_diagram toneMint
class node_module_registration,node_module_command,node_module_transform toneRose
class node_user toneIndigo
```

## Components

### FSM model

- [FSM Ecore schema](https://github.com/siamsell/fsm-methodes-separees/blob/main/01-Java-EMF-FSM-vers-FSM/metamodel/FiniteStateMachine.ecore): `01-Java-EMF-FSM-vers-FSM/metamodel/FiniteStateMachine.ecore`
- [FSM model API](https://github.com/siamsell/fsm-methodes-separees/tree/main/01-Java-EMF-FSM-vers-FSM/java/src/fsm): `01-Java-EMF-FSM-vers-FSM/java/src/fsm`

### Java EMF

- [Reachability analysis](https://github.com/siamsell/fsm-methodes-separees/blob/main/01-Java-EMF-FSM-vers-FSM/java/src/fsm/AccessibiliteTransformation.java): `01-Java-EMF-FSM-vers-FSM/java/src/fsm/AccessibiliteTransformation.java`
- [Filtered FSM/XMI](https://github.com/siamsell/fsm-methodes-separees/blob/main/01-Java-EMF-FSM-vers-FSM/java/src/fsm/AccessibiliteTransformation.java): `01-Java-EMF-FSM-vers-FSM/java/src/fsm/AccessibiliteTransformation.java`
- [Accessibility JAR](https://github.com/siamsell/fsm-methodes-separees/blob/main/03-Integration-JAR-vers-Modelio/fsm-accessibilite.jar): `03-Integration-JAR-vers-Modelio/fsm-accessibilite.jar`

### Modelio macros

- [Reachability report macro](https://github.com/siamsell/fsm-methodes-separees/blob/main/02-Modelio-FSM-vers-UML/modelio/macros/04_Transformer_FSM_Accessible_Vers_UML.py): `02-Modelio-FSM-vers-UML/modelio/macros/04_Transformer_FSM_Accessible_Vers_UML.py`
- [Full FSM UML importer](https://github.com/siamsell/fsm-methodes-separees/blob/main/02-Modelio-FSM-vers-UML/modelio/macros/03_Importer_FSM_Complet_Vers_UML.py): `02-Modelio-FSM-vers-UML/modelio/macros/03_Importer_FSM_Complet_Vers_UML.py`
- [JAR to UML macro](https://github.com/siamsell/fsm-methodes-separees/blob/main/03-Integration-JAR-vers-Modelio/05_JAR_Transformer_et_Afficher_UML.py): `03-Integration-JAR-vers-Modelio/05_JAR_Transformer_et_Afficher_UML.py`
- **Modelio UML model**
- **UML state diagram**

### Modelio module

- [Module registration](https://github.com/siamsell/fsm-methodes-separees/blob/main/04-Module-Java-Modelio-FSM-vers-UML/src/org/fsmaccessibilite/module/FsmAccessibiliteModule.java): `04-Module-Java-Modelio-FSM-vers-UML/src/org/fsmaccessibilite/module/FsmAccessibiliteModule.java`
- [Package context command](https://github.com/siamsell/fsm-methodes-separees/blob/main/04-Module-Java-Modelio-FSM-vers-UML/src/org/fsmaccessibilite/module/TransformFsmCommand.java): `04-Module-Java-Modelio-FSM-vers-UML/src/org/fsmaccessibilite/module/TransformFsmCommand.java`
- [FSM to UML transform](https://github.com/siamsell/fsm-methodes-separees/blob/main/04-Module-Java-Modelio-FSM-vers-UML/src/org/fsmaccessibilite/module/FsmAccessibilityTransformation.java): `04-Module-Java-Modelio-FSM-vers-UML/src/org/fsmaccessibilite/module/FsmAccessibilityTransformation.java`

### Other components

- **Model author**

## Connections

- Model author → Reachability analysis: runs with FSM (evidence: `README.md`)
- Reachability analysis → Filtered FSM/XMI: writes filtered FSM (evidence: `README.md`)
- Reachability analysis → FSM model API: loads and copies (evidence: `01-Java-EMF-FSM-vers-FSM/java/src/fsm/AccessibiliteTransformation.java`)
- Model author → Reachability report macro: runs analysis (evidence: `README.md`)
- Reachability report macro → Modelio UML model: reports reachability (evidence: `README.md`)
- Model author → Full FSM UML importer: runs importer (evidence: `README.md`)
- Full FSM UML importer → Modelio UML model: creates UML (evidence: `README.md`)
- Model author → JAR to UML macro: runs combined route (evidence: `README.md`)
- JAR to UML macro → Accessibility JAR: launches JAR (evidence: `03-Integration-JAR-vers-Modelio/05_JAR_Transformer_et_Afficher_UML.py`)
- Accessibility JAR → Filtered FSM/XMI: writes filtered FSM (evidence: `README.md`)
- JAR to UML macro → Modelio UML model: creates UML (evidence: `03-Integration-JAR-vers-Modelio/05_JAR_Transformer_et_Afficher_UML.py`)
- JAR to UML macro → UML state diagram: opens diagram (evidence: `03-Integration-JAR-vers-Modelio/05_JAR_Transformer_et_Afficher_UML.py`)
- Model author → Package context command: selects FSM file (evidence: `04-Module-Java-Modelio-FSM-vers-UML/src/org/fsmaccessibilite/module/TransformFsmCommand.java`)
- Module registration → Package context command: registers command
- Package context command → FSM to UML transform: invokes transform (evidence: `04-Module-Java-Modelio-FSM-vers-UML/src/org/fsmaccessibilite/module/TransformFsmCommand.java`)
- FSM to UML transform → Modelio UML model: creates UML (evidence: `README.md`)
- FSM to UML transform → UML state diagram: creates diagram (evidence: `04-Module-Java-Modelio-FSM-vers-UML/src/org/fsmaccessibilite/module/FsmAccessibilityTransformation.java`)
- FSM Ecore schema → FSM model API: defines model (evidence: `README.md`)
