コード例 #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;
 }
コード例 #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);
        }
コード例 #3
0
 public MatlabPopulationFactory(IMatlabPopulationSettingsToPopulationSettingsMapper populationSettingsMapper, IRandomPopulationFactory randomPopulationFactory,
                                IOntogenyRepository ontogenyRepository, IMoleculeOntogenyVariabilityUpdater ontogenyVariabilityUpdater, IIndividualEnzymeFactory individualEnzymeFactory)
 {
     _populationSettingsMapper   = populationSettingsMapper;
     _randomPopulationFactory    = randomPopulationFactory;
     _ontogenyRepository         = ontogenyRepository;
     _ontogenyVariabilityUpdater = ontogenyVariabilityUpdater;
     _individualEnzymeFactory    = individualEnzymeFactory;
 }
コード例 #4
0
 public IndividualFactory(IIndividualModelTask individualModelTask, IObjectBaseFactory objectBaseFactory, ICreateIndividualAlgorithm createIndividualAlgorithm,
                          ISpeciesRepository speciesRepository, IEntityValidator entityValidator, IReportGenerator reportGenerator, IMoleculeOntogenyVariabilityUpdater ontogenyVariabilityUpdater)
 {
     _individualModelTask        = individualModelTask;
     _objectBaseFactory          = objectBaseFactory;
     _createIndividualAlgorithm  = createIndividualAlgorithm;
     _speciesRepository          = speciesRepository;
     _entityValidator            = entityValidator;
     _reportGenerator            = reportGenerator;
     _ontogenyVariabilityUpdater = ontogenyVariabilityUpdater;
 }
コード例 #5
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>();
     _moleculeOntogenyVariabilityUpdater = A.Fake <IMoleculeOntogenyVariabilityUpdater>();
     sut = new IndividualFactory(_individualModelTask, _entityBaseFactory, _createIndvidualAlgorithm, _speciesRepository, _entityValidator, _reportGenerator, _moleculeOntogenyVariabilityUpdater);
 }