Package com.powsybl.security.detectors
Class AbstractContingencyBlindDetector
- java.lang.Object
-
- com.powsybl.security.detectors.AbstractContingencyBlindDetector
-
- All Implemented Interfaces:
LimitViolationDetector
- Direct Known Subclasses:
AbstractLimitViolationDetector
,DefaultLimitViolationDetector
public abstract class AbstractContingencyBlindDetector extends Object implements LimitViolationDetector
Provides implementations for aggregation methods ofLimitViolationDetector
. Contingency based methods are not implemented, default implementation are left untouched.- Author:
- Sylvain Leclerc
-
-
Constructor Summary
Constructors Constructor Description AbstractContingencyBlindDetector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkAll(Network network, Consumer<LimitViolation> consumer)
Checks whether the current and voltage values on all equipments of the specifiedNetwork
should be considered asLimitViolation
s.void
checkAllDc(Network network, double dcPowerFactor, Consumer<LimitViolation> consumer)
Checks whether the current and voltage values on all equipments of the specifiedNetwork
should be considered asLimitViolation
s.void
checkCurrent(Branch branch, Branch.Side side, Consumer<LimitViolation> consumer)
This implementation takes the current value to be checked from the Network.void
checkCurrent(Branch branch, Consumer<LimitViolation> consumer)
Checks whether the current value on both sides of the specifiedBranch
should be considered asLimitViolation
(s).void
checkCurrentDc(Branch branch, double dcPowerFactor, Consumer<LimitViolation> consumer)
Checks whether the current value on both sides of the specifiedBranch
should be considered asLimitViolation
(s).void
checkCurrentDc(Branch branch, Branch.Side side, double dcPowerFactor, Consumer<LimitViolation> consumer)
This implementation computes the current value from the power value, if current is not provided (NaN).void
checkVoltage(Bus bus, Consumer<LimitViolation> consumer)
This implementation takes the voltage value to be checked from the Network.void
checkVoltage(VoltageLevel voltageLevel, Consumer<LimitViolation> consumer)
Checks whether the voltage value on the specifiedVoltageLevel
should be considered as aLimitViolation
or not.-
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
checkActivePower, checkAll, checkApparentPower, checkCurrent, checkCurrent, checkCurrent, checkCurrent, checkPermanentLimit, checkTemporary, checkVoltage, checkVoltage, checkVoltage, checkVoltage, toLimitViolationType
-
-
-
-
Method Detail
-
checkCurrent
public void checkCurrent(Branch branch, Branch.Side side, Consumer<LimitViolation> consumer)
This implementation takes the current value to be checked from the Network.- Specified by:
checkCurrent
in interfaceLimitViolationDetector
- Parameters:
branch
- The branch on which the current must be checked.side
- The side of the branch on which the current must be checked.consumer
- Will be fed with possibly created limit violations.
-
checkCurrentDc
public void checkCurrentDc(Branch branch, Branch.Side side, double dcPowerFactor, Consumer<LimitViolation> consumer)
This implementation computes the current value from the power value, if current is not provided (NaN).- Specified by:
checkCurrentDc
in interfaceLimitViolationDetector
- Parameters:
branch
- The branch on which the current must be checked.side
- The side of the branch on which the current must be checked.dcPowerFactor
- The DC power factor used to convert the active power into current.consumer
- Will be fed with possibly created limit violations.
-
checkVoltage
public void checkVoltage(Bus bus, Consumer<LimitViolation> consumer)
This implementation takes the voltage value to be checked from the Network.- Specified by:
checkVoltage
in interfaceLimitViolationDetector
- Parameters:
bus
- The bus on which the voltage must be checked.consumer
- Will be fed with possibly created limit violations.
-
checkVoltage
public void checkVoltage(VoltageLevel voltageLevel, Consumer<LimitViolation> consumer)
Description copied from interface:LimitViolationDetector
Checks whether the voltage value on the specifiedVoltageLevel
should be considered as aLimitViolation
or not. In case it should, feeds the consumer with it.- Specified by:
checkVoltage
in interfaceLimitViolationDetector
- Parameters:
voltageLevel
- The voltage level on which the voltage must be checked.consumer
- Will be fed with possibly created limit violations.
-
checkCurrent
public void checkCurrent(Branch branch, Consumer<LimitViolation> consumer)
Description copied from interface:LimitViolationDetector
Checks whether the current value on both sides of the specifiedBranch
should be considered asLimitViolation
(s). In case it should, feeds the consumer with it.- Specified by:
checkCurrent
in interfaceLimitViolationDetector
- Parameters:
branch
- The branch on which the current must be checked.consumer
- Will be fed with possibly created limit violations.
-
checkCurrentDc
public void checkCurrentDc(Branch branch, double dcPowerFactor, Consumer<LimitViolation> consumer)
Description copied from interface:LimitViolationDetector
Checks whether the current value on both sides of the specifiedBranch
should be considered asLimitViolation
(s). In case it should, feeds the consumer with it. In this DC power flow mode, the current is computed using the DC power factor if necessary.- Specified by:
checkCurrentDc
in interfaceLimitViolationDetector
- Parameters:
branch
- The branch on which the current must be checked.dcPowerFactor
- The DC power factor used to convert the active power into current.consumer
- Will be fed with possibly created limit violations.
-
checkAll
public void checkAll(Network network, Consumer<LimitViolation> consumer)
Description copied from interface:LimitViolationDetector
Checks whether the current and voltage values on all equipments of the specifiedNetwork
should be considered asLimitViolation
s. In case it should, feeds the consumer with it.- Specified by:
checkAll
in interfaceLimitViolationDetector
- Parameters:
network
- The network on which physical values must be checked.consumer
- Will be fed with possibly created limit violations.
-
checkAllDc
public void checkAllDc(Network network, double dcPowerFactor, Consumer<LimitViolation> consumer)
Description copied from interface:LimitViolationDetector
Checks whether the current and voltage values on all equipments of the specifiedNetwork
should be considered asLimitViolation
s. In case it should, feeds the consumer with it. In this DC power flow mode, the current is computed using the DC power factor if necessary.- Specified by:
checkAllDc
in interfaceLimitViolationDetector
- Parameters:
network
- The network on which physical values must be checked.dcPowerFactor
- The DC power factor used to convert the active power into current.consumer
- Will be fed with possibly created limit violations.
-
-