Beispiel #1
0
        public void estimate(List <LeafLayer> All_, EarPeduncle earPeduncle_, double[] cumulTT, double deltaTTShoot)
        {
            //update size of the output list
            for (int i = 0; i < All_.Count; i++)
            {
                //if a new leaf has appeared
                if (i >= LeafLayerInternodeLengthGrowthList.Count)
                {
                    LeafLayerInternodeLengthGrowthList.Add(0);
                }
            }


            foreach (var ll in All_)
            {
                if (ll.Index > 0)
                {
                    var previousll = All_[ll.Index - 1];
                    LeafLayerInternodeLengthGrowthList[ll.Index] = LeafLayerInternodeGrowth(cumulTT, deltaTTShoot, ll.GetInterNode().LengthPot, ll.GetInterNode().Length, ll.TTem, ll.TTgroLamina, ll.InterNodeTTgro);
                }
            }
            if (earPeduncle_ != null)
            {
                var previousll = All_[earPeduncle_.Index - 1];
                EarPeduncleInternodeLengthGrowth = EarPeduncleInternodeGrowth(cumulTT, deltaTTShoot, earPeduncle_.getInternodeLengthPot(), earPeduncle_.getInternodeLength(), earPeduncle_.InterNodeTTgro, previousll.TTem, previousll.TTgroLamina, previousll.InterNodeTTgro);
            }
        }
Beispiel #2
0
 ///<summary>Copy constructor</summary>
 ///<param name="universe">The universe of this ear peduncle.</param>
 ///<param name="toCopy">The ear peduncle to copy.</param>
 public EarPeduncle(Universe universe, EarPeduncle toCopy)
     : base(universe, toCopy)
 {
     InterNode_ = new InterNode(universe, toCopy.InterNode_);
 }