예제 #1
0
        public void visit(DigitalIborCoupon c)
        {
            IborCouponPricer iborCouponPricer = pricer_ as IborCouponPricer;

            Utils.QL_REQUIRE(iborCouponPricer != null, () => "pricer not compatible with Ibor coupon");
            c.setPricer(iborCouponPricer);
        }
예제 #2
0
        public void visit(DigitalIborCoupon c)
        {
            IborCouponPricer pricer = pricer_ as IborCouponPricer;

            if (pricer == null)
            {
                throw new ApplicationException("pricer not compatible with Ibor coupon");
            }
            c.setPricer(pricer);
        }
예제 #3
0
 public void visit(DigitalIborCoupon c)
 {
     IborCouponPricer pricer = pricer_ as IborCouponPricer;
     if (pricer == null)
         throw new ApplicationException("pricer not compatible with Ibor coupon");
     c.setPricer(pricer);
 }