class YieldAndDiscountCurve implements InterestRateModel<Double>, Serializable {

  public double getDiscountFactor(final double t) {
    if (t == 0) { //short cut rate lookup
      return 1.0;
    }
    return Math.exp(-t * getInterestRate(t));
  }

  public  YieldAndDiscountCurve(final String name);

}