Interface LoadFlowProvider

    • Method Detail

      • run

        default CompletableFuture<LoadFlowResult> run​(Network network,
                                                      ComputationManager computationManager,
                                                      String workingVariantId,
                                                      LoadFlowParameters parameters)
        Run a loadflow on variant workingVariantId of network delegating external program execution to computationManager if necessary and using loadflow execution parameters. This method is expected to be stateless so that it can be call simultaneously with different arguments (a different network for instance) without any concurrency issue.
        Parameters:
        network - the network
        computationManager - a computation manager to external program execution
        workingVariantId - variant id of the network
        parameters - load flow execution parameters
        Returns:
        a CompletableFuture on {@link LoadFlowResult]
      • run

        default CompletableFuture<LoadFlowResult> run​(Network network,
                                                      ComputationManager computationManager,
                                                      String workingVariantId,
                                                      LoadFlowParameters parameters,
                                                      Reporter reporter)
        Run a loadflow on variant workingVariantId of network delegating external program execution to computationManager if necessary and using loadflow execution parameters. This method is expected to be stateless so that it can be call simultaneously with different arguments (a different network for instance) without any concurrency issue.
        Parameters:
        network - the network
        computationManager - a computation manager to external program execution
        workingVariantId - variant id of the network
        parameters - load flow execution parameters
        reporter - the reporter used for functional logs
        Returns:
        a CompletableFuture on {@link LoadFlowResult]
      • getSpecificParametersSerializer

        default Optional<ExtensionJsonSerializer> getSpecificParametersSerializer()
        The serializer for implementation-specific parameters, or Optional.empty() if the implementation does not have any specific parameters, or does not support JSON serialization.

        Note that the actual serializer type should be ExtensionJsonSerializer<LoadFlowParameters, MyParametersExtension> where MyParametersExtension is the specific parameters class.

        Returns:
        The serializer for implementation-specific parameters.
      • loadSpecificParameters

        default Optional<Extension<LoadFlowParameters>> loadSpecificParameters​(PlatformConfig config)
        Reads implementation-specific parameters from platform config, or return Optional.empty() if the implementation does not have any specific parameters, or does not support loading from config.
        Returns:
        The specific parameters read from platform config.
      • loadSpecificParameters

        default Optional<Extension<LoadFlowParameters>> loadSpecificParameters​(Map<String,​String> properties)
        Reads implementation-specific parameters from a Map, or return Optional.empty() if the implementation does not have any specific parameters, or does not support loading from config.
        Returns:
        The specific parameters read from Map.
      • getSpecificParametersNames

        default List<String> getSpecificParametersNames()
        get the list of the specific parameters names.
        Returns:
        the list of the specific parameters names.