Exemplo n.º 1
0
 ///<summary>Create a new grain compartement</summary>
 ///<param name="universe">Universe of the model.</param>
 public Grain(Universe universe) : base(universe)
 {
     Nstructure            = 0;
     Cstructure            = 0;
     NstructureEndCD       = 0;
     CstructureEndCD       = 0;
     Nstorage              = 0;
     Starch                = 0;
     NalbGlo               = 0;
     Namp                  = 0;
     Ngli                  = 0;
     Nglu                  = 0;
     calculateGrainNumber_ = new CalculateGrainNumber(universe);
 }
Exemplo n.º 2
0
 ///<summary>Create a new grain compartment by copy</summary>
 ///<param name="universe">Universe of the model</param>
 ///<param name="toCopy">Grain to copy</param>
 public Grain(Universe universe, Grain toCopy) : base(universe)
 {
     Nstructure            = toCopy.Nstructure;
     Cstructure            = toCopy.Cstructure;
     NstructureEndCD       = toCopy.NstructureEndCD;
     CstructureEndCD       = toCopy.CstructureEndCD;
     Nstorage              = toCopy.Nstorage;
     Starch                = toCopy.Starch;
     NalbGlo               = toCopy.NalbGlo;
     Namp                  = toCopy.Namp;
     Ngli                  = toCopy.Ngli;
     Nglu                  = toCopy.Nglu;
     CumulTT               = toCopy.CumulTT;
     calculateGrainNumber_ = (toCopy.calculateGrainNumber_ != null) ? new CalculateGrainNumber(universe, toCopy.calculateGrainNumber_) : null;
 }
Exemplo n.º 3
0
 public CalculateGrainNumber(Universe universe, CalculateGrainNumber toCopy)
     : base(universe)
 {
     GrainNumber = toCopy.GrainNumber;
 }