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

com.powsybl.contingency.contingency.list.TieLineCriterionContingencyList Maven / Gradle / Ivy

There is a newer version: 6.6.0
Show newest version
/**
 * Copyright (c) 2023, RTE (http://www.rte-france.com)
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 * SPDX-License-Identifier: MPL-2.0
 */
package com.powsybl.contingency.contingency.list;

import com.powsybl.iidm.criteria.PropertyCriterion;
import com.powsybl.iidm.criteria.RegexCriterion;
import com.powsybl.iidm.criteria.SingleNominalVoltageCriterion;
import com.powsybl.iidm.criteria.TwoCountriesCriterion;
import com.powsybl.iidm.network.IdentifiableType;

import java.util.List;

/**
 * @author Florian Dupuy {@literal }
 */
public class TieLineCriterionContingencyList extends AbstractEquipmentCriterionContingencyList {

    public static final String TYPE = "tieLineCriterion";
    private final TwoCountriesCriterion twoCountriesCriterion;
    private final SingleNominalVoltageCriterion singleNominalVoltageCriterion;

    public TieLineCriterionContingencyList(String name,
                                           TwoCountriesCriterion twoCountriesCriterion,
                                           SingleNominalVoltageCriterion singleNominalVoltageCriterion,
                                           List propertyCriteria, RegexCriterion regexCriterion) {
        super(name, IdentifiableType.TIE_LINE, propertyCriteria, regexCriterion);
        this.twoCountriesCriterion = twoCountriesCriterion;
        this.singleNominalVoltageCriterion = singleNominalVoltageCriterion;
    }

    @Override
    public String getType() {
        return TYPE;
    }

    @Override
    public TwoCountriesCriterion getCountryCriterion() {
        return twoCountriesCriterion;
    }

    @Override
    public SingleNominalVoltageCriterion getNominalVoltageCriterion() {
        return singleNominalVoltageCriterion;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy