Class NetworkFactoryImpl

java.lang.Object
com.powsybl.iidm.network.impl.NetworkFactoryImpl
All Implemented Interfaces:
NetworkFactory

public class NetworkFactoryImpl extends Object implements NetworkFactory
Author:
Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
  • Constructor Details

    • NetworkFactoryImpl

      public NetworkFactoryImpl()
  • Method Details

    • createNetwork

      public Network createNetwork(String id, String sourceFormat)
      Description copied from interface: NetworkFactory
      Create a network.
      Specified by:
      createNetwork in interface NetworkFactory
      Parameters:
      id - id of the network
      sourceFormat - source format
      Returns:
      a network
    • merge

      public Network merge(String id, Network... networks)
      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 interface NetworkFactory
      Parameters:
      id - id of the network
      networks - the networks to merge
      Returns:
      the merged network
    • merge

      public Network merge(Network... networks)
      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 interface NetworkFactory
      Parameters:
      networks - the networks to merge
      Returns:
      the merged network