///<summary>Copy constructor</summary> ///<param name="universe">The universe of this leaf Layer.</param> ///<param name="toCopy">The leaf Layer to copy</param> public LeafLayer(Universe universe, LeafLayer toCopy) : base(universe, toCopy) { LayerPhyllochron = toCopy.LayerPhyllochron; TTmat = toCopy.TTmat; TTsen = toCopy.TTsen; DeltaAI = toCopy.DeltaAI; IsPrematurelyDying = toCopy.IsPrematurelyDying; MaxAI = toCopy.MaxAI; State = toCopy.State; IsSmallPhytomer = toCopy.IsSmallPhytomer; exposedSheath = (toCopy.exposedSheath != null) ? new ExposedSheath(universe, toCopy.exposedSheath) : null; leafLamina = (toCopy.leafLamina != null) ? new LeafLaminae(universe, toCopy.leafLamina) : null; interNode = (toCopy.interNode != null) ? new InterNode(universe, toCopy.interNode) : null; if (SwitchMaize) { maizeLeaf = (toCopy.maizeLeaf != null) ? new MaizeLeaf(universe, toCopy.maizeLeaf) : null; } }
public static int CompareLeafLayerByIndex(LeafLayer a, LeafLayer b) { return(a.Index.CompareTo(b.Index)); }