Class SecurityAnalysisResultHandler
- java.lang.Object
-
- com.powsybl.action.simulator.loadflow.DefaultLoadFlowActionSimulatorObserver
-
- com.powsybl.action.simulator.tools.AbstractSecurityAnalysisResultBuilder
-
- com.powsybl.action.simulator.loadflow.SecurityAnalysisResultHandler
-
- All Implemented Interfaces:
LoadFlowActionSimulatorObserver
public class SecurityAnalysisResultHandler extends AbstractSecurityAnalysisResultBuilder
Observer which executes a list of handlers ofSecurityAnalysisResult
once the simulation is finished.- Author:
- Sylvain Leclerc
-
-
Constructor Summary
Constructors Constructor Description SecurityAnalysisResultHandler()
SecurityAnalysisResultHandler(Collection<Consumer<SecurityAnalysisResult>> handlers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityAnalysisResultHandler
add(Consumer<SecurityAnalysisResult> handler)
void
onFinalStateResult(SecurityAnalysisResult result)
-
Methods inherited from class com.powsybl.action.simulator.tools.AbstractSecurityAnalysisResultBuilder
afterAction, afterPostContingencyAnalysis, afterPreContingencyAnalysis, beforePreContingencyAnalysis, loadFlowConverged, loadFlowDiverged
-
Methods inherited from class com.powsybl.action.simulator.loadflow.DefaultLoadFlowActionSimulatorObserver
afterApplyTest, afterTest, beforeAction, beforeApplyTest, beforePostContingencyAnalysis, beforeTest, divergedAfterTest, maxIterationsReached, noMoreViolations, noMoreViolationsAfterTest, postContingencyAnalysisNetworkLoaded, roundBegin, roundEnd, ruleChecked, violationsAfterTest, violationsAnymoreAndNoRulesMatch
-
-
-
-
Constructor Detail
-
SecurityAnalysisResultHandler
public SecurityAnalysisResultHandler()
-
SecurityAnalysisResultHandler
public SecurityAnalysisResultHandler(Collection<Consumer<SecurityAnalysisResult>> handlers)
-
-
Method Detail
-
add
public SecurityAnalysisResultHandler add(Consumer<SecurityAnalysisResult> handler)
-
onFinalStateResult
public void onFinalStateResult(SecurityAnalysisResult result)
- Specified by:
onFinalStateResult
in classAbstractSecurityAnalysisResultBuilder
-
-