public Individual DefaultIndividualFor(SpeciesPopulation speciesPopulation) { if (!_indvidualCacheProSpecies.Contains(speciesPopulation)) { var species = _speciesRepository.FindByName(speciesPopulation.Species); var individualDTO = _individualDefaultValueRetriever.DefaultSettingForSpecies(species); individualDTO.SpeciesPopulation = speciesPopulation; _individualDefaultValueRetriever.RetrieveDefaultValueFor(individualDTO); _indvidualCacheProSpecies[speciesPopulation] = _individualFactory.CreateStandardFor(_individualSettingsMapper.MapFrom(individualDTO)); } return(_indvidualCacheProSpecies[speciesPopulation]); }
private void retrieveDefaultValues() { _defaultValueRetriever.RetrieveDefaultValueFor(_individualSettingsDTO); _view.BindToParameters(_individualSettingsDTO); _view.BindToSubPopulation(_individualSettingsDTO.SubPopulation); }