//---------------------------------------------------------------------
 public AppliedRepeatHarvest(RepeatHarvest  repeatHarvest,
     Percentage     percentageToHarvest,
     int            beginTime,
     int            endTime)
     : base(repeatHarvest,
            percentageToHarvest,
            beginTime,
            endTime)
 {
     this.repeatHarvest = repeatHarvest;
     // tjs 2009.01.09
     hasBeenHarvested = false;
     if (repeatHarvest is SingleRepeatHarvest) {
         isMultipleRepeatHarvest = false;
         setAside = SetAsideForSingleHarvest;
     }
     else {
         isMultipleRepeatHarvest = true;
         setAside = SetAsideForMultipleHarvests;
     }
     this.reservedStands = new Queue<ReservedStand>();
 }
コード例 #2
0
        //---------------------------------------------------------------------

        public AppliedRepeatHarvest(RepeatHarvest repeatHarvest,
                                    Percentage percentageToHarvest,
                                    int beginTime,
                                    int endTime)
            : base(repeatHarvest,
                   percentageToHarvest,
                   beginTime,
                   endTime)
        {
            this.repeatHarvest = repeatHarvest;
            // tjs 2009.01.09
            hasBeenHarvested = false;
            if (repeatHarvest is SingleRepeatHarvest)
            {
                isMultipleRepeatHarvest = false;
                setAside = SetAsideForSingleHarvest;
            }
            else
            {
                isMultipleRepeatHarvest = true;
                setAside = SetAsideForMultipleHarvests;
            }
            this.reservedStands = new Queue <ReservedStand>();
        }