Package com.powsybl.security
Class LimitViolationDetection
java.lang.Object
com.powsybl.security.LimitViolationDetection
- Author:
- Olivier Perrin <olivier.perrin at rte-france.com>
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkAll
(Network network, Set<LoadingLimitType> currentLimitTypes, LimitsComputer<Identifiable<?>, LoadingLimits> limitsComputer, Consumer<LimitViolation> consumer) Checks whether the current and voltage values on all equipments of the specifiedNetwork
should be considered asLimitViolation
s.static void
checkAllDc
(Network network, double dcPowerFactor, Set<LoadingLimitType> currentLimitTypes, LimitsComputer<Identifiable<?>, LoadingLimits> limitsComputer, Consumer<LimitViolation> consumer) Checks whether the current and voltage values on all equipments of the specifiedNetwork
should be considered asLimitViolation
s.static ViolationLocation
static double
getTerminalIOrAnApproximation
(Terminal terminal, double dcPowerFactor) static LimitViolationType
Helper function to convert a limit type to a limit violation type
-
Method Details
-
checkAll
public static void checkAll(Network network, Set<LoadingLimitType> currentLimitTypes, LimitsComputer<Identifiable<?>, LoadingLimits> limitsComputer, Consumer<LimitViolation> consumer) 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.- Parameters:
network
- The network on which physical values must be checked.currentLimitTypes
- The current limit type to consider.limitsComputer
- The computer of the limit reductions to apply.consumer
- Will be fed with possibly created limit violations.
-
checkAllDc
public static void checkAllDc(Network network, double dcPowerFactor, Set<LoadingLimitType> currentLimitTypes, LimitsComputer<Identifiable<?>, LoadingLimits> limitsComputer, Consumer<LimitViolation> consumer) 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.- Parameters:
network
- The network on which physical values must be checked.dcPowerFactor
- The DC power factor used to convert the active power into current.currentLimitTypes
- The current limit type to consider.limitsComputer
- The computer of the limit reductions to apply.consumer
- Will be fed with possibly created limit violations.
-
getTerminalIOrAnApproximation
-
toLimitViolationType
Helper function to convert a limit type to a limit violation type- Parameters:
type
- The limit type to convert.- Returns:
- The matching LimitViolationTYpe
-
createViolationLocation
-