class GeneratorScalable extends AbstractInjectionScalable {

    @Override
    public double minimumValue(Network n, ScalingConvention scalingConvention) {
        Objects.requireNonNull(n);
        Objects.requireNonNull(scalingConvention);

        Generator g = n.getGenerator(id);
        if (g != null) {
            return scalingConvention == GENERATOR ? Math.max(g.getMinP(), minValue) : -Math.min(g.getMaxP(), maxValue);
        } else {
            return 0;
        }
    }

      GeneratorScalable(String id);
      GeneratorScalable(String id, double minValue, double maxValue);

}