示例#1
0
        internal MIKE_11_Network_editor(PFSSection Section)
        {
            _pfsHandle = Section;

            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                case "POINTS":
                    int np = sub.GetKeywordsNo("point");
                    Points = new SortedDictionary <int, Point>();
                    for (int j = 1; j <= np; j++)
                    {
                        Point p = new Point(sub.GetKeyword(j));
                        Points.Add(p.Number, p);
                    }
                    break;

                case "BRANCHES":
                    int nb = sub.GetSectionsNo("branch");
                    Branches = new List <Branch>();
                    for (int j = 1; j <= nb; j++)
                    {
                        Branches.Add(new Branch(sub.GetSection(j)));
                    }
                    break;

                case "COMPUTATIONAL_SETUP":
                    COMPUTATIONAL_SETUP = new COMPUTATIONAL_SETUP(sub);
                    break;

                case "MIKESHECOUPLING":
                    MikeSheCouplings = new List <MIKESHECOUPLING>();
                    for (int j = 1; j <= sub.GetKeywordsNo("MikeSheCoupling"); j++)
                    {
                        MIKESHECOUPLING p = new MIKESHECOUPLING(sub.GetKeyword(j));
                        MikeSheCouplings.Add(p);
                    }
                    break;

                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }
        }
示例#2
0
        internal Branch2(PFSSection Keyword)
        {
            _pfsHandle = Keyword;

            PFSSection _points = _pfsHandle.GetSection("points", 1);

            ComputationalPoints = new List <ComputationalPoint>();

            for (int i = 1; i <= _points.GetKeywordsNo(); i++)
            {
                ComputationalPoints.Add(new ComputationalPoint(_points.GetKeyword(i)));
            }
        }
示例#3
0
    /// <summary>
    /// Returns a deep clone of the section. Does not clone any parents;
    /// </summary>
    /// <param name="SectionToClone"></param>
    /// <returns></returns>
    public static PFSSection DeepClone(PFSSection SectionToClone)
    {
      PFSSection ps = new PFSSection(SectionToClone.Name);

      int NumberOfKeywords = SectionToClone.GetKeywordsNo();
      for (int i = 1; i <= NumberOfKeywords; i++)
        ps.AddKeyword(PFSMapper.DeepClone(SectionToClone.GetKeyword(i)));

      int NumberOfSections = SectionToClone.GetSectionsNo();
      for (int i = 1; i <= NumberOfSections; i++)
        ps.AddSection(PFSMapper.DeepClone(SectionToClone.GetSection(i)));

      return ps;
    }
示例#4
0
    internal POINTS(PFSSection Section)
    {
      _pfsHandle = Section;

      points = new List<point>();
      int knumber =Section.GetKeywordsNo("point");


      var sectionstring = Section.ToString().Split(new string[]{"\n"}, StringSplitOptions.RemoveEmptyEntries);

     

      for (int i = 1; i < sectionstring.Count()-1; i++)
      {
        var pdata = sectionstring[i].Split(new string[] { "=", "," }, StringSplitOptions.RemoveEmptyEntries);
       var pp =  new point("point");
       pp.Par1 = (int) double.Parse(pdata[1]);
       pp.Par2 = double.Parse(pdata[2]);
       pp.Par3 = double.Parse(pdata[3]);
       pp.Par4 = (int)double.Parse(pdata[4]);

       if (pdata.Count() > 5)
       {
         pp.Par5 = double.Parse(pdata[5]);
         pp.Par6 = (int)double.Parse(pdata[6]);
       }
       points.Add(pp);
      }


      //for (int i = 1; i <= knumber; i++)
      //{
      //  points.Add(new point(Section.GetKeyword("point", i)));
      //}
      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }

    }
示例#5
0
        internal POINTS(PFSSection Section)
        {
            _pfsHandle = Section;

            points = new List <point>();
            int knumber = Section.GetKeywordsNo("point");


            var sectionstring = Section.ToString().Split(new string[] { "\n" }, StringSplitOptions.RemoveEmptyEntries);



            for (int i = 1; i < sectionstring.Count() - 1; i++)
            {
                var pdata = sectionstring[i].Split(new string[] { "=", "," }, StringSplitOptions.RemoveEmptyEntries);
                var pp    = new point("point");
                pp.Par1 = (int)double.Parse(pdata[1]);
                pp.Par2 = double.Parse(pdata[2]);
                pp.Par3 = double.Parse(pdata[3]);
                pp.Par4 = (int)double.Parse(pdata[4]);

                if (pdata.Count() > 5)
                {
                    pp.Par5 = double.Parse(pdata[5]);
                    pp.Par6 = (int)double.Parse(pdata[6]);
                }
                points.Add(pp);
            }


            //for (int i = 1; i <= knumber; i++)
            //{
            //  points.Add(new point(Section.GetKeyword("point", i)));
            //}
            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }
        }
示例#6
0
    internal Nodes(PFSSection Section)
    {
      _pfsHandle = Section;

      Event_definitions = new List<Event_definition>();
      for (int i = 1; i <= Section.GetKeywordsNo("Event_definition"); i++)
        Event_definitions.Add(new Event_definition(Section.GetKeyword("Event_definition",i)));
      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }

    }
示例#7
0
    internal Metadata(PFSSection Section)
    {
      _pfsHandle = Section;

      Fields = new List<Field>();
      for (int i = 1; i <= Section.GetKeywordsNo("Field"); i++)
        Fields.Add(new Field(Section.GetKeyword("Field",i)));
      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }

    }
    internal MIKESHECOUPLING1(PFSSection Section)
    {
      _pfsHandle = Section;

      MikeSheCouplings = new List<MikeSheCoupling>();
      for (int i = 1; i <= Section.GetKeywordsNo("MikeSheCoupling"); i++)
        MikeSheCouplings.Add(new MikeSheCoupling(Section.GetKeyword("MikeSheCoupling",i)));
      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }

    }
    internal MOUSE_PASSIVE_CONTROL(PFSSection Section)
    {
      _pfsHandle = Section;

      Passive_Controls = new List<Passive_Control>();
      for (int i = 1; i <= Section.GetKeywordsNo("Passive_Control"); i++)
        Passive_Controls.Add(new Passive_Control(Section.GetKeyword("Passive_Control",i)));
      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }

    }
示例#10
0
    internal Cross_Section(PFSSection Section)
    {
      _pfsHandle = Section;

      Datas = new List<Data>();
      for (int i = 1; i <= Section.GetKeywordsNo("Data"); i++)
        Datas.Add(new Data(Section.GetKeyword("Data",i)));
      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }

    }
示例#11
0
    internal MSM_BITEM(PFSSection Section)
    {
      _pfsHandle = Section;

      BITEMs = new List<BITEM>();
      for (int i = 1; i <= Section.GetKeywordsNo("BITEM"); i++)
        BITEMs.Add(new BITEM(Section.GetKeyword("BITEM",i)));
      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }

      BITEMHeader = new BITEMHeader(_pfsHandle.GetKeyword("BITEMHeader", 1));
    }
示例#12
0
    internal MOUSE_NODES(PFSSection Section)
    {
      _pfsHandle = Section;

      Nodes = new List<Node>();
      for (int i = 1; i <= Section.GetKeywordsNo("Node"); i++)
        Nodes.Add(new Node(Section.GetKeyword("Node",i)));
      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }

      NodeHeader = new NodeHeader(_pfsHandle.GetKeyword("NodeHeader", 1));
    }
    internal MOUSE_HEADLOSS_PARAMETERS(PFSSection Section)
    {
      _pfsHandle = Section;

      HEADLOSSs = new List<HEADLOSS>();
      for (int i = 1; i <= Section.GetKeywordsNo("HEADLOSS"); i++)
        HEADLOSSs.Add(new HEADLOSS(Section.GetKeyword("HEADLOSS",i)));
      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }

      HEADLOSSHeader = new HEADLOSSHeader(_pfsHandle.GetKeyword("HEADLOSSHeader", 1));
    }
示例#14
0
        internal Nodes(PFSSection Section)
        {
            _pfsHandle = Section;

            Event_definitions = new List <Event_definition>();
            for (int i = 1; i <= Section.GetKeywordsNo("Event_definition"); i++)
            {
                Event_definitions.Add(new Event_definition(Section.GetKeyword("Event_definition", i)));
            }
            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }
        }
    internal MOUSE_RTC_SENSORS(PFSSection Section)
    {
      _pfsHandle = Section;

      Sensors = new List<Sensor>();
      for (int i = 1; i <= Section.GetKeywordsNo("Sensor"); i++)
        Sensors.Add(new Sensor(Section.GetKeyword("Sensor",i)));
      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }

      SensorHeader = new SensorHeader(_pfsHandle.GetKeyword("SensorHeader", 1));
    }
示例#16
0
        internal MIKESHECOUPLING1(PFSSection Section)
        {
            _pfsHandle = Section;

            MikeSheCouplings = new List <MikeSheCoupling>();
            for (int i = 1; i <= Section.GetKeywordsNo("MikeSheCoupling"); i++)
            {
                MikeSheCouplings.Add(new MikeSheCoupling(Section.GetKeyword("MikeSheCoupling", i)));
            }
            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }
        }
示例#17
0
    internal MOUSE_PUMPS(PFSSection Section)
    {
      _pfsHandle = Section;

      Pumps = new List<Pump>();
      for (int i = 1; i <= Section.GetKeywordsNo("Pump"); i++)
        Pumps.Add(new Pump(Section.GetKeyword("Pump",i)));
      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }

      PumpHeader = new PumpHeader(_pfsHandle.GetKeyword("PumpHeader", 1));
    }
示例#18
0
    internal MOUSE_WEIRS(PFSSection Section)
    {
      _pfsHandle = Section;

      Weirs = new List<Weir>();
      for (int i = 1; i <= Section.GetKeywordsNo("Weir"); i++)
        Weirs.Add(new Weir(Section.GetKeyword("Weir",i)));
      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }

      WeirHeader = new WeirHeader(_pfsHandle.GetKeyword("WeirHeader", 1));
    }
示例#19
0
        internal Metadata(PFSSection Section)
        {
            _pfsHandle = Section;

            Fields = new List <Field>();
            for (int i = 1; i <= Section.GetKeywordsNo("Field"); i++)
            {
                Fields.Add(new Field(Section.GetKeyword("Field", i)));
            }
            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }
        }
示例#20
0
    internal MSM_BBOUNDARY(PFSSection Section)
    {
      _pfsHandle = Section;

      BBOUNDARYs = new List<BBOUNDARY>();
      for (int i = 1; i <= Section.GetKeywordsNo("BBOUNDARY"); i++)
        BBOUNDARYs.Add(new BBOUNDARY(Section.GetKeyword("BBOUNDARY",i)));
      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }

      BBOUNDARYHeader = new BBOUNDARYHeader(_pfsHandle.GetKeyword("BBOUNDARYHeader", 1));
    }
示例#21
0
        internal Cross_Section1(PFSSection Section)
        {
            _pfsHandle = Section;

            ProcessDatas = new List <ProcessData>();
            for (int i = 1; i <= Section.GetKeywordsNo("ProcessData"); i++)
            {
                ProcessDatas.Add(new ProcessData(Section.GetKeyword("ProcessData", i)));
            }
            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }
        }
示例#22
0
        internal QH_Relations(PFSSection Section)
        {
            _pfsHandle = Section;

            Datas = new List <Data>();
            for (int i = 1; i <= Section.GetKeywordsNo("Data"); i++)
            {
                Datas.Add(new Data(Section.GetKeyword("Data", i)));
            }
            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }
        }
示例#23
0
        /// <summary>
        /// Returns a deep clone of the section. Does not clone any parents;
        /// </summary>
        /// <param name="SectionToClone"></param>
        /// <returns></returns>
        public static PFSSection DeepClone(PFSSection SectionToClone)
        {
            PFSSection ps = new PFSSection(SectionToClone.Name);

            int NumberOfKeywords = SectionToClone.GetKeywordsNo();

            for (int i = 1; i <= NumberOfKeywords; i++)
            {
                ps.AddKeyword(PFSMapper.DeepClone(SectionToClone.GetKeyword(i)));
            }

            int NumberOfSections = SectionToClone.GetSectionsNo();

            for (int i = 1; i <= NumberOfSections; i++)
            {
                ps.AddSection(PFSMapper.DeepClone(SectionToClone.GetSection(i)));
            }

            return(ps);
        }
示例#24
0
    internal Rows1(PFSSection Section)
    {
      _pfsHandle = Section;

      rs = new List<r>();
      for (int i = 1; i <= Section.GetKeywordsNo("r"); i++)
        rs.Add(new r(Section.GetKeyword("r",i)));
      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }

      rHeader = new rHeader(_pfsHandle.GetKeyword("rHeader", 1));
    }
    internal MOUSE_Catchments(PFSSection Section)
    {
      _pfsHandle = Section;

      Lines = new List<Line>();
      for (int i = 1; i <= Section.GetKeywordsNo("Line"); i++)
        Lines.Add(new Line(Section.GetKeyword("Line",i)));
      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }

      LineHeader = new LineHeader(_pfsHandle.GetKeyword("LineHeader", 1));
    }
    internal MOUSE_MATERIAL_PARAMETERS(PFSSection Section)
    {
      _pfsHandle = Section;

      MATERIALs = new List<MATERIAL>();
      for (int i = 1; i <= Section.GetKeywordsNo("MATERIAL"); i++)
        MATERIALs.Add(new MATERIAL(Section.GetKeyword("MATERIAL",i)));
      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }

      MATERIALHeader = new MATERIALHeader(_pfsHandle.GetKeyword("MATERIALHeader", 1));
    }
示例#27
0
        internal MOUSE_PASSIVE_CONTROL(PFSSection Section)
        {
            _pfsHandle = Section;

            Passive_Controls = new List <Passive_Control>();
            for (int i = 1; i <= Section.GetKeywordsNo("Passive_Control"); i++)
            {
                Passive_Controls.Add(new Passive_Control(Section.GetKeyword("Passive_Control", i)));
            }
            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }
        }
示例#28
0
        internal Model_A(PFSSection Section)
        {
            _pfsHandle = Section;

            Lines = new List <Line>();
            for (int i = 1; i <= Section.GetKeywordsNo("Line"); i++)
            {
                Lines.Add(new Line(Section.GetKeyword("Line", i)));
            }
            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }

            LineHeader = new LineHeader(_pfsHandle.GetKeyword("LineHeader", 1));
        }
示例#29
0
        internal MOUSE_NODES(PFSSection Section)
        {
            _pfsHandle = Section;

            Nodes = new List <Node>();
            for (int i = 1; i <= Section.GetKeywordsNo("Node"); i++)
            {
                Nodes.Add(new Node(Section.GetKeyword("Node", i)));
            }
            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }

            NodeHeader = new NodeHeader(_pfsHandle.GetKeyword("NodeHeader", 1));
        }
        internal MOUSE_MATERIAL_PARAMETERS(PFSSection Section)
        {
            _pfsHandle = Section;

            MATERIALs = new List <MATERIAL>();
            for (int i = 1; i <= Section.GetKeywordsNo("MATERIAL"); i++)
            {
                MATERIALs.Add(new MATERIAL(Section.GetKeyword("MATERIAL", i)));
            }
            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }

            MATERIALHeader = new MATERIALHeader(_pfsHandle.GetKeyword("MATERIALHeader", 1));
        }
示例#31
0
        internal MOUSE_PUMPS(PFSSection Section)
        {
            _pfsHandle = Section;

            Pumps = new List <Pump>();
            for (int i = 1; i <= Section.GetKeywordsNo("Pump"); i++)
            {
                Pumps.Add(new Pump(Section.GetKeyword("Pump", i)));
            }
            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }

            PumpHeader = new PumpHeader(_pfsHandle.GetKeyword("PumpHeader", 1));
        }
示例#32
0
        internal MOUSE_WEIRS(PFSSection Section)
        {
            _pfsHandle = Section;

            Weirs = new List <Weir>();
            for (int i = 1; i <= Section.GetKeywordsNo("Weir"); i++)
            {
                Weirs.Add(new Weir(Section.GetKeyword("Weir", i)));
            }
            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }

            WeirHeader = new WeirHeader(_pfsHandle.GetKeyword("WeirHeader", 1));
        }
示例#33
0
        internal MSM_BITEM(PFSSection Section)
        {
            _pfsHandle = Section;

            BITEMs = new List <BITEM>();
            for (int i = 1; i <= Section.GetKeywordsNo("BITEM"); i++)
            {
                BITEMs.Add(new BITEM(Section.GetKeyword("BITEM", i)));
            }
            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }

            BITEMHeader = new BITEMHeader(_pfsHandle.GetKeyword("BITEMHeader", 1));
        }
示例#34
0
        internal MSM_BBOUNDARY(PFSSection Section)
        {
            _pfsHandle = Section;

            BBOUNDARYs = new List <BBOUNDARY>();
            for (int i = 1; i <= Section.GetKeywordsNo("BBOUNDARY"); i++)
            {
                BBOUNDARYs.Add(new BBOUNDARY(Section.GetKeyword("BBOUNDARY", i)));
            }
            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }

            BBOUNDARYHeader = new BBOUNDARYHeader(_pfsHandle.GetKeyword("BBOUNDARYHeader", 1));
        }
示例#35
0
        internal MOUSE_RTC_SENSORS(PFSSection Section)
        {
            _pfsHandle = Section;

            Sensors = new List <Sensor>();
            for (int i = 1; i <= Section.GetKeywordsNo("Sensor"); i++)
            {
                Sensors.Add(new Sensor(Section.GetKeyword("Sensor", i)));
            }
            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }

            SensorHeader = new SensorHeader(_pfsHandle.GetKeyword("SensorHeader", 1));
        }
示例#36
0
        internal Rows1(PFSSection Section)
        {
            _pfsHandle = Section;

            rs = new List <r>();
            for (int i = 1; i <= Section.GetKeywordsNo("r"); i++)
            {
                rs.Add(new r(Section.GetKeyword("r", i)));
            }
            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }

            rHeader = new rHeader(_pfsHandle.GetKeyword("rHeader", 1));
        }
示例#37
0
        internal MOUSE_HEADLOSS_PARAMETERS(PFSSection Section)
        {
            _pfsHandle = Section;

            HEADLOSSs = new List <HEADLOSS>();
            for (int i = 1; i <= Section.GetKeywordsNo("HEADLOSS"); i++)
            {
                HEADLOSSs.Add(new HEADLOSS(Section.GetKeyword("HEADLOSS", i)));
            }
            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }

            HEADLOSSHeader = new HEADLOSSHeader(_pfsHandle.GetKeyword("HEADLOSSHeader", 1));
        }