class CouponIborAverage extends CouponFloating {

  @Override
  public CouponIborAverage withNotional(final double notional) {
    return new CouponIborAverage(getCurrency(), getPaymentTime(), getPaymentYearFraction(), notional, getFixingTime(), _index1, getFixingPeriodStartTime1(),
        getFixingPeriodEndTime1(),
        getFixingAccrualFactor1(), _index2, getFixingPeriodStartTime2(),
        getFixingPeriodEndTime2(),
        getFixingAccrualFactor2(), getWeight1(), getWeight2());
  }

  public  CouponIborAverage(final Currency currency, final double paymentTime, final double paymentYearFraction, final double notional, final double fixingTime,
      final IborIndex index1, final double fixingPeriodStartTime1, final double fixingPeriodEndTime1, final double fixingYearFraction1,
      final IborIndex index2, final double fixingPeriodStartTime2, final double fixingPeriodEndTime2, final double fixingYearFraction2,
      final double weight1, final double weight2);

}