Skip to content

Security Analysis Listener #1266

@jeandemanged

Description

@jeandemanged

Describe the current behavior

No listener is available in the security analysis.

Describe the expected behavior

Listeners can be injected in the security analysis using the Java ServiceLoader mechanism (same as e.g. LfNetworkLoaderPostProcessor).

Proposed design:

  • SecurityAnalysisListener interface, with methods:
    • onBasecaseSolved(LfNetwork)
    • onContingencySolved(LfNetwork, LfContingency lfContingency, Contingency contingency)
    • onOperatorStrategySolved(LfNetwork, LfContingency lfContingency, Contingency contingency, OperatorStrategy operatorStrategy)

the callbacks are called in AbstractSecurityAnalysis#runSimulations

Describe the motivation

Being able to inject externally custom detailled reports about the network state for contingency and operator strategy states.

Extra Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions