private void updatePlasmaProteinOntogenyFor(Individual individual, string parameterName, string proteinNAme) { var parameter = individual.Organism.Parameter(parameterName); if (parameter == null) { return; } updateOntogenyParameter(parameter, _ontogenyRepository.PlasmaProteinOntogenyFactor(proteinNAme, individual.OriginData)); }
private void updatePlasmaProteinOntogenyFor(Individual individual, string parameterName, string proteinNAme) { var parameter = individual.Organism.Parameter(parameterName); if (parameter == null) { return; } parameter.DefaultValue = _ontogenyRepository.PlasmaProteinOntogenyFactor(proteinNAme, individual.OriginData); parameter.Value = parameter.DefaultValue.Value; }