Class VoltageInterval.Builder

java.lang.Object
com.powsybl.iidm.criteria.VoltageInterval.Builder
Enclosing class:
VoltageInterval

public static class VoltageInterval.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setLowBound

      public VoltageInterval.Builder setLowBound(double value, boolean closed)
      Define the lower bound of the interval.
      Parameters:
      value - value of the lower bound.
      closed - true if the bound is part of the interval, false otherwise.
      Returns:
      the current builder
    • setHighBound

      public VoltageInterval.Builder setHighBound(double value, boolean closed)
      Define the upper bound of the interval.
      Parameters:
      value - value of the upper bound.
      closed - true if the bound is part of the interval, false otherwise.
      Returns:
      the current builder
    • checkValue

      protected static void checkValue(double value)
    • checkBounds

      protected static void checkBounds(Double low, Double high, boolean closedLow, boolean closedHigh)
    • build

      public VoltageInterval build()