Package com.powsybl.security.detectors
Class DefaultLimitViolationDetector
- java.lang.Object
-
- com.powsybl.security.detectors.AbstractContingencyBlindDetector
-
- com.powsybl.security.detectors.DefaultLimitViolationDetector
-
- All Implemented Interfaces:
LimitViolationDetector
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<LoadingLimitType> currentLimitTypes)
DefaultLimitViolationDetector(Collection<LoadingLimitType> currentLimitTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkActivePower(Branch branch, Branch.Side side, double value, Consumer<LimitViolation> consumer)
Checks whether the specified active power value on the specified side of the specifiedBranch
should be considered as aLimitViolation
or not.void
checkApparentPower(Branch branch, Branch.Side side, double value, Consumer<LimitViolation> consumer)
Checks whether the specified apparent power value on the specified side of the specifiedBranch
should be considered as aLimitViolation
or not.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
checkLimitViolation(Branch branch, Branch.Side side, double value, Consumer<LimitViolation> consumer, LimitType type)
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, checkPermanentLimit, checkTemporary, checkVoltage, checkVoltage, checkVoltage, toLimitViolationType
-
-
-
-
Constructor Detail
-
DefaultLimitViolationDetector
public DefaultLimitViolationDetector(float limitReduction, Collection<LoadingLimitType> currentLimitTypes)
-
DefaultLimitViolationDetector
public DefaultLimitViolationDetector(Collection<LoadingLimitType> 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.
-
checkActivePower
public void checkActivePower(Branch branch, Branch.Side side, double value, Consumer<LimitViolation> consumer)
Description copied from interface:LimitViolationDetector
Checks whether the specified active power 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 active power value to be checked, in A.consumer
- Will be fed with possibly created limit violations.
-
checkApparentPower
public void checkApparentPower(Branch branch, Branch.Side side, double value, Consumer<LimitViolation> consumer)
Description copied from interface:LimitViolationDetector
Checks whether the specified apparent power 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 apparent power 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.
-
checkLimitViolation
public void checkLimitViolation(Branch branch, Branch.Side side, double value, Consumer<LimitViolation> consumer, LimitType type)
-
-