Skip to content

[Feature]: Implement FeatureExtensions #131

@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 FeatureExtensions class in SysML2.NET/Extend/FeatureExtensions.cs contains 16 extension method(s) that compute derived properties for the IFeature interface. These methods currently throw NotSupportedException and need to be implemented.

Checklist

  • List<IFeature> ComputeChainingFeature(this IFeature)
  • IFeature ComputeCrossFeature(this IFeature)
  • IType ComputeEndOwningType(this IFeature)
  • IFeature ComputeFeatureTarget(this IFeature)
  • List<IType> ComputeFeaturingType(this IFeature)
  • ICrossSubsetting ComputeOwnedCrossSubsetting(this IFeature)
  • List<IFeatureChaining> ComputeOwnedFeatureChaining(this IFeature)
  • List<IFeatureInverting> ComputeOwnedFeatureInverting(this IFeature)
  • List<IRedefinition> ComputeOwnedRedefinition(this IFeature)
  • IReferenceSubsetting ComputeOwnedReferenceSubsetting(this IFeature)
  • List<ISubsetting> ComputeOwnedSubsetting(this IFeature)
  • List<ITypeFeaturing> ComputeOwnedTypeFeaturing(this IFeature)
  • List<IFeatureTyping> ComputeOwnedTyping(this IFeature)
  • IFeatureMembership ComputeOwningFeatureMembership(this IFeature)
  • IType ComputeOwningType(this IFeature)
  • List<IType> ComputeType(this IFeature)
  • FeatureDirectionKind? ComputeDirectionForOperation(this IFeature, IType type)
  • string ComputeRedefinedEffectiveShortNameOperation(this IFeature)
  • string ComputeRedefinedEffectiveNameOperation(this IFeature)
  • IFeature ComputeNamingFeatureOperation(this IFeature)
  • List<IType> ComputeRedefinedSupertypesOperation(this IFeature, bool excludeImplied)
  • bool ComputeRedefinesOperation(this IFeature, IFeature redefinedFeature)
  • bool ComputeRedefinesFromLibraryOperation(this IFeature, string libraryFeatureName)
  • bool ComputeSubsetsChainOperation(this IFeature, IFeature first, IFeature second)
  • bool ComputeRedefinedIsCompatibleWithOperation(this IFeature, IType otherType)
  • List<IFeature> ComputeTypingFeaturesOperation(this IFeature)
  • List<IType> ComputeAsCartesianProductOperation(this IFeature)
  • bool ComputeIsCartesianProductOperation(this IFeature)
  • bool ComputeIsOwnedCrossFeatureOperation(this IFeature)
  • IFeature ComputeOwnedCrossFeatureOperation(this IFeature)
  • List<IFeature> ComputeAllRedefinedFeaturesOperation(this IFeature)
  • bool ComputeIsFeaturedWithinOperation(this IFeature, IType type)
  • bool ComputeCanAccessOperation(this IFeature, IFeature feature)
  • bool ComputeIsFeaturingTypeOperation(this IFeature, IType type)

System Configuration

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions