private static CAEXObject Copy(this CAEXObject source, string name) { var copy = source.Copy() as CAEXObject; copy.Name = name; return(copy); }
public AdminShell.Referable GetAasObject(CAEXObject amlObject) { if (amlToAas.ContainsKey(amlObject)) { return(amlToAas[amlObject]); } return(null); }
/// <summary> /// Initializes the Element with the specified caex - Object and Hierarchy-Level /// </summary> /// <param name="caex">The caex.</param> /// <param name="hierarchyLevel">The level.</param> public void Init(CAEXObject caex, int hierarchyLevel) { CAEX = caex; Level = hierarchyLevel; string tabs = new String('\t', hierarchyLevel); Name = tabs + caex.Name; }
public bool ContainsAmlObject(CAEXObject amlObject) { return(amlToAas.ContainsKey(amlObject)); }
public void AddMatch(AdminShell.Referable aasReferable, CAEXObject amlObject) { aasToAml.Add(aasReferable, amlObject); amlToAas.Add(amlObject, aasReferable); }