コード例 #1
0
    public void InitializeTest()
    {

      MainModel target2 = new MainModel(); 
      target2.LoadCatchments(@"D:\DK_information\TestData\FileStructure\id15_NSTmodel.shp");

      PointSource target = new PointSource(); 
      DateTime Start = new DateTime(); 
      DateTime End = new DateTime();
      target.ShapeFile = new SafeFile() { FileName = @"D:\DK_information\Overfladevand\Punktkilder\spredt_pkt.shp" };
      target.DBFFile = new SafeFile() { FileName = @"D:\DK_information\Overfladevand\Punktkilder\spredt_data_final.dbf" };

      target.Initialize(Start, End, target2.AllCatchments.Values);
    }
コード例 #2
0
 public static ISource GetSourceModel(string ModelID)
 {
   ISource NewModel = null;
   switch (ModelID)
   {
     case "Atmospheric":
       NewModel = new AtmosphericDeposition();
       break;
     case "GroundwaterSource":
       NewModel = new GroundWaterSource();
       break;
     case "PointSource":
       NewModel = new PointSource();
       break;
     case "OrganicN":
       NewModel = new OrganicN();
       break;
   }
   return NewModel;
 }
コード例 #3
0
        public static ISource GetSourceModel(string ModelID)
        {
            ISource NewModel = null;

            switch (ModelID)
            {
            case "Atmospheric":
                NewModel = new AtmosphericDeposition();
                break;

            case "GroundwaterSource":
                NewModel = new GroundWaterSource();
                break;

            case "PointSource":
                NewModel = new PointSource();
                break;

            case "OrganicN":
                NewModel = new OrganicN();
                break;
            }
            return(NewModel);
        }