/* public string TagPhenoWarnOut * { * get {return phenology_.TagPhenoWarnOut; } * * }*/ #endregion #region Constructors ///<summary>Initial constructor</summary> ///<param name="universe">The universe of this crop</param> public Crop(Universe universe) : base(universe) { root = new Root(universe); shoot = new Shoot(universe); phenology_ = new PhenologyBiomaWrapper(universe); grainEarDW_ = new GrainEarDW(universe); nniEndCD = NNI = -1; switchAnthesis = false; switchEndCD = false; PostAnthesisNUptake = 0; VirtualNReq = 0; AccumPAR = 0; }
///<summary>Copy constructor</summary> ///<param name="universe">The universe of this crop</param> ///<param name="toCopy">The crop to copy</param> ///<param name="copyAll">false copy only the outputs</param> public Crop(Universe universe, Crop toCopy, bool copyAll) : base(universe) { nniEndCD = toCopy.nniEndCD; NNI = toCopy.NNI; PostAnthesisNUptake = toCopy.PostAnthesisNUptake; root = (toCopy.root != null) ? new Root(universe, toCopy.root, copyAll) : null; shoot = (toCopy.shoot != null) ? new Shoot(universe, toCopy.shoot, true) : null; grainEarDW_ = (toCopy.grainEarDW_ != null) ? new GrainEarDW(universe, toCopy.grainEarDW_) : null; switchAnthesis = toCopy.switchAnthesis; switchEndCD = toCopy.switchEndCD; /// Behnam (2016.06.30) DailyCO2 = toCopy.DailyCO2; CO2Change = toCopy.CO2Change; ///<Behnam (2015.10.27)> OutputTotalDM_WNT = toCopy.OutputTotalDM_WNT; OutputTotalDM_W = toCopy.OutputTotalDM_W; OutputTotalDM_N = toCopy.OutputTotalDM_N; OutputTotalDM_T = toCopy.OutputTotalDM_T; OutputTotalDM_WN = toCopy.OutputTotalDM_WN; OutputTotalDM_WT = toCopy.OutputTotalDM_WT; OutputTotalDM_NT = toCopy.OutputTotalDM_NT; OutputTotalDMOld = toCopy.OutputTotalDMOld; phenology_ = (toCopy.phenology_ != null) ? new PhenologyBiomaWrapper(universe, toCopy.phenology_, copyAll) : null; AccumPAR = toCopy.AccumPAR; ///<Comment>To store amount of N required to satisfy N balance under unlimited conditions</Comment> VirtualNReq = toCopy.VirtualNReq; if (copyAll) { isUnlimitedWater = toCopy.isUnlimitedWater; isUnlimitedNitrogen = toCopy.isUnlimitedNitrogen; isUnlimitedTemperature = toCopy.isUnlimitedTemperature; } }
public GrainEarDW(Universe universe, GrainEarDW toCopy) : base(universe) { EarDW = toCopy.EarDW; }