コード例 #1
0
        public void Add(
            SignificantAasElement kind,
            AdminShell.Submodel sm,
            AdminShell.ListOfReferable parents,
            AdminShell.SubmodelElement sme)
        {
            var r = new SignificantAasElemRecord()
            {
                Kind      = kind,
                Reference = sm?.GetReference()
                            + parents?.GetReference()
                            + sme?.GetReference(includeParents: false)
            };

            _records.Add(kind, r);
        }
コード例 #2
0
 public IEnumerable <SignificantAasElemRecord> Retrieve(
     AdminShell.AdministrationShellEnv env,
     SignificantAasElement kind)
 {
     if (env == null || true != _records.ContainsKey(kind))
     {
         yield break;
     }
     foreach (var r in _records[kind])
     {
         // look up
         var lo = env.FindReferableByReference(r.Reference);
         if (lo != null)
         {
             r.LiveObject = lo;
             yield return(r);
         }
     }
 }