Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add attribute SafetyLevel to the component Stacks #179

Open
wants to merge 17 commits into
base: 2.0.0_stable
Choose a base branch
from

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