All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.powsybl.python.security.LimitViolationContext Maven / Gradle / Ivy

package com.powsybl.python.security;

import com.powsybl.security.LimitViolation;

import java.util.Objects;

/**
 * @author Etienne Lesot {@literal }
 */
public class LimitViolationContext extends LimitViolation {

    private final String contingencyId;

    public LimitViolationContext(String contingencyId, LimitViolation limitViolation) {
        super(limitViolation.getSubjectId(), limitViolation.getSubjectName(), limitViolation.getLimitType(),
            limitViolation.getLimitName(), limitViolation.getAcceptableDuration(), limitViolation.getLimit(),
            limitViolation.getLimitReduction(), limitViolation.getValue(), limitViolation.getSide());
        this.contingencyId = Objects.requireNonNull(contingencyId);
    }

    public String getContingencyId() {
        return contingencyId;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy