예제 #1
0
        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));
        }
예제 #2
0
 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);
 }