예제 #1
0
        internal VEGETATION(PFSSection Section)
        {
            _pfsHandle = Section;

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

                case "STATION_BASED":
                    _sTATION_BASED = new STATION_BASED(sub);
                    break;

                case "FULLY_DISTRIBUTED":
                    _fULLY_DISTRIBUTED = new FULLY_DISTRIBUTED1(sub);
                    break;

                case "TIME_SERIES_1":
                    _tIME_SERIES_1 = new TIME_SERIES_1(sub);
                    break;

                case "TIME_SERIES_2":
                    _tIME_SERIES_2 = new TIME_SERIES_2(sub);
                    break;

                case "TIME_SERIES_3":
                    _tIME_SERIES_3 = new TIME_SERIES_3(sub);
                    break;

                case "TIME_SERIES_4":
                    _tIME_SERIES_4 = new TIME_SERIES_4(sub);
                    break;

                case "TIME_SERIES_5":
                    _tIME_SERIES_5 = new TIME_SERIES_5(sub);
                    break;

                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }
        }
예제 #2
0
    internal VEGETATION(PFSSection Section)
    {
      _pfsHandle = Section;

      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
        case "GLOBAL":
          _gLOBAL = new GLOBAL1(sub);
          break;
        case "STATION_BASED":
          _sTATION_BASED = new STATION_BASED(sub);
          break;
        case "FULLY_DISTRIBUTED":
          _fULLY_DISTRIBUTED = new FULLY_DISTRIBUTED1(sub);
          break;
        case "TIME_SERIES_1":
          _tIME_SERIES_1 = new TIME_SERIES_1(sub);
          break;
        case "TIME_SERIES_2":
          _tIME_SERIES_2 = new TIME_SERIES_2(sub);
          break;
        case "TIME_SERIES_3":
          _tIME_SERIES_3 = new TIME_SERIES_3(sub);
          break;
        case "TIME_SERIES_4":
          _tIME_SERIES_4 = new TIME_SERIES_4(sub);
          break;
        case "TIME_SERIES_5":
          _tIME_SERIES_5 = new TIME_SERIES_5(sub);
          break;
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }
    }