public InflationCoupon(Date paymentDate,
                             double nominal,
                             Date startDate,
                             Date endDate,
                             int fixingDays,
                             InflationIndex index,
                             Period observationLag,
                             DayCounter dayCounter,
                             Date refPeriodStart,
                             Date refPeriodEnd)
         : base(nominal, paymentDate, startDate, endDate, refPeriodStart, refPeriodEnd)  // ref period is before lag
      {
         index_ = index;
         observationLag_ = observationLag;
         dayCounter_= dayCounter;
         fixingDays_ = fixingDays;

         index_.registerWith(update);
         Settings.registerWith(update);
      }
Ejemplo n.º 2
0
        public InflationCoupon(Date paymentDate,
                               double nominal,
                               Date startDate,
                               Date endDate,
                               int fixingDays,
                               InflationIndex index,
                               Period observationLag,
                               DayCounter dayCounter,
                               Date refPeriodStart,
                               Date refPeriodEnd)
            : base(nominal, paymentDate, startDate, endDate, refPeriodStart, refPeriodEnd) // ref period is before lag
        {
            index_          = index;
            observationLag_ = observationLag;
            dayCounter_     = dayCounter;
            fixingDays_     = fixingDays;

            index_.registerWith(update);
            Settings.registerWith(update);
        }