Class DefaultLimitViolationDetector

    • Constructor Detail

      • 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 specified Branch should be considered as a LimitViolation 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.
      • checkVoltage

        public void checkVoltage​(Bus bus,
                                 double value,
                                 Consumer<LimitViolation> consumer)
        Description copied from interface: LimitViolationDetector
        Checks whether the specified voltage value on the specified Bus should be considered as a LimitViolation 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.