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

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

There is a newer version: 6.6.0
Show newest version
/**
 * Copyright (c) 2022, 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.SingleCountryCriterion;
import com.powsybl.iidm.criteria.TwoNominalVoltageCriterion;
import com.powsybl.iidm.network.IdentifiableType;

import java.util.List;

/**
 * @author Etienne Lesot {@literal }
 */
public class TwoWindingsTransformerCriterionContingencyList extends AbstractEquipmentCriterionContingencyList {

    public static final String TYPE = "twoWindingsTransformerCriterion";
    private final SingleCountryCriterion singleCountryCriterion;
    private final TwoNominalVoltageCriterion twoNominalVoltageCriterion;

    public TwoWindingsTransformerCriterionContingencyList(String name,
                                                          SingleCountryCriterion singleCountryCriterion,
                                                          TwoNominalVoltageCriterion twoNominalVoltageCriterion,
                                                          List propertyCriteria, RegexCriterion regexCriterion) {
        super(name, IdentifiableType.TWO_WINDINGS_TRANSFORMER, propertyCriteria, regexCriterion);
        this.singleCountryCriterion = singleCountryCriterion;
        this.twoNominalVoltageCriterion = twoNominalVoltageCriterion;
    }

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

    @Override
    public SingleCountryCriterion getCountryCriterion() {
        return singleCountryCriterion;
    }

    @Override
    public TwoNominalVoltageCriterion getNominalVoltageCriterion() {
        return twoNominalVoltageCriterion;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy