Class CountryArea
java.lang.Object
com.powsybl.balances_adjustment.util.CountryArea
- All Implemented Interfaces:
NetworkArea
- Author:
- Ameni Walha <ameni.walha at rte-france.com>, Sebastien Murgey <sebastien.murgey at rte-france.com>, Mathieu Bague <mathieu.bague at rte-france.com>
-
Constructor Summary
ConstructorDescriptionCountryArea
(com.powsybl.iidm.network.Network network, List<com.powsybl.iidm.network.Country> countries) -
Method Summary
Modifier and TypeMethodDescriptionCollection<com.powsybl.iidm.network.Bus>
List<com.powsybl.iidm.network.Country>
double
getLeavingFlowToCountry
(CountryArea otherCountryArea) double
Computes the net position of the area on a given network object.
-
Constructor Details
-
CountryArea
public CountryArea(com.powsybl.iidm.network.Network network, List<com.powsybl.iidm.network.Country> countries)
-
-
Method Details
-
getCountries
-
getNetPosition
public double getNetPosition()Description copied from interface:NetworkArea
Computes the net position of the area on a given network object. Net position sign convention is positive when flows are leaving the area (export) and negative when flows feed the area (import).- Specified by:
getNetPosition
in interfaceNetworkArea
- Returns:
- Sum of the flows leaving the area
-
getContainedBusViewBuses
- Specified by:
getContainedBusViewBuses
in interfaceNetworkArea
-
getLeavingFlowToCountry
-