示例#1
0
        public void visit(CappedFlooredCmsCoupon c)
        {
            CmsCouponPricer cmsCouponPricer = pricer_ as CmsCouponPricer;

            Utils.QL_REQUIRE(cmsCouponPricer != null, () => "pricer not compatible with CMS coupon");
            c.setPricer(cmsCouponPricer);
        }
示例#2
0
        public void visit(CappedFlooredCmsCoupon c)
        {
            CmsCouponPricer pricer = pricer_ as CmsCouponPricer;

            if (pricer == null)
            {
                throw new ApplicationException("pricer not compatible with CMS coupon");
            }
            c.setPricer(pricer);
        }
示例#3
0
 public void visit(CappedFlooredCmsCoupon c)
 {
     CmsCouponPricer pricer = pricer_ as CmsCouponPricer;
     if (pricer == null)
         throw new ApplicationException("pricer not compatible with CMS coupon");
     c.setPricer(pricer);
 }