class GeneratorPriceIndexCurveInterpolatedAnchorNode extends GeneratorPriceIndexCurve {

  @Override
  public PriceIndexCurveSimple generateCurve(final String name, final double[] x) {
    ArgumentChecker.isTrue(x.length == _nbPoints, "Incorrect dimension for the rates");
    ArgumentChecker.notNull(name, "name");
    return new PriceIndexCurveSimple(DoublesCurveInterpolatedAnchor.from(_nodePoints, x, _anchorNode, _anchorValue, 
        _interpolator, name));
  }

  public  GeneratorPriceIndexCurveInterpolatedAnchorNode(final double[] nodePoints, final Interpolator1D interpolator, 
      final double anchorNode, final double anchorValue);

}