Class LimitViolationDetection

java.lang.Object
com.powsybl.security.LimitViolationDetection

public final class LimitViolationDetection extends Object
Author:
Olivier Perrin <olivier.perrin at rte-france.com>
  • 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 specified Network should be considered as LimitViolations. 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 specified Network should be considered as LimitViolations. 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

      public static double getTerminalIOrAnApproximation(Terminal terminal, double dcPowerFactor)
    • toLimitViolationType

      public static LimitViolationType toLimitViolationType(LimitType type)
      Helper function to convert a limit type to a limit violation type
      Parameters:
      type - The limit type to convert.
      Returns:
      The matching LimitViolationTYpe
    • createViolationLocation

      public static ViolationLocation createViolationLocation(Bus bus)