public IFormula RHSRateFor(ParameterRateMetaData parameterRateDefinition, IFormulaCache formulaCache) { if (string.IsNullOrEmpty(parameterRateDefinition.RHSRate)) { return(null); } return(RateFor(parameterRateDefinition.CalculationMethod, parameterRateDefinition.RHSRate, formulaCache)); }
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); }
public IFormula RateFor(ParameterRateMetaData rateDefinition, IFormulaCache formulaCache) { return(RateFor(rateDefinition.CalculationMethod, rateDefinition.Rate, formulaCache)); }