Package com.powsybl.iidm.criteria
Class VoltageInterval.Builder
java.lang.Object
com.powsybl.iidm.criteria.VoltageInterval.Builder
- Enclosing class:
- VoltageInterval
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
protected static void
checkBounds
(Double low, Double high, boolean closedLow, boolean closedHigh) protected static void
checkValue
(double value) setHighBound
(double value, boolean closed) Define the upper bound of the interval.setLowBound
(double value, boolean closed) Define the lower bound of the interval.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setLowBound
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
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
-
build
-