Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ namespace SysML2.NET.Core.POCO.Root.Annotations
using System;
using System.Collections.Generic;

using SysML2.NET.Decorators;

using SysML2.NET.Core.POCO.Root.Elements;
using SysML2.NET.Core.POCO.Root.Namespaces;

Expand All @@ -35,13 +37,22 @@ internal static class AnnotatingElementExtensions
/// <summary>
/// Computes the derived property.
/// </summary>
/// <remarks>
/// OCL2.0:
/// <code>
/// annotatedElement =
/// if annotation-&gt;notEmpty() then annotation.annotatedElement
/// else Sequence{owningNamespace} endif
/// </code>
/// </remarks>
/// <param name="annotatingElementSubject">
/// The subject <see cref="IAnnotatingElement"/>
/// </param>
/// <returns>
/// the computed result
/// </returns>
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[DerivedProperty(name: nameof(IAnnotatingElement.annotatedElement))]
internal static List<IElement> ComputeAnnotatedElement(this IAnnotatingElement annotatingElementSubject)
{
throw new NotSupportedException("Create a GitHub issue when this method is required");
Expand All @@ -50,13 +61,23 @@ internal static List<IElement> ComputeAnnotatedElement(this IAnnotatingElement a
/// <summary>
/// Computes the derived property.
/// </summary>
/// <remarks>
/// OCL2.0:
/// <code>
/// annotation =
/// if owningAnnotatingRelationship = null then ownedAnnotatingRelationship
/// else owningAnnotatingRelationship-&gt;prepend(owningAnnotatingRelationship)
/// endif
/// </code>
/// </remarks>
/// <param name="annotatingElementSubject">
/// The subject <see cref="IAnnotatingElement"/>
/// </param>
/// <returns>
/// the computed result
/// </returns>
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[DerivedProperty(name: nameof(IAnnotatingElement.annotation))]
internal static List<IAnnotation> ComputeAnnotation(this IAnnotatingElement annotatingElementSubject)
{
throw new NotSupportedException("Create a GitHub issue when this method is required");
Expand All @@ -65,13 +86,22 @@ internal static List<IAnnotation> ComputeAnnotation(this IAnnotatingElement anno
/// <summary>
/// Computes the derived property.
/// </summary>
/// <remarks>
/// OCL2.0:
/// <code>
/// ownedAnnotatingRelationship = ownedRelationship-&gt;
/// selectByKind(Annotation)-&gt;
/// select(a | a.annotatedElement &lt;&gt; self)
/// </code>
/// </remarks>
/// <param name="annotatingElementSubject">
/// The subject <see cref="IAnnotatingElement"/>
/// </param>
/// <returns>
/// the computed result
/// </returns>
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[DerivedProperty(name: nameof(IAnnotatingElement.ownedAnnotatingRelationship))]
internal static List<IAnnotation> ComputeOwnedAnnotatingRelationship(this IAnnotatingElement annotatingElementSubject)
{
throw new NotSupportedException("Create a GitHub issue when this method is required");
Expand All @@ -87,6 +117,7 @@ internal static List<IAnnotation> ComputeOwnedAnnotatingRelationship(this IAnnot
/// the computed result
/// </returns>
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[DerivedProperty(name: nameof(IAnnotatingElement.owningAnnotatingRelationship))]
internal static IAnnotation ComputeOwningAnnotatingRelationship(this IAnnotatingElement annotatingElementSubject)
{
throw new NotSupportedException("Create a GitHub issue when this method is required");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ namespace SysML2.NET.Core.POCO.Kernel.Associations
using System;
using System.Collections.Generic;

using SysML2.NET.Decorators;

using SysML2.NET.Core.Core.Types;
using SysML2.NET.Core.Root.Namespaces;
using SysML2.NET.Core.POCO.Core.Classifiers;
using SysML2.NET.Core.POCO.Core.Features;
using SysML2.NET.Core.POCO.Core.Types;
Expand All @@ -46,6 +50,7 @@ internal static class AssociationExtensions
/// the computed result
/// </returns>
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[DerivedProperty(name: nameof(IAssociation.associationEnd))]
internal static List<IFeature> ComputeAssociationEnd(this IAssociation associationSubject)
{
throw new NotSupportedException("Create a GitHub issue when this method is required");
Expand All @@ -54,13 +59,20 @@ internal static List<IFeature> ComputeAssociationEnd(this IAssociation associati
/// <summary>
/// Computes the derived property.
/// </summary>
/// <remarks>
/// OCL2.0:
/// <code>
/// relatedType = associationEnd.type
/// </code>
/// </remarks>
/// <param name="associationSubject">
/// The subject <see cref="IAssociation"/>
/// </param>
/// <returns>
/// the computed result
/// </returns>
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[DerivedProperty(name: nameof(IAssociation.relatedType))]
internal static List<IType> ComputeRelatedType(this IAssociation associationSubject)
{
throw new NotSupportedException("Create a GitHub issue when this method is required");
Expand All @@ -69,13 +81,22 @@ internal static List<IType> ComputeRelatedType(this IAssociation associationSubj
/// <summary>
/// Computes the derived property.
/// </summary>
/// <remarks>
/// OCL2.0:
/// <code>
/// sourceType =
/// if relatedType-&gt;isEmpty() then null
/// else relatedType-&gt;first() endif
/// </code>
/// </remarks>
/// <param name="associationSubject">
/// The subject <see cref="IAssociation"/>
/// </param>
/// <returns>
/// the computed result
/// </returns>
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[DerivedProperty(name: nameof(IAssociation.sourceType))]
internal static IType ComputeSourceType(this IAssociation associationSubject)
{
throw new NotSupportedException("Create a GitHub issue when this method is required");
Expand All @@ -84,13 +105,26 @@ internal static IType ComputeSourceType(this IAssociation associationSubject)
/// <summary>
/// Computes the derived property.
/// </summary>
/// <remarks>
/// OCL2.0:
/// <code>
/// targetType =
/// if relatedType-&gt;size() &lt; 2 then OrderedSet{}
/// else
/// relatedType-&gt;
/// subSequence(2, relatedType-&gt;size())-&gt;
/// asOrderedSet()
/// endif
/// </code>
/// </remarks>
/// <param name="associationSubject">
/// The subject <see cref="IAssociation"/>
/// </param>
/// <returns>
/// the computed result
/// </returns>
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
[DerivedProperty(name: nameof(IAssociation.targetType))]
internal static List<IType> ComputeTargetType(this IAssociation associationSubject)
{
throw new NotSupportedException("Create a GitHub issue when this method is required");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ namespace SysML2.NET.Core.POCO.Root.Dependencies
using System;
using System.Collections.Generic;

using SysML2.NET.Decorators;

using SysML2.NET.Core.POCO.Root.Annotations;
using SysML2.NET.Core.POCO.Root.Elements;
using SysML2.NET.Core.POCO.Root.Namespaces;
Expand Down
Loading
Loading