Exemple #1
0
        internal CommandAreas(PFSSection Section)
        {
            _pfsHandle = Section;

            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                case "DFS_2D_DATA_FILE":
                    _dFS_2D_DATA_FILE = new DFS_2D_DATA_FILE(sub);
                    break;

                case "SHAPE_FILE":
                    _sHAPE_FILE = new SHAPE_FILE(sub);
                    break;

                default:
                    if (sub.Name.Substring(0, 6).Equals("Comman"))
                    {
                        _commandAreas.Add(new CommandArea(sub));
                        break;
                    }
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }
        }
Exemple #2
0
        internal Demands(PFSSection Section)
        {
            _pfsHandle = Section;

            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                case "DFS_2D_DATA_FILE":
                    _dFS_2D_DATA_FILE = new DFS_2D_DATA_FILE(sub);
                    break;

                case "SHAPE_FILE":
                    _sHAPE_FILE = new SHAPE_FILE(sub);
                    break;

                case "Demand":
                    _demand = new Demand(sub);
                    break;

                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }
        }
    internal InternalBoundary(PFSSection Section)
    {
      _pfsHandle = Section;

      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
        case "DFS_2D_DATA_FILE":
          _dFS_2D_DATA_FILE = new DFS_2D_DATA_FILE(sub);
          break;
        case "SHAPE_FILE":
          _sHAPE_FILE = new SHAPE_FILE(sub);
          break;
          default:
            if (sub.Name.Substring(0,6).Equals("Intern"))
            {
              _internalBoundaryProps.Add(new InternalBoundaryProp(sub));
              break;
            }
            _unMappedSections.Add(sub.Name);
          break;
        }
      }
    }
        internal TwoLayerUZSoilProperties(PFSSection Section)
        {
            _pfsHandle = Section;

            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                case "DFS_2D_DATA_FILE":
                    _dFS_2D_DATA_FILE = new DFS_2D_DATA_FILE(sub);
                    break;

                case "SHAPE_FILE":
                    _sHAPE_FILE = new SHAPE_FILE(sub);
                    break;

                default:
                    if (sub.Name.Substring(0, 6).Equals("UZSoil"))
                    {
                        _uZSoilProps.Add(new UZSoilProp(sub));
                        break;
                    }
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }
        }
        internal UZSoilProfiles(PFSSection Section)
        {
            _pfsHandle = Section;

            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                case "DFS_2D_DATA_FILE":
                    _dFS_2D_DATA_FILE = new DFS_2D_DATA_FILE(sub);
                    break;

                case "SHAPE_FILE":
                    _sHAPE_FILE = new SHAPE_FILE(sub);
                    break;

                case "UZSoilProfileProp":
                    _uZSoilProfileProp = new UZSoilProfileProp(sub);
                    break;

                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }
        }
    internal TwoLayerUZSoilProperties(PFSSection Section)
    {
      _pfsHandle = Section;

      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
        case "DFS_2D_DATA_FILE":
          _dFS_2D_DATA_FILE = new DFS_2D_DATA_FILE(sub);
          break;
        case "SHAPE_FILE":
          _sHAPE_FILE = new SHAPE_FILE(sub);
          break;
          default:
            if (sub.Name.Substring(0,6).Equals("UZSoil"))
            {
              _uZSoilProps.Add(new UZSoilProp(sub));
              break;
            }
            _unMappedSections.Add(sub.Name);
          break;
        }
      }
    }
    internal InternalBoundary1(PFSSection Section)
    {
      _pfsHandle = Section;

      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
        case "DFS_2D_DATA_FILE":
          _dFS_2D_DATA_FILE = new DFS_2D_DATA_FILE(sub);
          break;
        case "SHAPE_FILE":
          _sHAPE_FILE = new SHAPE_FILE(sub);
          break;
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }
    }
    internal UZSoilProfiles(PFSSection Section)
    {
      _pfsHandle = Section;

      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
        case "DFS_2D_DATA_FILE":
          _dFS_2D_DATA_FILE = new DFS_2D_DATA_FILE(sub);
          break;
        case "SHAPE_FILE":
          _sHAPE_FILE = new SHAPE_FILE(sub);
          break;
        case "UZSoilProfileProp":
          _uZSoilProfileProp = new UZSoilProfileProp(sub);
          break;
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }
    }