Package com.powsybl.iidm.network.impl
Class NetworkFactoryImpl
java.lang.Object
com.powsybl.iidm.network.impl.NetworkFactoryImpl
- All Implemented Interfaces:
NetworkFactory
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateNetwork
(String id, String sourceFormat) Create a network.Create a network as the result of the merge of the given networks.Create a network as the result of the merge of the given networks.
-
Constructor Details
-
NetworkFactoryImpl
public NetworkFactoryImpl()
-
-
Method Details
-
createNetwork
Description copied from interface:NetworkFactory
Create a network.- Specified by:
createNetwork
in interfaceNetworkFactory
- Parameters:
id
- id of the networksourceFormat
- source format- Returns:
- a network
-
merge
Description copied from interface:NetworkFactory
Create a network as the result of the merge of the given networks. Each given network is represented as a subnetwork in the resulting network. As a result of that merge, the given networks are empty at the end of the call.- Specified by:
merge
in interfaceNetworkFactory
- Parameters:
id
- id of the networknetworks
- the networks to merge- Returns:
- the merged network
-
merge
Description copied from interface:NetworkFactory
Create a network as the result of the merge of the given networks. Each given network is represented as a subnetwork in the resulting network. As a result of that merge, the given networks are empty at the end of the call. Note that, as no id is given, the id of the network created is generated.- Specified by:
merge
in interfaceNetworkFactory
- Parameters:
networks
- the networks to merge- Returns:
- the merged network
-