Skip to content

Commit

Permalink
Handle loadflow parameters. (#74)
Browse files Browse the repository at this point in the history

Signed-off-by: AAJELLAL <[email protected]>
  • Loading branch information
AAJELLAL authored Feb 13, 2024
1 parent a90530e commit 9300bab
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ public DirectoryService(
DIRECTORY, this,
CASE, caseService,
ParametersType.VOLTAGE_INIT_PARAMETERS.name(), parametersService,
ParametersType.SECURITY_ANALYSIS_PARAMETERS.name(), parametersService);
ParametersType.SECURITY_ANALYSIS_PARAMETERS.name(), parametersService,
ParametersType.LOADFLOW_PARAMETERS.name(), parametersService);
}

public void setDirectoryServerBaseUri(String directoryServerBaseUri) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public class ParametersService implements IDirectoryElementsService {

private DirectoryService directoryService;

private final Map<ParametersType, String> genericParametersServices = Map.of(ParametersType.VOLTAGE_INIT_PARAMETERS, "voltage-init-server", ParametersType.SECURITY_ANALYSIS_PARAMETERS, "security-analysis-server");
private final Map<ParametersType, String> genericParametersServices = Map.of(ParametersType.VOLTAGE_INIT_PARAMETERS, "voltage-init-server", ParametersType.SECURITY_ANALYSIS_PARAMETERS, "security-analysis-server",
ParametersType.LOADFLOW_PARAMETERS, "loadflow-server");

private RemoteServicesProperties remoteServicesProperties;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
public enum ParametersType {

VOLTAGE_INIT_PARAMETERS,
SECURITY_ANALYSIS_PARAMETERS
SECURITY_ANALYSIS_PARAMETERS,
LOADFLOW_PARAMETERS

}
5 changes: 4 additions & 1 deletion src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ gridsuite:
base-uri: http://localhost:5038
-
name: security-analysis-server
base-uri: http://localhost:5023
base-uri: http://localhost:5023
-
name: loadflow-server
base-uri: http://localhost:5008

0 comments on commit 9300bab

Please sign in to comment.