Skip to content

Conversation

@ipa-nhg
Copy link
Member

@ipa-nhg ipa-nhg commented Feb 14, 2022

@ipa-rwu FYI!

This PR adds to the ComponentStacks the attribute SafetyLevel, the changes proposed here allow to set the following 3 levels:

  • Non-critical
  • Critical
  • Alarm

The Xtext grammar is updated, the new attribute is optional and the auto-complete function is working:

image

If needed, further cases can be easily added by modifying the list of accepted Strings on the Xext file, i.e., here: https://github.com/ipa-nhg/ros-model/blob/SafetyLevelSubSystems/plugins/de.fraunhofer.ipa.rossystem.xtext/src/de/fraunhofer/ipa/rossystem/RosSystem.xtext#L58

Once the modification is done, the Xtext backend must be re-generated. To make ti, right-click on the editor part and select Run As → Generate Xtext Artifacts:

image

Once completed (it should take ~30 seconds), you can just run the RosTooling.

Metamodel changes are not required, for ecore I described the attribute as a String (https://github.com/ipa-nhg/ros-model/blob/SafetyLevelSubSystems/plugins/de.fraunhofer.ipa.rossystem/model/rossystem.ecore#L28).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants