Package com.powsybl.security.detectors
Class DefaultLimitViolationDetector
- java.lang.Object
-
- com.powsybl.security.detectors.AbstractContingencyBlindDetector
-
- com.powsybl.security.detectors.DefaultLimitViolationDetector
-
- All Implemented Interfaces:
LimitViolationDetector
- Direct Known Subclasses:
DefaultLimitViolationDetector
public class DefaultLimitViolationDetector extends AbstractContingencyBlindDetector
Implements the default behaviour for limit violation detection.- Author:
- Sylvain Leclerc
-
-
Constructor Summary
Constructors Constructor Description DefaultLimitViolationDetector()
DefaultLimitViolationDetector(float limitReduction, Collection<Security.CurrentLimitType> currentLimitTypes)
DefaultLimitViolationDetector(Collection<Security.CurrentLimitType> currentLimitTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkCurrent(Branch branch, Branch.Side side, double value, Consumer<LimitViolation> consumer)
Checks whether the specified current value on the specified side of the specifiedBranch
should be considered as aLimitViolation
or not.void
checkVoltage(Bus bus, double value, Consumer<LimitViolation> consumer)
Checks whether the specified voltage value on the specifiedBus
should be considered as aLimitViolation
or not.-
Methods inherited from class com.powsybl.security.detectors.AbstractContingencyBlindDetector
checkAll, checkCurrent, checkCurrent, checkVoltage, checkVoltage
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.powsybl.security.LimitViolationDetector
checkAll, checkCurrent, checkCurrent, checkCurrent, checkVoltage, checkVoltage, checkVoltage
-
-
-
-
Constructor Detail
-
DefaultLimitViolationDetector
public DefaultLimitViolationDetector(float limitReduction, Collection<Security.CurrentLimitType> currentLimitTypes)
-
DefaultLimitViolationDetector
public DefaultLimitViolationDetector(Collection<Security.CurrentLimitType> currentLimitTypes)
-
DefaultLimitViolationDetector
public DefaultLimitViolationDetector()
-
-
Method Detail
-
checkCurrent
public void checkCurrent(Branch branch, Branch.Side side, double value, Consumer<LimitViolation> consumer)
Description copied from interface:LimitViolationDetector
Checks whether the specified current value on the specified side of the specifiedBranch
should be considered as aLimitViolation
or not. In case it should, feeds the consumer with it.- Parameters:
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.
-
checkVoltage
public void checkVoltage(Bus bus, double value, Consumer<LimitViolation> consumer)
Description copied from interface:LimitViolationDetector
Checks whether the specified voltage value on the specifiedBus
should be considered as aLimitViolation
or not. In case it should, returns the corresponding limit violation.- Parameters:
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.
-
-