Exemple #1
0
        public ModelProperties MapFrom(SimulationConfiguration configuration, Model.Individual individual)
        {
            var modelProperties = _modelPropertiesTask.DefaultFor(individual.OriginData, configuration.Model);

            _batchLogger.AddDebug($"Using model method '{configuration.Model}'");
            return(modelProperties);
        }
Exemple #2
0
        public Simulation CreateForVSS(Protocol protocol, Individual individual, Compound compound)
        {
            //we create a clone here to ensure that a name is set in the compound
            var vssCompound = _cloner.Clone(compound).WithName("VSS COMPOUND");
            var simulation  = CreateFrom(individual, new[] { vssCompound }, _modelPropertiesTask.DefaultFor(individual.OriginData));

            _simulationBuildingBlockUpdater.UpdateMultipleUsedBuildingBlockInSimulationFromTemplate(simulation, new[] { protocol }, PKSimBuildingBlockType.Protocol);
            _simulationModelCreator.CreateModelFor(simulation);
            return(simulation);
        }
Exemple #3
0
 public void ModelSelectionChanging(ModelConfiguration newModelConfiguration)
 {
     ModelConfiguration    = newModelConfiguration;
     _modelPropertiesToUse = _modelPropertiesTask.Update(ModelProperties, _modelPropertiesTask.DefaultFor(newModelConfiguration, _originData), _originData);
 }
Exemple #4
0
 private ModelProperties modelPropertiesFrom(string modelName, ISimulationSubject simulationSubject)
 {
     return(_modelPropertiesTask.DefaultFor(simulationSubject.OriginData, modelName));
 }