Exemplo n.º 1
0
 public CompSet(string _name, Rule.Rule rule, string LoadDescriptor, List <Comp> comps = null)
 {
     name  = _name;
     csFPs = rule.Parser(FP.type.CompSet, LoadDescriptor);
     if (comps != null)
     {
         Components = comps;
     }
 }
Exemplo n.º 2
0
 ////////////////public CompSet(string _name, List<Component.Component> _comps, Supl _supl, Docs _doc, List<FP> _csFPs)
 ////////////////{
 ////////////////    this.name       = _name;
 ////////////////    this.Components = _comps;
 ////////////////    this.Supplier   = _supl;
 ////////////////    this.doc        = _doc;
 ////////////////    this.csFPs      = _csFPs;
 ////////////////}
 public CompSet(string _name, Supl _supl, Rule.Rule _rule)
 {
     name     = _name;
     Supplier = _supl;
     doc      = getCSdoc(Supplier, _name);
     csFPs    = _rule.Parser(FP.type.CompSet, doc.LoadDescription);
     for (int i = doc.i0; i < doc.il; i++)
     {
         Comp comp = new Comp(doc, i, csFPs);
         Components.Add(comp);
     }
 }