Skip to content

[Feature]: Implement MetadataAccessExpressionExtension #153

@samatstariongroup

Description

@samatstariongroup

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am running the latest version of the SysML2.NET
  • I have searched open and closed issues to ensure it has not already been reported

Description

The MetadataAccessExpressionExtensions class in SysML2.NET/Extend/MetadataAccessExpressionExtensions.cs contains 4 extension method(s) that compute derived properties for the IMetadataAccessExpression interface. These methods currently throw NotSupportedException and need to be implemented.

Checklist

  • IElement ComputeReferencedElement(this IMetadataAccessExpression)
  • bool ComputeRedefinedModelLevelEvaluableOperation(this IMetadataAccessExpression, List<IFeature> visited)
  • List<IElement> ComputeRedefinedEvaluateOperation(this IMetadataAccessExpression, IElement target) — implemented per OCL; trailing metaclassFeature() call throws NotSupportedException at runtime until the metaclass-feature operation below is implemented.
  • IMetadataFeature ComputeMetaclassFeatureOperation(this IMetadataAccessExpression) — blocked: requires MOF metaclass reflection registry; track via a separate follow-up issue.

System Configuration

  • SysML2.NET version: 0.19.0
  • Source file: SysML2.NET/Extend/MetadataAccessExpressionExtensions.cs

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions