Example #1
0
        private void ExpandAttackRates(EPDistributionBaseExpander expander)
        {
            if (this.m_AttackRates.Count > 0)
            {
                IEnumerable <EPDistributionBase> NewItems = expander.Expand(this.m_AttackRates);

                this.m_AttackRates.Clear();

                foreach (AttackRate t in NewItems)
                {
                    this.m_AttackRates.Add(t);
                }
            }
        }
Example #2
0
        private void ExpandGrowthRateMultipliers(EPDistributionBaseExpander expander)
        {
            if (this.m_GrowthRateMultipliers.Count > 0)
            {
                IEnumerable <EPDistributionBase> NewItems = expander.Expand(this.m_GrowthRateMultipliers);

                this.m_GrowthRateMultipliers.Clear();

                foreach (GrowthRateMultiplier t in NewItems)
                {
                    this.m_GrowthRateMultipliers.Add(t);
                }
            }
        }
Example #3
0
        private void ExpandSymptomPeriods(EPDistributionBaseExpander expander)
        {
            if (this.m_SymptomPeriods.Count > 0)
            {
                IEnumerable <EPDistributionBase> NewItems = expander.Expand(this.m_SymptomPeriods);

                this.m_SymptomPeriods.Clear();

                foreach (SymptomPeriod t in NewItems)
                {
                    this.m_SymptomPeriods.Add(t);
                }
            }
        }
Example #4
0
        private void ExpandActualDeaths(EPDistributionBaseExpander expander)
        {
            if (this.m_ActualDeaths.Count > 0)
            {
                IEnumerable <EPDistributionBase> NewItems = expander.Expand(this.m_ActualDeaths);

                this.m_ActualDeaths.Clear();

                foreach (ActualDeath t in NewItems)
                {
                    this.m_ActualDeaths.Add(t);
                }
            }
        }
Example #5
0
        private void ExpandForUserDistributions()
        {
            if (this.m_DistributionProvider.Values.Count > 0)
            {
                EPDistributionBaseExpander Expander =
                    new EPDistributionBaseExpander(this.m_DistributionProvider);

                this.ExpandActualDeaths(Expander);
                this.ExpandGrowthRates(Expander);
                this.ExpandGrowthRateMultipliers(Expander);
                this.ExpandFatalityRates(Expander);
                this.ExpandIncubationPeriods(Expander);
                this.ExpandSymptomPeriods(Expander);
                this.ExpandAttackRates(Expander);
            }
        }