/// <summary> /// /// </summary> /// <returns></returns> public double GetTotalCover() { if (CurrentCrop != null) { if (CurrentCrop.GetType() == typeof(LAIVegObjectController)) { return(Math.Min(1.0, CurrentCrop.crop_cover + sim.total_residue_cover * (1 - CurrentCrop.crop_cover))); } else { return(CurrentCrop.GetTotalCover()); } } return(0); }
/// <summary> /// /// </summary> /// <returns></returns> public double GetTotalCover() { if (CurrentCrop != null) { if (CurrentCrop.GetType() == typeof(LAIVegObjectController)) { return(Math.Min(1.0, CurrentCrop.CropCover + Sim.SoilController.TotalResidueCover * (1 - CurrentCrop.CropCover))); } else { return(CurrentCrop.GetTotalCover()); } } return(0); }
internal double GetTotalCover() { try { if (CurrentCrop != null) { if (CurrentCrop.GetType() == typeof(HowLeakyEngineModule_LAIVeg)) { return(Math.Min(1.0, CurrentCrop.CropCover + SoilModule.TotalResidueCover * (1 - CurrentCrop.CropCover))); } else { return(CurrentCrop.GetTotalCover()); } } } catch (Exception ex) { throw ErrorLogger.CreateException(ex); } return(0); }