示例#1
0
        public IFormula RHSRateFor(ParameterRateMetaData parameterRateDefinition, IFormulaCache formulaCache)
        {
            if (string.IsNullOrEmpty(parameterRateDefinition.RHSRate))
            {
                return(null);
            }

            return(RateFor(parameterRateDefinition.CalculationMethod, parameterRateDefinition.RHSRate, formulaCache));
        }
示例#2
0
        public IParameter CreateFor(ParameterRateMetaData parameterRateDefinition, IFormulaCache formulaCache)
        {
            var param = _objectBaseFactory.CreateParameter();

            param.Formula = _formulaFactory.RateFor(parameterRateDefinition, formulaCache);

            if (!string.IsNullOrEmpty(parameterRateDefinition.RHSRate))
            {
                param.RHSFormula = _formulaFactory.RHSRateFor(parameterRateDefinition, formulaCache);
            }

            setParameterProperties(param, parameterRateDefinition);
            updateDefaultValueFor(param);
            return(param);
        }
示例#3
0
 public IFormula RateFor(ParameterRateMetaData rateDefinition, IFormulaCache formulaCache)
 {
     return(RateFor(rateDefinition.CalculationMethod, rateDefinition.Rate, formulaCache));
 }