Example #1
0
        /// <summary>Method to send infestation event to LifeCycle</summary>
        public void Infest()
        {
            Cohort Immigrants = new Cohort(InfestingPhase);

            Immigrants.Population       = NumberOfImmigrants.Value();
            Immigrants.ChronologicalAge = ChronoAgeOfImmigrants;
            Immigrants.PhysiologicalAge = PhysAgeOfImmigrants;
            InfestingOrganisum.Infest(Immigrants);
        }
Example #2
0
        /// <summary>Method to send infestation event to LifeCycle</summary>
        public void Infest()
        {
            SourceInfo InfestationInfo = new SourceInfo();

            InfestationInfo.LifeCycle        = InfestingOrganisumName;
            InfestationInfo.LifeCyclePhase   = InfestingPhaseName;
            InfestationInfo.Type             = SourceInfo.TypeOptions.Infestation;
            InfestationInfo.Population       = NumberOfImmigrants.Value();
            InfestationInfo.ChronologicalAge = ChronoAgeOfImmigrants;
            InfestationInfo.PhysiologicalAge = PhysAgeOfImmigrants;
            InfestingOrganisum.Infest(InfestationInfo);
        }