com.powsybl.cim1.converter.CIM1ConverterConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powsybl-cim1-converter Show documentation
Show all versions of powsybl-cim1-converter Show documentation
A converter implementation for CIM ENTSO-E V1 networks
/**
* 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;
}
}