예제 #1
0
        private static CAEXObject Copy(this CAEXObject source, string name)
        {
            var copy = source.Copy() as CAEXObject;

            copy.Name = name;
            return(copy);
        }
예제 #2
0
 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;
        }
예제 #4
0
 public bool ContainsAmlObject(CAEXObject amlObject)
 {
     return(amlToAas.ContainsKey(amlObject));
 }
예제 #5
0
 public void AddMatch(AdminShell.Referable aasReferable, CAEXObject amlObject)
 {
     aasToAml.Add(aasReferable, amlObject);
     amlToAas.Add(amlObject, aasReferable);
 }