private ParameterValue ontogenyFactorFor(Ontogeny ontogeny, string moleculeName, OriginData originData, string parameterName, string ontogenyLocation) { var path = new ObjectPath { moleculeName, parameterName }; double factor = _ontogenyRepository.OntogenyFactorFor(ontogeny, ontogenyLocation, originData); return(new ParameterValue(path, factor, CoreConstants.DEFAULT_PERCENTILE)); }
public void UpdateMoleculeOntogeny(IndividualMolecule molecule, Ontogeny ontogeny, Individual individual) { molecule.Ontogeny = ontogeny; molecule.OntogenyFactorGI = _ontogenyRepository.OntogenyFactorFor(ontogeny, CoreConstants.Groups.ONTOGENY_DUODENUM, individual.OriginData); molecule.OntogenyFactor = _ontogenyRepository.OntogenyFactorFor(ontogeny, CoreConstants.Groups.ONTOGENY_LIVER, individual.OriginData); }