Constantin Ziesche | 857c7ab | 2020-02-25 11:24:51 +0100 | [diff] [blame] | 1 | /******************************************************************************* |
| 2 | * Copyright (c) 2020 Robert Bosch GmbH |
| 3 | * Author: Constantin Ziesche (constantin.ziesche@bosch.com) |
| 4 | * |
| 5 | * This program and the accompanying materials are made available under the |
| 6 | * terms of the Eclipse Public License 2.0 which is available at |
| 7 | * http://www.eclipse.org/legal/epl-2.0 |
| 8 | * |
| 9 | * SPDX-License-Identifier: EPL-2.0 |
| 10 | *******************************************************************************/ |
| 11 | using BaSyx.Models.Core.AssetAdministrationShell.References; |
| 12 | using BaSyx.Models.Core.AssetAdministrationShell.Identification; |
| 13 | using System.Runtime.Serialization; |
| 14 | |
Constantin Ziesche | 0821550 | 2020-09-21 19:08:32 +0200 | [diff] [blame^] | 15 | namespace BaSyx.Models.Core.AssetAdministrationShell.Generics |
Constantin Ziesche | 857c7ab | 2020-02-25 11:24:51 +0100 | [diff] [blame] | 16 | { |
Constantin Ziesche | 310d2aa | 2020-03-25 11:48:26 +0100 | [diff] [blame] | 17 | /// <summary> |
| 18 | /// A relationship element is used to define a relationship between two referable elements. |
| 19 | /// </summary> |
Constantin Ziesche | 857c7ab | 2020-02-25 11:24:51 +0100 | [diff] [blame] | 20 | public interface IRelationshipElement : ISubmodelElement |
| 21 | { |
Constantin Ziesche | 310d2aa | 2020-03-25 11:48:26 +0100 | [diff] [blame] | 22 | /// <summary> |
| 23 | /// First element in the relationship taking the role of the subject. |
| 24 | /// </summary> |
Constantin Ziesche | 857c7ab | 2020-02-25 11:24:51 +0100 | [diff] [blame] | 25 | [DataMember(EmitDefaultValue = false, IsRequired = false, Name = "first")] |
| 26 | IReference<IReferable> First { get; } |
Constantin Ziesche | 310d2aa | 2020-03-25 11:48:26 +0100 | [diff] [blame] | 27 | |
| 28 | /// <summary> |
| 29 | /// Second element in the relationship taking the role of the object. |
| 30 | /// </summary> |
Constantin Ziesche | 857c7ab | 2020-02-25 11:24:51 +0100 | [diff] [blame] | 31 | [DataMember(EmitDefaultValue = false, IsRequired = false, Name = "second")] |
| 32 | IReference<IReferable> Second { get; } |
| 33 | } |
| 34 | } |