Class ReactivePredictorParams


  • public class ReactivePredictorParams
    extends java.lang.Object
    Class that represents the ReactivePredictor-specific parameters of the PredictorConfig.

    That is, ReactivePredictorParams is the Java representation of the PredictorConfig.getParameters() JsonObject for the ReactivePredictor.

    • Constructor Detail

      • ReactivePredictorParams

        public ReactivePredictorParams​(java.lang.Double safetyMargin)
        Parameters:
        safetyMargin - The safety margin (in percent) to add to predictions. This adds some extra padding to every prediction to keep some margin to the load curve. Can be null, which sets the margin to 0.0.
    • Method Detail

      • getSafetyMargin

        public double getSafetyMargin()
        Returns the safety margin (in percent) to add to predictions which, if specified, keeps some extra margin to the load curve.
        Returns:
      • validate

        public void validate()
                      throws java.lang.IllegalArgumentException
        Performs basic validation of this ReactivePredictorParams and in case verification fails, an IllegalArgumentException is thrown.
        Throws:
        java.lang.IllegalArgumentException
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object