Пример #1
0
        internal Sartin(BrisPastPerformance pp)
        {
            _firstFraction = pp.SpeedDuringFirstFraction * Utilities.FEET_IN_A_YEARD;
            _secondFraction = pp.SpeedDuringSecondFraction * Utilities.FEET_IN_A_YEARD;
            _finalFraction = pp.SpeedDuringFinalFraction * Utilities.FEET_IN_A_YEARD;
            _earlyPace = pp.SpeedFromStartToSecondCall * Utilities.FEET_IN_A_YEARD;

            int distance = pp.DistanceInYards;

            if (distance <= 0)
            {
                _distanceType = DistanceType.Invalid;
            }
            else if (distance <= Utilities.YARDS_IN_A_FURLONG * 7)
            {
                _distanceType = DistanceType.Sprint;
            }
            else
            {
                _distanceType = DistanceType.Route;
            }
        }
Пример #2
0
        private List<BrisPastPerformance> MakePastPerformances()
        {
            _pp = new List<BrisPastPerformance>();
            _pp.Clear();
            for (int i = 0; i < FieldIndex.MAX_PAST_PERFORMANCES; ++i)
            {
                BrisPastPerformance p = new BrisPastPerformance(_dr, i, this);

                if (p.IsValid)
                {
                    _pp.Add(p);
                }
            }

            return _pp;
        }