Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle loadflow parameters. #74

Merged
merged 4 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
-
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: Do we have documentation somewhere where we document which micro-service talks to which? If yes, we need to update it as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this shema : https://github.com/gridsuite/documentation. But it's outdated a long time ago .
This file is only for local devs purposes.

name: security-analysis-server
base-uri: http://localhost:5023
base-uri: http://localhost:5023
-
name: loadflow-server
base-uri: http://localhost:5008
Loading