Example #1
0
        private void finalizeIndividual(Individual individual)
        {
            var firstNeighborhood = individual?.Neighborhoods.GetChildren <INeighborhood>().FirstOrDefault();

            if (firstNeighborhood == null || firstNeighborhood.FirstNeighbor != null)
            {
                return;
            }

            _neighborhoodFinalizer.SetNeighborsIn(individual);
        }
Example #2
0
        private void addNeighborhoods(ISpatialStructure spatialStructure, Organism organism, Individual individual, ModelProperties modelProperties, IFormulaCache formulaCache)
        {
            var neighborhoodList = _modelNeighborhoodQuery.NeighborhoodsFor(individual.Neighborhoods, modelProperties).ToList();

            foreach (var neighborhood in neighborhoodList)
            {
                addNeighborhood(neighborhood, spatialStructure, individual.OriginData, modelProperties, formulaCache);
            }

            _neighborhoodFinalizer.SetNeighborsIn(organism, neighborhoodList);
        }
Example #3
0
        private void finalizeIndividual(Individual individual)
        {
            if (individual == null)
            {
                return;
            }

            _neighborhoodFinalizer.SetNeighborsIn(individual);
            _individualPathWithRootExpander.AddRootToPathIn(individual);
            _keywordReplacerTask.ReplaceIn(individual);
            _referencesResolver.ResolveReferencesIn(individual);
        }
Example #4
0
        private void convertIndividual(Individual individual)
        {
            //possible for imported simulation where individual is not defined
            if (individual == null)
            {
                return;
            }

            _renalAgingCalculationMethodUpdater.AddRenalAgingCalculationMethodTo(individual);
            _individualUpdater.AddScalingExponentForFluidFlowTo(individual);

            updateLiverStructure(individual);
            updateIsLiverZonatedValue(individual);
            updateLiverExpressions(individual);
            updateOntogenyFactorVisibility(individual);
            removeVolumePlasmaParameter(individual.Organism);
            _neighborhoodFinalizer.SetNeighborsIn(individual);
        }