Exemplo n.º 1
0
        public void setPricer(InflationCouponPricer pricer)
        {
            Utils.QL_REQUIRE(checkPricerImpl(pricer), () => "pricer given is wrong type");

            if (pricer_ != null)
            {
                pricer_.unregisterWith(update);
            }

            pricer_ = pricer;

            if (pricer_ != null)
            {
                pricer_.registerWith(update);
            }

            update();
        }