Interface NetworkFactory

All Known Implementing Classes:
NetworkFactoryImpl

public interface NetworkFactory
Author:
Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
  • Method Details

    • createNetwork

      Network createNetwork(String id, String sourceFormat)
      Create a network.
      Parameters:
      id - id of the network
      sourceFormat - source format
      Returns:
      a network
    • merge

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

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

      static NetworkFactory find(String name)
      Find a NetworkFactory instance base on its name.
      Parameters:
      name - name of the NetworkFactory
      Returns:
      NetworkFactory instance with the given name.
    • findDefault

      static NetworkFactory findDefault()
      Find default NetworkFactory instance.
      Returns:
      default NetworkFactory instance.
    • create

      @Deprecated(since="2.6.0") static Network create(String id, String sourceFormat)
      Deprecated.