Skip to content

Restrict Behavior Annex property references to allowed unit types 🤖 #3191

Description

@lwrage

Summary

BA property references are not checked against the AS5506/3 Rev. A D.7 restriction that referenced properties be unitless or have a time unit.

The current implementation resolves and translates property references without an identified BA-specific unit-category check.

Reproduction

This issue comes from the source audit in ba/doc/conformance.md; no additional runtime reproduction was performed.

Expected behavior

Accept unitless and time-valued property references and report references to properties with other unit types at the property reference. Preserve the selected value and unit in the strict model.

Relevant code

  • ba/org.osate.xtext.aadl2.ba/src/org/osate/xtext/aadl2/ba/translation/DeclarativeToStrictTranslator.javatoPropertyReference.
  • ba/org.osate.ba/src/org/osate/ba/analyzers/AadlBaTypeChecker.java — property value type checking.
  • ba/org.osate.xtext.aadl2.ba/src/org/osate/xtext/aadl2/ba/BehaviorAnnex.xtext — property-reference forms.

Activity

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

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions