Exemplo n.º 1
0
        public void visit(IborCoupon c)
        {
            IborCouponPricer iborCouponPricer = pricer_ as IborCouponPricer;

            Utils.QL_REQUIRE(iborCouponPricer != null, () => "pricer not compatible with Ibor coupon");
            c.setPricer(iborCouponPricer);
        }
Exemplo n.º 2
0
        public void visit(IborCoupon c)
        {
            IborCouponPricer pricer = pricer_ as IborCouponPricer;

            if (pricer == null)
            {
                throw new ApplicationException("pricer not compatible with Ibor coupon");
            }
            c.setPricer(pricer);
        }
Exemplo n.º 3
0
 public void visit(IborCoupon c)
 {
     IborCouponPricer pricer = pricer_ as IborCouponPricer;
     if (pricer == null)
         throw new ApplicationException("pricer not compatible with Ibor coupon");
     c.setPricer(pricer);
 }