-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Security analysis API + simple implementation based on load flow + co…
…mmand line tool
- Loading branch information
Showing
13 changed files
with
534 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
security-analysis/src/main/java/eu/itesla_project/security/PostContingencyResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* Copyright (c) 2016, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package eu.itesla_project.security; | ||
|
||
import eu.itesla_project.contingency.Contingency; | ||
|
||
import java.util.List; | ||
import java.util.Objects; | ||
|
||
/** | ||
* @author Geoffroy Jamgotchian <geoffroy.jamgotchian@ at rte-france.com> | ||
*/ | ||
public class PostContingencyResult extends PreContingencyResult { | ||
|
||
private final Contingency contingency; | ||
|
||
public PostContingencyResult(Contingency contingency, boolean computationOk, List<LimitViolation> limitViolations) { | ||
super(computationOk, limitViolations); | ||
this.contingency = Objects.requireNonNull(contingency); | ||
} | ||
|
||
public Contingency getContingency() { | ||
return contingency; | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
security-analysis/src/main/java/eu/itesla_project/security/PreContingencyResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* Copyright (c) 2016, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package eu.itesla_project.security; | ||
|
||
import java.util.List; | ||
import java.util.Objects; | ||
|
||
/** | ||
* @author Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com> | ||
*/ | ||
public class PreContingencyResult { | ||
|
||
private final boolean computationOk; | ||
|
||
private final List<LimitViolation> limitViolations; | ||
|
||
public PreContingencyResult(boolean computationOk, List<LimitViolation> limitViolations) { | ||
this.computationOk = computationOk; | ||
this.limitViolations = Objects.requireNonNull(limitViolations); | ||
} | ||
|
||
public boolean isComputationOk() { | ||
return computationOk; | ||
} | ||
|
||
public List<LimitViolation> getLimitViolations() { | ||
return limitViolations; | ||
} | ||
} |
198 changes: 0 additions & 198 deletions
198
security-analysis/src/main/java/eu/itesla_project/security/RunSecurityAnalysisTool.java
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
security-analysis/src/main/java/eu/itesla_project/security/SecurityAnalysis.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* Copyright (c) 2016, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package eu.itesla_project.security; | ||
|
||
import eu.itesla_project.contingency.ContingenciesProvider; | ||
import eu.itesla_project.loadflow.api.LoadFlowParameters; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
/** | ||
* @author Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com> | ||
*/ | ||
public interface SecurityAnalysis { | ||
|
||
CompletableFuture<SecurityAnalysisResult> runAsync(ContingenciesProvider contingenciesProvider, String workingStateId, LoadFlowParameters parameters); | ||
|
||
CompletableFuture<SecurityAnalysisResult> runAsync(ContingenciesProvider contingenciesProvider, String workingStateId); | ||
|
||
CompletableFuture<SecurityAnalysisResult> runAsync(ContingenciesProvider contingenciesProvider); | ||
} |
19 changes: 19 additions & 0 deletions
19
security-analysis/src/main/java/eu/itesla_project/security/SecurityAnalysisFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* Copyright (c) 2016, RTE (http://www.rte-france.com) | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
package eu.itesla_project.security; | ||
|
||
import eu.itesla_project.computation.ComputationManager; | ||
import eu.itesla_project.iidm.network.Network; | ||
|
||
/** | ||
* @author Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com> | ||
*/ | ||
public interface SecurityAnalysisFactory { | ||
|
||
SecurityAnalysis create(Network network, ComputationManager computationManager, int priority); | ||
|
||
} |
Oops, something went wrong.