Inheritance: CappedFlooredCoupon
コード例 #1
0
ファイル: CouponPricer.cs プロジェクト: zhangz/QLNet
        public void visit(CappedFlooredIborCoupon 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(CappedFlooredIborCoupon c)
        {
            IborCouponPricer pricer = pricer_ as IborCouponPricer;

            if (pricer == null)
            {
                throw new ApplicationException("pricer not compatible with Ibor coupon");
            }
            c.setPricer(pricer);
        }
コード例 #3
0
ファイル: CouponPricer.cs プロジェクト: ammachado/QLNet
 public void visit(CappedFlooredIborCoupon c)
 {
     IborCouponPricer pricer = pricer_ as IborCouponPricer;
     if (pricer == null)
         throw new ApplicationException("pricer not compatible with Ibor coupon");
     c.setPricer(pricer);
 }