com.farao_community.farao.cse.data.ntc2.Ntc2 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gridcapa-cse-data Show documentation
Show all versions of gridcapa-cse-data Show documentation
Module that manages specific data format for CSE processes
The newest version!
/*
* Copyright (c) 2021, 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/.
*/
package com.farao_community.farao.cse.data.ntc2;
import com.powsybl.openrao.commons.EICode;
import com.powsybl.iidm.network.Country;
import java.util.Map;
/**
* @author Belgacem Najjari {@literal }
* @author Joris Mancini {@literal }
*/
public final class Ntc2 {
private final Map exchanges;
public Ntc2(Map ntc2) {
this.exchanges = ntc2;
}
public Map getExchanges() {
return exchanges;
}
Double getExchange(Country country) {
return exchanges.get(new EICode(country).getAreaCode());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy