Exemplo n.º 1
0
        protected override void CacheParameterValueFor(Formulation formulation)
        {
            _dissTime50 = formulation.Parameter(CoreConstants.Parameters.DISS_TIME50).Value;
            _lagTime    = formulation.Parameter(CoreConstants.Parameters.LAG_TIME).Value;
            _dissShape  = formulation.Parameter(CoreConstants.Parameters.DISS_SHAPE).Value;

            _tau = Math.Pow(_dissTime50, _dissShape) / Math.Log(2);
        }
Exemplo n.º 2
0
        private void validateTableFormulation(Formulation tableFormulation)
        {
            var formulaParameter = tableFormulation.Parameter(CoreConstants.Parameters.FRACTION_DOSE);
            var tableFormula     = formulaParameter?.Formula as TableFormula;

            //at least one point in this formulation
            if (tableFormula != null && tableFormula.AllPoints().Any())
            {
                return;
            }

            throw new InvalidSimulationConfigurationException(PKSimConstants.Error.TableFormulationRequiresAtLeastOnePoint(tableFormulation.Name));
        }
Exemplo n.º 3
0
 protected override void CacheParameterValueFor(Formulation formulation)
 {
     _tHalf = formulation.Parameter(CoreConstants.Parameters.HALF_LIFE).Value;
 }
Exemplo n.º 4
0
 protected override void CacheParameterValueFor(Formulation formulation)
 {
     _lagTime    = formulation.Parameter(CoreConstants.Parameters.LAG_TIME).Value;
     _dissTime80 = formulation.Parameter(CoreConstants.Parameters.DISS_TIME80).Value;
 }
Exemplo n.º 5
0
 protected override void CacheParameterValueFor(Formulation formulation)
 {
     _tEnd = formulation.Parameter(CoreConstants.Parameters.T_END).Value;
 }
Exemplo n.º 6
0
 public void should_have_set_the_value_of_parmaeter_use_as_suspenssion_to_zero()
 {
     _formulation.Parameter(CoreConstants.Parameter.USE_AS_SUSPENSION).Value.ShouldBeEqualTo(0);
 }
Exemplo n.º 7
0
 public void should_not_add_use_as_suspension_parameter()
 {
     _formulation.FormulationType.ShouldBeEqualTo(CoreConstants.Formulation.PARTICLES);
     _formulation.Parameter(Constants.Parameters.USE_AS_SUSPENSION).ShouldBeNull();
 }