Example #1
0
 public void Add(NetlistContainer netlistContainer)
 {
     if (Contains(netlistContainer.Name))
     {
         throw new ArgumentException(this + ": A netlist container with the name " + netlistContainer.Name + " has already been added");
     }
     m_netlistContainer.Add(netlistContainer);
 }
Example #2
0
        public NetlistContainer Get(string netlistContainerName)
        {
            NetlistContainer netlistContainer = m_netlistContainer.FirstOrDefault(m => m.Name.Equals(netlistContainerName));

            if (netlistContainer == null)
            {
                throw new ArgumentException("A netlist container with the name " + netlistContainerName + " has not been added");
            }

            return(netlistContainer);
        }
Example #3
0
        public bool Contains(string netlistContainerName)
        {
            NetlistContainer probe = m_netlistContainer.FirstOrDefault(macro => macro.Name.Equals(netlistContainerName));

            return(probe != null);
        }