예제 #1
0
 protected override void Context()
 {
     _simulation = BatchToolFactoryForSpecs.DefaultSimulation();
     _settings   = new JsonSerializerSettings {
         NullValueHandling = NullValueHandling.Ignore
     };
 }
예제 #2
0
 protected override void Context()
 {
     _individual = BatchToolFactoryForSpecs.Individual();
     _enzyme     = new Enzyme {
         Name = "CYP", ReferenceConcentration = 5
     };
     _enzyme.Expressions.Add("Liver", 0.5);
     _enzyme.Expressions.Add("Kidney", 0.9);
     _individual.Enzymes.Add(_enzyme);
     _settings = new JsonSerializerSettings {
         NullValueHandling = NullValueHandling.Ignore
     };
 }
예제 #3
0
        protected override void Context()
        {
            _simulation = BatchToolFactoryForSpecs.DefaultSimulation();
            var pv1 = new ParameterVariationSet {
                Name = "PV1"
            };

            pv1.ParameterValues.Add(new ParameterValue("A|B|C", 15, 0.2));
            pv1.ParameterValues.Add(new ParameterValue("A|B|C|D", 20, 0.6));
            _simulation.ParameterVariationSets.Add(pv1);

            _settings = new JsonSerializerSettings {
                NullValueHandling = NullValueHandling.Ignore
            };
        }
예제 #4
0
        protected override void Context()
        {
            _compound                    = BatchToolFactoryForSpecs.Compound();
            _compound.Name               = "sim";
            _compound.IsSmallMolecule    = true;
            _partialProcess              = new PartialProcess();
            _partialProcess.MoleculeName = "CYP";
            _partialProcess.InternalName = "Metabolization_firstOrder";
            _partialProcess.DataSource   = "Lab";
            _partialProcess.ParameterValues.Add("P1", 5);
            _partialProcess.ParameterValues.Add("CLSpec", 3);

            _systemicProcess = new SystemicProcess();
            _systemicProcess.InternalName = "PlasmaClearance";
            _systemicProcess.DataSource   = "Lab";
            _systemicProcess.ParameterValues.Add("P4", 5);
            _systemicProcess.ParameterValues.Add("CL", 3);

            _compound.PartialProcesses.Add(_partialProcess);
            _compound.SystemicProcesses.Add(_systemicProcess);
            _settings = new JsonSerializerSettings {
                NullValueHandling = NullValueHandling.Ignore
            };
        }