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 of
LimitViolationDetector
.
Contingency based methods are not implemented, default implementation are left untouched.- Author:
- Sylvain Leclerc <sylvain.leclerc at rte-france.com>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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, TwoSides side, Consumer<LimitViolation> consumer) Checks whether the current value on the specified side of the specifiedBranch
should be considered as aLimitViolation
or not.void
checkCurrent
(Branch branch, Consumer<LimitViolation> consumer) Checks whether the current value on both sides of the specifiedBranch
should be considered asLimitViolation
(s).void
checkCurrent
(ThreeWindingsTransformer transformer, ThreeSides side, Consumer<LimitViolation> consumer) Checks whether the current value on the specified side of the specifiedThreeWindingsTransformer
should be considered as aLimitViolation
or not.void
checkCurrent
(ThreeWindingsTransformer transformer, Consumer<LimitViolation> consumer) Checks whether the current value on both sides of the specifiedThreeWindingsTransformer
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, TwoSides side, double dcPowerFactor, Consumer<LimitViolation> consumer) Checks whether the current value on the specified side of the specifiedBranch
should be considered as aLimitViolation
or not.void
checkCurrentDc
(ThreeWindingsTransformer transformer, double dcPowerFactor, Consumer<LimitViolation> consumer) Checks whether the current value on both sides of the specifiedThreeWindingsTransformer
should be considered asLimitViolation
(s).void
checkCurrentDc
(ThreeWindingsTransformer transformer, ThreeSides side, double dcPowerFactor, Consumer<LimitViolation> consumer) Checks whether the current value on the specified side of the specifiedThreeWindingsTransformer
should be considered as aLimitViolation
or not.void
checkVoltage
(Bus bus, Consumer<LimitViolation> consumer) Checks whether the voltage value on the specifiedBus
should be considered as aLimitViolation
or not.void
checkVoltage
(VoltageLevel voltageLevel, Consumer<LimitViolation> consumer) Checks whether the voltage value on the specifiedVoltageLevel
should be considered as aLimitViolation
or not.void
checkVoltageAngle
(VoltageAngleLimit voltageAngleLimit, Consumer<LimitViolation> consumer) Checks whether the voltage angle difference between the TerminalRefs defined on the specifiedVoltageAngleLimit
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, checkActivePower, checkAll, checkApparentPower, checkApparentPower, checkCurrent, checkCurrent, checkCurrent, checkCurrent, checkCurrent, checkCurrent, checkCurrent, checkCurrent, checkPermanentLimit, checkPermanentLimit, checkTemporary, checkTemporary, checkVoltage, checkVoltage, checkVoltage, checkVoltage, checkVoltageAngle, checkVoltageAngle, checkVoltageAngle, toLimitViolationType
-
Constructor Details
-
AbstractContingencyBlindDetector
public AbstractContingencyBlindDetector()
-
-
Method Details
-
checkCurrent
Checks whether the 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.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.
-
checkCurrent
public void checkCurrent(ThreeWindingsTransformer transformer, ThreeSides side, Consumer<LimitViolation> consumer) Checks whether the current value on the specified side of the specifiedThreeWindingsTransformer
should be considered as aLimitViolation
or not. In case it should, feeds the consumer with it.This implementation takes the current value to be checked from the Network.
- Specified by:
checkCurrent
in interfaceLimitViolationDetector
- Parameters:
transformer
- The three windings transformer on which the current must be checked.side
- The side of the three windings transformer on which the current must be checked.consumer
- Will be fed with possibly created limit violations.
-
checkCurrentDc
public void checkCurrentDc(Branch branch, TwoSides side, double dcPowerFactor, Consumer<LimitViolation> consumer) Checks whether the 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. In this DC power flow mode, the current is computed using the DC power factor if necessary.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.
-
checkCurrentDc
public void checkCurrentDc(ThreeWindingsTransformer transformer, ThreeSides side, double dcPowerFactor, Consumer<LimitViolation> consumer) Checks whether the current value on the specified side of the specifiedThreeWindingsTransformer
should be considered as aLimitViolation
or not. 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.This implementation computes the current value from the power value, if current is not provided (NaN).
- Specified by:
checkCurrentDc
in interfaceLimitViolationDetector
- Parameters:
transformer
- The three windings transformer on which the current must be checked.side
- The side of the three windings transformer 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
Checks whether the voltage value on the specifiedBus
should be considered as aLimitViolation
or not. In case it should, feeds the consumer with it.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
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.
-
checkVoltageAngle
public void checkVoltageAngle(VoltageAngleLimit voltageAngleLimit, Consumer<LimitViolation> consumer) Checks whether the voltage angle difference between the TerminalRefs defined on the specifiedVoltageAngleLimit
should be considered as aLimitViolation
or not. In case it should, feeds the consumer with it.This implementation takes the voltageAngle difference to be checked from the Network.
- Specified by:
checkVoltageAngle
in interfaceLimitViolationDetector
- Parameters:
voltageAngleLimit
- The voltageAngleLimit defining the TerminalRefs on which the angle difference must be checked.consumer
- Will be fed with possibly created limit violations.
-
checkCurrent
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.
-
checkCurrent
Description copied from interface:LimitViolationDetector
Checks whether the current value on both sides of the specifiedThreeWindingsTransformer
should be considered asLimitViolation
(s). In case it should, feeds the consumer with it.- Specified by:
checkCurrent
in interfaceLimitViolationDetector
- Parameters:
transformer
- The three windings transformer on which the current must be checked.consumer
- Will be fed with possibly created limit violations.
-
checkCurrentDc
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.
-
checkCurrentDc
public void checkCurrentDc(ThreeWindingsTransformer transformer, double dcPowerFactor, Consumer<LimitViolation> consumer) Description copied from interface:LimitViolationDetector
Checks whether the current value on both sides of the specifiedThreeWindingsTransformer
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:
transformer
- The three windings transformer 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
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
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.
-