Library for reading system control structure for system-theoretic process analysis (STPA).
Currently supported artifacts:
- SysML XMI/UML (based on prototype at https://github.com/kbss-cvut/xmi-parser-mwe)
Tested on XMI artifacts produced by Modelio and Enterprise Architect.
- Java 21
Use the following dependency:
<dependency>
<groupId>com.akaene.stpa</groupId>
<artifactId>control-structure-parser</artifactId>
</dependency>
Do not forget to add the AKAENE Maven repository:
<repositories>
<repository>
<id>akaene</id>
<name>AKAENE Maven repository</name>
<url>https://dev.akaene.com/m2repo</url>
</repository>
</repositories>
ControlStructureParsers
is able to find the correct parser and use it to parse the specified model file.
import com.akaene.stpa.scs.parser.ControlStructureParsers;
final File input = // get input file
final Model model = ControlStructureParsers.parse(input);
But it is also possible to use the parser implementations directly.
MIT