Example #1
0
File: Key.cs Project: i-Asset/basyx
 public Key(KeyElements type, KeyType idType, string value, bool local)
 {
     Type   = type;
     IdType = idType;
     Value  = value;
     Local  = local;
 }
 public SubmodelElementCollectionAttribute(string idShort, string semanticId, KeyElements semanticKeyElement, KeyType semanticKeyType, bool semanticIdLocal)
 {
     SubmodelElementCollection = new SubmodelElementCollection()
     {
         IdShort    = idShort,
         SemanticId = new Reference(new Key(semanticKeyElement, semanticKeyType, semanticId, semanticIdLocal))
     };
 }
Example #3
0
 public GlobalKey(KeyElements type, KeyType idType, string value) : base(type, idType, value, false)
 {
 }
Example #4
0
 public PropertyAttribute(string idShort, DataObjectTypes propertyType, string semanticId, KeyElements semanticKeyElement, KeyType semanticKeyType, bool semanticIdLocal)
 {
     Property = new Property(new DataType(DataObjectType.Parse(propertyType)))
     {
         IdShort    = idShort,
         SemanticId = new Reference(new Key(semanticKeyElement, semanticKeyType, semanticId, semanticIdLocal))
     };
 }
Example #5
0
 public ModelKey(KeyElements type, KeyType idType, string value) : base(type, idType, value, true)
 {
 }
Example #6
0
 /// <summary>
 /// Creates a new IRDI-Reference with a definied referred KeyElements-Type
 /// </summary>
 /// <param name="referredtype">KeyElements-Type</param>
 /// <param name="irdi">IRDI</param>
 public IRDI_Reference(KeyElements referredtype, string irdi) : base(new GlobalKey(referredtype, KeyType.IRDI, irdi))
 {
 }