Example #1
0
        private void OnWFUpdatePasture(object sender, EventArgs e)
        {
            //TODO: Get pasture growth from pasture model or GRASP output

            //
            // temporary pasture input for testing
            //
            GrazeFoodStorePool newPasture = new GrazeFoodStorePool();

            newPasture.Age = 0;
            if (Clock.Today.Month >= 11 ^ Clock.Today.Month <= 3)
            {
                newPasture.Set(500 * Area);
                newPasture.DMD       = this.FeedType.DMD;
                newPasture.DryMatter = this.FeedType.DryMatter;
                newPasture.Nitrogen  = this.FeedType.Nitrogen;
                this.FeedType.Add(newPasture);
            }

            // store total pasture at start of month
            PastureAtStartOfMonth = this.FeedType.Amount;
        }
Example #2
0
        private void OnWFUpdatePasture(object sender, EventArgs e)
        {
            //TODO: Get pasture growth from pasture model or GRASP output

            //
            // temporary pasture input for testing
            //
            GrazeFoodStorePool newPasture = new GrazeFoodStorePool();
            newPasture.Age = 0;
            if (Clock.Today.Month >= 11 ^ Clock.Today.Month <= 3)
            {
                newPasture.Set(500 * Area);
                newPasture.DMD = this.FeedType.DMD;
                newPasture.DryMatter = this.FeedType.DryMatter;
                newPasture.Nitrogen = this.FeedType.Nitrogen;
                this.FeedType.Add(newPasture);
            }

            // store total pasture at start of month
            PastureAtStartOfMonth = this.FeedType.Amount;
        }
Example #3
0
 /// <summary>
 /// Add new pasture pool to the list of pools
 /// </summary>
 /// <param name="newpool"></param>
 public void Add(GrazeFoodStorePool newpool)
 {
     Pools.Insert(0, newpool);
 }
Example #4
0
 /// <summary>
 /// Add new pasture pool to the list of pools
 /// </summary>
 /// <param name="newpool"></param>
 public void Add(GrazeFoodStorePool newpool)
 {
     Pools.Insert(0, newpool);
 }