Esempio n. 1
0
 public DistributedParameterToTableParameterConverter(
     IFormulaFactory formulaFactory,
     IEntityPathResolver entityPathResolver,
     IParameterFactory parameterFactory,
     ICloneManager cloneManager,
     IParameterQuery parameterQuery,
     IDimensionRepository dimensionRepository,
     IOntogenyRepository ontogenyRepository,
     IFullPathDisplayResolver fullPathDisplayResolver,
     IInterpolation interpolation,
     IParameterStartValuesCreator parameterStartValuesCreator,
     IObjectPathFactory objectPathFactory,
     IGenderRepository genderRepository)
 {
     _formulaFactory              = formulaFactory;
     _entityPathResolver          = entityPathResolver;
     _parameterFactory            = parameterFactory;
     _cloneManager                = cloneManager;
     _parameterQuery              = parameterQuery;
     _dimensionRepository         = dimensionRepository;
     _ontogenyRepository          = ontogenyRepository;
     _fullPathDisplayResolver     = fullPathDisplayResolver;
     _interpolation               = interpolation;
     _parameterStartValuesCreator = parameterStartValuesCreator;
     _objectPathFactory           = objectPathFactory;
     _genderRepository            = genderRepository;
     _timeDimension               = dimensionRepository.Time;
     _yearUnit = _timeDimension.Unit(dimensionRepository.AgeInYears.BaseUnit.Name);
 }
Esempio n. 2
0
        protected override void Context()
        {
            _view           = A.Fake <ITableParameterView>();
            _parameterTask  = A.Fake <IParameterTask>();
            _formulaFactory = A.Fake <IFormulaFactory>();
            _cloner         = A.Fake <ICloner>();
            _tableFormula   = new TableFormula {
                Id = "1"
            };
            _tableFormula.XDimension   = DomainHelperForSpecs.TimeDimensionForSpecs();
            _tableFormula.XDisplayUnit = _tableFormula.XDimension.BaseUnit;
            _tableFormula.Dimension    = DomainHelperForSpecs.LengthDimensionForSpecs();
            _tableFormula.YDisplayUnit = _tableFormula.Dimension.BaseUnit;
            _editedFormula             = new TableFormula {
                Id = "2"
            };
            _editedFormula.XDimension   = DomainHelperForSpecs.TimeDimensionForSpecs();
            _editedFormula.XDisplayUnit = _editedFormula.XDimension.BaseUnit;
            _editedFormula.Dimension    = DomainHelperForSpecs.LengthDimensionForSpecs();
            _editedFormula.YDisplayUnit = _editedFormula.Dimension.BaseUnit;

            A.CallTo(() => _cloner.Clone(_tableFormula)).Returns(_editedFormula);
            sut = new TableParametersForSpecs(_view, _parameterTask, _cloner, _formulaFactory);
            sut.InitializeWith(A.Fake <ICommandCollector>());
            _parameter = new PKSimParameter().WithFormula(_tableFormula);
        }
Esempio n. 3
0
 public PKSimParameterStartValuesCreator(IParameterStartValuesCreator parameterStartValuesCreator,
                                         IFormulaFactory formulaFactory,
                                         IEntityPathResolver entityPathResolver)
 {
     _parameterStartValuesCreator = parameterStartValuesCreator;
     _formulaFactory     = formulaFactory;
     _entityPathResolver = entityPathResolver;
 }
Esempio n. 4
0
 public FormulationTask(IExecutionContext executionContext, IBuildingBlockTask buildingBlockTask, IApplicationController applicationController, IDataImporter dataImporter,
                        IDimensionRepository dimensionRepository, IFormulaFactory formulaFactory)
     : base(executionContext, buildingBlockTask, applicationController, PKSimBuildingBlockType.Formulation)
 {
     DimensionRepository  = dimensionRepository;
     _dataImporter        = dataImporter;
     _dimensionRepository = dimensionRepository;
     _formulaFactory      = formulaFactory;
 }
 public FlatObserverToObserverBuilderMapper(IObjectBaseFactory entityBaseFactory,
                                            IFlatObserverDescriptorConditionRepository observerDescriptorRepo,
                                            IFormulaFactory formulaFactory, IDimensionRepository dimensionRepository)
 {
     _entityBaseFactory      = entityBaseFactory;
     _observerDescriptorRepo = observerDescriptorRepo;
     _formulaFactory         = formulaFactory;
     _dimensionRepository    = dimensionRepository;
 }
Esempio n. 6
0
 protected override void Context()
 {
     _dimension             = A.Fake <IDimension>();
     _dimension.DefaultUnit = A.Fake <Unit>();
     _objectBaseFactory     = A.Fake <IPKSimObjectBaseFactory>();
     _formulaFactory        = A.Fake <IFormulaFactory>();
     _dimensionRepository   = A.Fake <IDimensionRepository>();
     _displayUnitRetriever  = A.Fake <IDisplayUnitRetriever>();
     sut = new ParameterFactory(_objectBaseFactory, _formulaFactory, _dimensionRepository, _displayUnitRetriever);
 }
 public FlatProcessToActiveProcessMapper(IObjectBaseFactory entityBaseFactory, IFormulaFactory formulaFactory,
                                         IFlatProcessDescriptorConditionRepository processDescriptorRepository,
                                         IRepresentationInfoRepository representationInfoRepository,
                                         IFlatReactionPartnerRepository reactionPartnerRepository)
 {
     _entityBaseFactory            = entityBaseFactory;
     _formulaFactory               = formulaFactory;
     _processDescriptorRepository  = processDescriptorRepository;
     _representationInfoRepository = representationInfoRepository;
     _reactionPartnerRepository    = reactionPartnerRepository;
 }
Esempio n. 8
0
 public CalculationMethodToCoreCalculationMethodMapper(IFlatCalculationMethodParameterRateRepository flatCalculationMethodParameterRateRepository,
                                                       IFlatCalculationMethodParameterDescriptorConditionRepository flatCalculationMethodParameterDescriptorConditionRepository,
                                                       ICalculationMethodRepository calculationMethodRepository,
                                                       IFormulaFactory formulaFactory,
                                                       IParameterFactory parameterFactory)
 {
     _flatCalculationMethodParameterRateRepository = flatCalculationMethodParameterRateRepository;
     _flatCalculationMethodParameterDescriptorConditionRepository = flatCalculationMethodParameterDescriptorConditionRepository;
     _calculationMethodRepository = calculationMethodRepository;
     _formulaFactory   = formulaFactory;
     _parameterFactory = parameterFactory;
 }
 public PKSimParameterStartValuesCreator(IParameterStartValuesCreator parameterStartValuesCreator, IObjectPathFactory objectPathFactory,
                                         IObjectBaseFactory objectBaseFactory, IExpressionContainersRetriever expressionContainersRetriever, IFormulaFactory formulaFactory,
                                         IEntityPathResolver entityPathResolver)
 {
     _parameterStartValuesCreator   = parameterStartValuesCreator;
     _objectPathFactory             = objectPathFactory;
     _objectBaseFactory             = objectBaseFactory;
     _expressionContainersRetriever = expressionContainersRetriever;
     _formulaFactory     = formulaFactory;
     _entityPathResolver = entityPathResolver;
     _method             = CoreConstants.CalculationMethod.ActiveProcess;
 }
 public FlatProcessToPassiveTransportMapper(IObjectBaseFactory entityBaseFactory,
                                            IFlatProcessDescriptorConditionRepository processDescriptorRepo,
                                            IParameterContainerTask parameterContainerTask,
                                            IFormulaFactory formulaFactory,
                                            IDimensionRepository dimensionRepository)
 {
     _entityBaseFactory      = entityBaseFactory;
     _processDescriptorRepo  = processDescriptorRepo;
     _parameterContainerTask = parameterContainerTask;
     _formulaFactory         = formulaFactory;
     _dimensionRepository    = dimensionRepository;
 }
 protected override void Context()
 {
     _parameterAlternativeFactory = A.Fake <IParameterAlternativeFactory>();
     _applicationController       = A.Fake <IApplicationController>();
     _executionContext            = A.Fake <IExecutionContext>();
     _entityTask              = A.Fake <IEntityTask>();
     _formulaFactory          = A.Fake <IFormulaFactory>();
     _parameterTask           = A.Fake <IParameterTask>();
     _buildingBlockRepository = A.Fake <IBuildingBlockRepository>();
     _compoundFactory         = new CompoundFactoryForSpecs();
     sut = new CompoundAlternativeTask(_parameterAlternativeFactory, _applicationController,
                                       _executionContext, _compoundFactory, _entityTask, _formulaFactory, _parameterTask, _buildingBlockRepository);
 }
Esempio n. 12
0
 protected override void Context()
 {
     _objectBaseFactory = A.Fake <IObjectBaseFactory>();
     _cloner            = A.Fake <ICloner>();
     _speciesRepository = A.Fake <ISpeciesRepository>();
     //necessary to create compound since default parameter willl be added to the group based on compound parameters
     _compound = new Compound();
     _compoundParameterGroup = new ParameterAlternativeGroup();
     _compound.AddParameterAlternativeGroup(_compoundParameterGroup);
     _userSettings   = A.Fake <ICoreUserSettings>();
     _formulaFactory = A.Fake <IFormulaFactory>();
     sut             = new ParameterAlternativeFactory(_objectBaseFactory, _cloner, _speciesRepository, _userSettings, _formulaFactory);
 }
Esempio n. 13
0
 public CompoundAlternativeTask(IParameterAlternativeFactory parameterAlternativeFactory, IApplicationController applicationController,
                                IExecutionContext executionContext, ICompoundFactory compoundFactory, IEntityTask entityTask,
                                IFormulaFactory formulaFactory, IParameterTask parameterTask, IBuildingBlockRepository buildingBlockRepository)
 {
     _parameterAlternativeFactory = parameterAlternativeFactory;
     _applicationController       = applicationController;
     _executionContext            = executionContext;
     _compoundFactory             = compoundFactory;
     _entityTask              = entityTask;
     _formulaFactory          = formulaFactory;
     _parameterTask           = parameterTask;
     _buildingBlockRepository = buildingBlockRepository;
 }
 protected override void Context()
 {
     _parameterAlternativeFactory = A.Fake <IParameterAlternativeFactory>();
     _executionContext            = A.Fake <IExecutionContext>();
     _formulaFactory          = A.Fake <IFormulaFactory>();
     _parameterTask           = A.Fake <IParameterTask>();
     _buildingBlockRepository = A.Fake <IBuildingBlockRepository>();
     _dimensionRepository     = A.Fake <IDimensionRepository>();
     _dataImporter            = A.Fake <IDataImporter>();
     _compoundFactory         = new CompoundFactoryForSpecs();
     sut = new CompoundAlternativeTask(_parameterAlternativeFactory,
                                       _executionContext, _compoundFactory, _formulaFactory, _parameterTask,
                                       _buildingBlockRepository, _dimensionRepository, _dataImporter);
 }
Esempio n. 15
0
 public CompoundAlternativeTask(
     IParameterAlternativeFactory parameterAlternativeFactory,
     IExecutionContext executionContext,
     ICompoundFactory compoundFactory,
     IFormulaFactory formulaFactory,
     IParameterTask parameterTask,
     IBuildingBlockRepository buildingBlockRepository,
     IDimensionRepository dimensionRepository,
     IDataImporter dataImporter)
 {
     _parameterAlternativeFactory = parameterAlternativeFactory;
     _executionContext            = executionContext;
     _compoundFactory             = compoundFactory;
     _formulaFactory          = formulaFactory;
     _parameterTask           = parameterTask;
     _buildingBlockRepository = buildingBlockRepository;
     _dimensionRepository     = dimensionRepository;
     _dataImporter            = dataImporter;
 }
Esempio n. 16
0
            public TableParametersForSpecs(ITableParameterView view, IParameterTask parameterTask, ICloner cloneManager, IFormulaFactory formulaFactory) :
                base(view, parameterTask, formulaFactory, cloneManager, () => new TableFormula {
                Id = "new"
            })

            {
            }
Esempio n. 17
0
 protected FormulationValuesSpecification(IFormulaFactory formulaFactory)
 {
     _formulaFactory = formulaFactory;
 }