public class DefaultLimitViolationDetector extends AbstractContingencyBlindDetector
Constructor and Description |
---|
DefaultLimitViolationDetector() |
DefaultLimitViolationDetector(java.util.Collection<Security.CurrentLimitType> currentLimitTypes) |
DefaultLimitViolationDetector(float limitReduction,
java.util.Collection<Security.CurrentLimitType> currentLimitTypes) |
Modifier and Type | Method and Description |
---|---|
void |
checkCurrent(Branch branch,
Branch.Side side,
double value,
java.util.function.Consumer<LimitViolation> consumer)
Checks whether the specified current value on the specified side
of the specified
Branch should be considered as a LimitViolation or not. |
void |
checkVoltage(Bus bus,
double value,
java.util.function.Consumer<LimitViolation> consumer)
Checks whether the specified voltage value on the specified
Bus
should be considered as a LimitViolation or not. |
checkAll, checkCurrent, checkCurrent, checkVoltage, checkVoltage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkAll, checkCurrent, checkCurrent, checkCurrent, checkVoltage, checkVoltage, checkVoltage
public DefaultLimitViolationDetector(float limitReduction, java.util.Collection<Security.CurrentLimitType> currentLimitTypes)
public DefaultLimitViolationDetector(java.util.Collection<Security.CurrentLimitType> currentLimitTypes)
public DefaultLimitViolationDetector()
public void checkCurrent(Branch branch, Branch.Side side, double value, java.util.function.Consumer<LimitViolation> consumer)
LimitViolationDetector
Branch
should be considered as a LimitViolation
or not.
In case it should, feeds the consumer with it.branch
- The branch on which the current must be checked.side
- The side of the branch on which the current must be checked.value
- The current value to be checked, in A.consumer
- Will be fed with possibly created limit violations.public void checkVoltage(Bus bus, double value, java.util.function.Consumer<LimitViolation> consumer)
LimitViolationDetector
Bus
should be considered as a LimitViolation
or not.
In case it should, returns the corresponding limit violation.bus
- The bus on which the voltage must be checked.value
- The voltage value to be checked, in V.consumer
- Will be fed with possibly created limit violations.