-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathIRelationship.cs
More file actions
119 lines (107 loc) · 7.24 KB
/
IRelationship.cs
File metadata and controls
119 lines (107 loc) · 7.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// -------------------------------------------------------------------------------------------------
// <copyright file="IRelationship.cs" company="Starion Group S.A.">
//
// Copyright (C) 2022-2026 Starion Group S.A.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// </copyright>
// ------------------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------------------
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
// ------------------------------------------------------------------------------------------------
namespace SysML2.NET.Core.POCO.Root.Elements
{
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using SysML2.NET.Core.POCO.Root.Annotations;
using SysML2.NET.Core.POCO.Root.Namespaces;
using SysML2.NET.Decorators;
/// <summary>
/// A Relationship is an Element that relates other Element. Some of its relatedElements may be owned,
/// in which case those ownedRelatedElements will be deleted from a model if their owningRelationship
/// is. A Relationship may also be owned by another Element, in which case the ownedRelatedElements of
/// the Relationship are also considered to be transitively owned by the owningRelatedElement of the
/// Relationship. The relatedElements of a Relationship are divided into source
/// and target Elements. The Relationship is considered to be directed from the source to the target
/// Elements. An undirected Relationship may have either all source or all target Elements.
/// A "relationship Element" in the abstract syntax is generically any Element that
/// is an instance of either Relationship or a direct or indirect specialization of Relationship. Any
/// other kind of Element is a "non-relationship Element". It is a convention of that
/// non-relationship Elements are only related via reified relationship Elements. Any meta-associations
/// directly between non-relationship Elements must be derived from underlying reified Relationship.
/// </summary>
[Class(xmiId: "_18_5_3_12e503d9_1533160651700_869737_42192", isAbstract: true, isFinalSpecialization: false, isActive: false)]
[GeneratedCode("SysML2.NET", "latest")]
public partial interface IRelationship : IElement
{
/// <summary>
/// Whether this Relationship was generated by tooling to meet semantic rules, rather than being
/// directly created by a modeler.
/// </summary>
[Property(xmiId: "_19_0_4_12e503d9_1662070829631_521257_3623", aggregation: AggregationKind.None, lowerValue: 1, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: "false")]
bool IsImplied { get; set; }
/// <summary>
/// The relatedElements of this Relationship that are owned by the Relationship.
/// </summary>
[Property(xmiId: "_18_5_3_12e503d9_1533160674986_59873_43302", aggregation: AggregationKind.Composite, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)]
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")]
IReadOnlyList<IElement> OwnedRelatedElement { get; }
/// <summary>
/// The relatedElement of this Relationship that owns the Relationship, if any.
/// </summary>
[Property(xmiId: "_18_5_3_12e503d9_1543092026091_693018_16749", aggregation: AggregationKind.None, lowerValue: 0, upperValue: 1, isOrdered: false, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)]
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")]
IElement OwningRelatedElement { get; }
/// <summary>
/// The Elements that are related by this Relationship, derived as the union of the source and target
/// Elements of the Relationship.
/// </summary>
[Property(xmiId: "_18_5_3_12e503d9_1533160674961_132339_43177", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: true, isDerivedUnion: false, isUnique: false, defaultValue: null)]
List<IElement> relatedElement { get; }
/// <summary>
/// The relatedElements from which this Relationship is considered to be directed.
/// </summary>
[Property(xmiId: "_18_5_3_12e503d9_1533160674971_696758_43228", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)]
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")]
List<IElement> Source { get; set; }
/// <summary>
/// The relatedElements to which this Relationship is considered to be directed.
/// </summary>
[Property(xmiId: "_18_5_3_12e503d9_1533160674961_138197_43179", aggregation: AggregationKind.None, lowerValue: 0, upperValue: int.MaxValue, isOrdered: true, isReadOnly: false, isDerived: false, isDerivedUnion: false, isUnique: true, defaultValue: null)]
[SubsettedProperty(propertyName: "_18_5_3_12e503d9_1533160674961_132339_43177")]
List<IElement> Target { get; set; }
/// <summary>
/// Return whether this Relationship has either an owningRelatedElement or owningRelationship that is a
/// library element.
/// </summary>
/// <returns>
/// The expected <see cref="INamespace" />
/// </returns>
new INamespace LibraryNamespace() => this.ComputeRedefinedLibraryNamespaceOperation();
/// <summary>
/// If the owningRelationship of the Relationship is null but its owningRelatedElement is non-null,
/// construct the path using the position of the Relationship in the list of ownedRelationships of its
/// owningRelatedElement. Otherwise, return the path of the Relationship as specified for an Element in
/// general.
/// </summary>
/// <returns>
/// The expected <see cref="string" />
/// </returns>
new string Path() => this.ComputeRedefinedPathOperation();
}
}
// ------------------------------------------------------------------------------------------------
// --------THIS IS AN AUTOMATICALLY GENERATED FILE. ANY MANUAL CHANGES WILL BE OVERWRITTEN!--------
// ------------------------------------------------------------------------------------------------