class DiscountingFixedCouponBondPaymentPeriodPricer {

  public double presentValue(FixedCouponBondPaymentPeriod period, IssuerCurveDiscountFactors discountFactors) {

    if (period.getPaymentDate().isBefore(discountFactors.getValuationDate())) {
      return 0d;
    }
    double df = discountFactors.discountFactor(period.getPaymentDate());
    return period.getFixedRate() * period.getNotional() * period.getYearFraction() * df;
  }

  public  DiscountingFixedCouponBondPaymentPeriodPricer();

}