示例#1
0
 public void InitialiseIrrigationModule()
 {
     if (IrrigationModule != null)
     {
         IrrigationModule.Initialise();
     }
 }
 public void SetStartOfDayParameters()
 {
     try
     {
         if (SoilModule != null)
         {
             SoilModule.SetStartOfDayParameters();
         }
         if (IrrigationModule != null)
         {
             IrrigationModule.SetStartOfDayParameters();
         }
         if (VegetationModules != null)
         {
             SortCurrentVegList();    //resort crop list to put the current crop first.
             //VegetationModules.SetStartOfDayParameters();
         }
         if (TillageModules != null)
         {
             // TillageModules.SetStartOfDayParameters();
         }
     }
     catch (Exception ex)
     {
         throw ErrorLogger.CreateException(ex);
     }
 }
 public void TryModelRingTank()
 {
     try
     {
         if (IrrigationModule != null)
         {
             IrrigationModule.ModelRingTank();
         }
     }
     catch (Exception ex)
     {
         throw ErrorLogger.CreateException(ex);
     }
 }
 /// <summary>
 ///
 /// </summary>
 public void TryModelIrrigation()
 {
     try
     {
         if (IrrigationModule != null)
         {
             IrrigationModule.Simulate();
             SoilModule.Irrigation = IrrigationModule.IrrigationApplied;
         }
     }
     catch (Exception ex)
     {
         throw ErrorLogger.CreateException(ex);
     }
 }