/// <summary> /// Copy constructor. /// </summary> /// <param name="cohort">Existing Cohort to copy.</param> public Cohort(Cohort cohort) { this.FunctionalGroupIndex = cohort.FunctionalGroupIndex; this.BirthTimeStep = cohort.BirthTimeStep; this.MaturityTimeStep = cohort.MaturityTimeStep; this.IDs = cohort.IDs.ToArray(); this.JuvenileMass = cohort.JuvenileMass; this.AdultMass = cohort.AdultMass; this.IndividualBodyMass = cohort.IndividualBodyMass; this.IndividualReproductivePotentialMass = cohort.IndividualReproductivePotentialMass; this.MaximumAchievedBodyMass = cohort.MaximumAchievedBodyMass; this.Abundance = cohort.Abundance; this.Merged = cohort.Merged; this.ProportionTimeActive = cohort.ProportionTimeActive; this.TrophicIndex = cohort.TrophicIndex; this.LogOptimalPreyBodySizeRatio = cohort.LogOptimalPreyBodySizeRatio; }