public AggregatorsBuffer()
 {
     int aggregatorsCount = (int)Math.Truncate((float)_timeSliceLengthSeconds/_timeSlicingPeriodSeconds) + 1;
     //TODO: double check this. aggregatorsCount can't be zero
     if (aggregatorsCount == 0)
         throw new Exception("aggregatorsCount evaluates to zero");
     _aggregators = new Aggregator[aggregatorsCount];
     _roundSequense = new RoundSequenseGenerator(0, aggregatorsCount-1);
 }
예제 #2
0
        public AggregatorsBuffer()
        {
            int aggregatorsCount = (int)Math.Truncate((float)_timeSliceLengthSeconds / _timeSlicingPeriodSeconds) + 1;

            //TODO: double check this. aggregatorsCount can't be zero
            if (aggregatorsCount == 0)
            {
                throw new Exception("aggregatorsCount evaluates to zero");
            }
            _aggregators   = new Aggregator[aggregatorsCount];
            _roundSequense = new RoundSequenseGenerator(0, aggregatorsCount - 1);
        }