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

com.farao_community.farao.cse.data.ntc2.Ntc2 Maven / Gradle / Ivy

There is a newer version: 1.38.0
Show 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