public void AddCovariate <T>(string attributeName, T attributeValue) { if (string.Equals(attributeName, CoreConstants.Covariates.GENDER)) { Gender = attributeValue.DowncastTo <Gender>(); } else if (string.Equals(attributeName, CoreConstants.Covariates.RACE)) { Race = attributeValue.DowncastTo <SpeciesPopulation>(); } else { Attributes[attributeName] = attributeValue.ToString(); } }
public virtual void AddPopulation(SpeciesPopulation speciesPopulation) => _allPopulations.Add(speciesPopulation);