Class LoadFlowActionSimulatorLogPrinter
- java.lang.Object
-
- com.powsybl.action.simulator.loadflow.DefaultLoadFlowActionSimulatorObserver
-
- com.powsybl.action.simulator.loadflow.LoadFlowActionSimulatorLogPrinter
-
- All Implemented Interfaces:
LoadFlowActionSimulatorObserver
public class LoadFlowActionSimulatorLogPrinter extends DefaultLoadFlowActionSimulatorObserver
- Author:
- Geoffroy Jamgotchian
-
-
Constructor Summary
Constructors Constructor Description LoadFlowActionSimulatorLogPrinter(PrintStream out, PrintStream err, boolean verbose)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beforeAction(RunningContext runningContext, String actionId)
void
beforePostContingencyAnalysis(RunningContext runningContext)
void
beforePreContingencyAnalysis(RunningContext runningContext)
void
beforeTest(RunningContext runningContext, String actionId)
void
loadFlowConverged(RunningContext runningContext, List<LimitViolation> violations)
void
loadFlowDiverged(RunningContext runningContext)
void
maxIterationsReached(RunningContext runningContext)
void
noMoreViolations(RunningContext runningContext)
void
roundBegin(RunningContext runningContext)
void
ruleChecked(RunningContext runningContext, Rule rule, RuleEvaluationStatus status, Map<String,Object> variables, Map<String,Boolean> actions)
void
violationsAnymoreAndNoRulesMatch(RunningContext runningContext)
-
Methods inherited from class com.powsybl.action.simulator.loadflow.DefaultLoadFlowActionSimulatorObserver
afterAction, afterApplyTest, afterPostContingencyAnalysis, afterPreContingencyAnalysis, afterTest, beforeApplyTest, divergedAfterTest, noMoreViolationsAfterTest, postContingencyAnalysisNetworkLoaded, roundEnd, violationsAfterTest
-
-
-
-
Constructor Detail
-
LoadFlowActionSimulatorLogPrinter
public LoadFlowActionSimulatorLogPrinter(PrintStream out, PrintStream err, boolean verbose)
-
-
Method Detail
-
beforePreContingencyAnalysis
public void beforePreContingencyAnalysis(RunningContext runningContext)
- Specified by:
beforePreContingencyAnalysis
in interfaceLoadFlowActionSimulatorObserver
- Overrides:
beforePreContingencyAnalysis
in classDefaultLoadFlowActionSimulatorObserver
-
beforePostContingencyAnalysis
public void beforePostContingencyAnalysis(RunningContext runningContext)
- Specified by:
beforePostContingencyAnalysis
in interfaceLoadFlowActionSimulatorObserver
- Overrides:
beforePostContingencyAnalysis
in classDefaultLoadFlowActionSimulatorObserver
-
roundBegin
public void roundBegin(RunningContext runningContext)
- Specified by:
roundBegin
in interfaceLoadFlowActionSimulatorObserver
- Overrides:
roundBegin
in classDefaultLoadFlowActionSimulatorObserver
-
loadFlowDiverged
public void loadFlowDiverged(RunningContext runningContext)
- Specified by:
loadFlowDiverged
in interfaceLoadFlowActionSimulatorObserver
- Overrides:
loadFlowDiverged
in classDefaultLoadFlowActionSimulatorObserver
-
loadFlowConverged
public void loadFlowConverged(RunningContext runningContext, List<LimitViolation> violations)
- Specified by:
loadFlowConverged
in interfaceLoadFlowActionSimulatorObserver
- Overrides:
loadFlowConverged
in classDefaultLoadFlowActionSimulatorObserver
-
ruleChecked
public void ruleChecked(RunningContext runningContext, Rule rule, RuleEvaluationStatus status, Map<String,Object> variables, Map<String,Boolean> actions)
- Specified by:
ruleChecked
in interfaceLoadFlowActionSimulatorObserver
- Overrides:
ruleChecked
in classDefaultLoadFlowActionSimulatorObserver
-
beforeAction
public void beforeAction(RunningContext runningContext, String actionId)
- Specified by:
beforeAction
in interfaceLoadFlowActionSimulatorObserver
- Overrides:
beforeAction
in classDefaultLoadFlowActionSimulatorObserver
-
beforeTest
public void beforeTest(RunningContext runningContext, String actionId)
- Specified by:
beforeTest
in interfaceLoadFlowActionSimulatorObserver
- Overrides:
beforeTest
in classDefaultLoadFlowActionSimulatorObserver
-
noMoreViolations
public void noMoreViolations(RunningContext runningContext)
- Specified by:
noMoreViolations
in interfaceLoadFlowActionSimulatorObserver
- Overrides:
noMoreViolations
in classDefaultLoadFlowActionSimulatorObserver
-
violationsAnymoreAndNoRulesMatch
public void violationsAnymoreAndNoRulesMatch(RunningContext runningContext)
- Specified by:
violationsAnymoreAndNoRulesMatch
in interfaceLoadFlowActionSimulatorObserver
- Overrides:
violationsAnymoreAndNoRulesMatch
in classDefaultLoadFlowActionSimulatorObserver
-
maxIterationsReached
public void maxIterationsReached(RunningContext runningContext)
- Specified by:
maxIterationsReached
in interfaceLoadFlowActionSimulatorObserver
- Overrides:
maxIterationsReached
in classDefaultLoadFlowActionSimulatorObserver
-
-