Exemplo n.º 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);
                }
            }
        }
Exemplo n.º 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);
                }
            }
        }
Exemplo n.º 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);
                }
            }
        }
Exemplo n.º 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);
                }
            }
        }
Exemplo n.º 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);
            }
        }