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

com.powsybl.cim1.converter.CIM1ConverterConfig Maven / Gradle / Ivy

There is a newer version: 2.4.1
Show newest version
/**
 * Copyright (c) 2016, All partners of the iTesla project (http://www.itesla-project.eu/consortium)
 * 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/.
 */
package com.powsybl.cim1.converter;

import com.powsybl.iidm.network.Country;

import java.util.List;
import java.util.Objects;

/**
 * @author Geoffroy Jamgotchian 
 */
class CIM1ConverterConfig {

    private final boolean invertVoltageStepIncrementOutOfPhase;

    private final Country defaultCountry;

    private final CIM1NamingStrategyFactory namingStrategyFactory;

    private final List substationIdExcludedFromMapping;

    CIM1ConverterConfig(boolean invertVoltageStepIncrementOutOfPhase, Country defaultCountry,
                        List substationIdExcludedFromMapping, CIM1NamingStrategyFactory namingStrategyFactory) {
        this.invertVoltageStepIncrementOutOfPhase = invertVoltageStepIncrementOutOfPhase;
        this.defaultCountry = Objects.requireNonNull(defaultCountry);
        this.substationIdExcludedFromMapping = Objects.requireNonNull(substationIdExcludedFromMapping);
        this.namingStrategyFactory = Objects.requireNonNull(namingStrategyFactory);
    }

    boolean isInvertVoltageStepIncrementOutOfPhase() {
        return invertVoltageStepIncrementOutOfPhase;
    }

    Country getDefaultCountry() {
        return defaultCountry;
    }

    public List getSubstationIdExcludedFromMapping() {
        return substationIdExcludedFromMapping;
    }

    CIM1NamingStrategyFactory getNamingStrategyFactory() {
        return namingStrategyFactory;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy