Exemple #1
0
 public RandomPopulationFactory(
     IObjectBaseFactory objectBaseFactory,
     IProgressManager progressManager,
     IIndividualModelTask individualModelTask,
     ICreateIndividualAlgorithm createIndividualAlgorithm,
     IIndividualToIndividualValuesMapper individualValuesMapper,
     IContainerTask containerTask,
     ICloner cloner,
     IDistributedParametersUpdater distributedParametersUpdater,
     IReportGenerator reportGenerator,
     IMoleculeParameterVariabilityCreator moleculeParameterVariabilityCreator,
     IMoleculeOntogenyVariabilityUpdater moleculeOntogenyVariabilityUpdater,
     IDiseaseStateImplementationFactory diseaseStateImplementationFactory)
 {
     _objectBaseFactory         = objectBaseFactory;
     _progressManager           = progressManager;
     _individualModelTask       = individualModelTask;
     _createIndividualAlgorithm = createIndividualAlgorithm;
     _individualValuesMapper    = individualValuesMapper;
     _containerTask             = containerTask;
     _cloner = cloner;
     _distributedParametersUpdater = distributedParametersUpdater;
     _reportGenerator = reportGenerator;
     _moleculeParameterVariabilityCreator = moleculeParameterVariabilityCreator;
     _moleculeOntogenyVariabilityUpdater  = moleculeOntogenyVariabilityUpdater;
     _diseaseStateImplementationFactory   = diseaseStateImplementationFactory;
 }
Exemple #2
0
        protected override void Context()
        {
            _createIndvidualAlgorithm             = A.Fake <ICreateIndividualAlgorithm>();
            _entityBaseFactory                    = A.Fake <IObjectBaseFactory>();
            _individualModelTask                  = A.Fake <IIndividualModelTask>();
            _speciesRepository                    = A.Fake <ISpeciesRepository>();
            _entityValidator                      = A.Fake <IEntityValidator>();
            _reportGenerator                      = A.Fake <IReportGenerator>();
            _genderRepository                     = A.Fake <IGenderRepository>();
            _moleculeOntogenyVariabilityUpdater   = A.Fake <IMoleculeOntogenyVariabilityUpdater>();
            _diseaseStateImplementationRepository = A.Fake <IDiseaseStateImplementationFactory>();

            sut = new IndividualFactory(
                _individualModelTask,
                _entityBaseFactory,
                _createIndvidualAlgorithm,
                _speciesRepository,
                _entityValidator,
                _reportGenerator,
                _moleculeOntogenyVariabilityUpdater,
                _genderRepository,
                _diseaseStateImplementationRepository
                );

            _age            = DomainHelperForSpecs.ConstantParameterWithValue().WithName(CoreConstants.Parameters.AGE);
            _gestationalAge = DomainHelperForSpecs.ConstantParameterWithValue().WithName(Constants.Parameters.GESTATIONAL_AGE);
            _height         = DomainHelperForSpecs.ConstantParameterWithValue().WithName(CoreConstants.Parameters.HEIGHT);
            _weight         = DomainHelperForSpecs.ConstantParameterWithValue().WithName(CoreConstants.Parameters.WEIGHT);
            _bmi            = DomainHelperForSpecs.ConstantParameterWithValue().WithName(CoreConstants.Parameters.BMI);
        }
 public IndividualFactory(
     IIndividualModelTask individualModelTask,
     IObjectBaseFactory objectBaseFactory,
     ICreateIndividualAlgorithm createIndividualAlgorithm,
     ISpeciesRepository speciesRepository,
     IEntityValidator entityValidator,
     IReportGenerator reportGenerator,
     IMoleculeOntogenyVariabilityUpdater ontogenyVariabilityUpdater,
     IGenderRepository genderRepository,
     IDiseaseStateImplementationFactory diseaseStateImplementationFactory)
 {
     _individualModelTask               = individualModelTask;
     _objectBaseFactory                 = objectBaseFactory;
     _createIndividualAlgorithm         = createIndividualAlgorithm;
     _speciesRepository                 = speciesRepository;
     _entityValidator                   = entityValidator;
     _reportGenerator                   = reportGenerator;
     _ontogenyVariabilityUpdater        = ontogenyVariabilityUpdater;
     _genderRepository                  = genderRepository;
     _diseaseStateImplementationFactory = diseaseStateImplementationFactory;
 }
Exemple #4
0
 public ExpressionProfileUpdater(
     IParameterSetUpdater parameterSetUpdater,
     IContainerTask containerTask,
     IOntogenyTask ontogenyTask,
     ICloner cloner,
     IPKSimProjectRetriever projectRetriever,
     ILazyLoadTask lazyLoadTask,
     IParameterIdUpdater parameterIdUpdater,
     IExecutionContext executionContext,
     IDiseaseStateImplementationFactory diseaseStateImplementationFactory)
 {
     _parameterSetUpdater = parameterSetUpdater;
     _containerTask       = containerTask;
     _ontogenyTask        = ontogenyTask;
     _cloner             = cloner;
     _projectRetriever   = projectRetriever;
     _lazyLoadTask       = lazyLoadTask;
     _parameterIdUpdater = parameterIdUpdater;
     _executionContext   = executionContext;
     _diseaseStateImplementationFactory = diseaseStateImplementationFactory;
 }