Package com.powsybl.security
Class SecurityAnalysisResultBuilder
- java.lang.Object
-
- com.powsybl.security.SecurityAnalysisResultBuilder
-
public class SecurityAnalysisResultBuilder extends Object
Facilitates the creation of security analysis results.Encapsulates filtering of limit violations with a provided
LimitViolationFilter
, as well as notifications toSecurityAnalysisInterceptor
s.- Author:
- Sylvain Leclerc
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SecurityAnalysisResultBuilder.AbstractLimitViolationsResultBuilder<B extends SecurityAnalysisResultBuilder.AbstractLimitViolationsResultBuilder<B>>
Base class for the pre and post contingency builders.class
SecurityAnalysisResultBuilder.OperatorStrategyResultBuilder
class
SecurityAnalysisResultBuilder.PostContingencyResultBuilder
class
SecurityAnalysisResultBuilder.PreContingencyResultBuilder
Builder for the pre-contingency result
-
Constructor Summary
Constructors Constructor Description SecurityAnalysisResultBuilder(LimitViolationFilter filter, SecurityAnalysisResultContext context)
SecurityAnalysisResultBuilder(LimitViolationFilter filter, SecurityAnalysisResultContext context, Collection<SecurityAnalysisInterceptor> interceptors)
-
Method Summary
-
-
-
Constructor Detail
-
SecurityAnalysisResultBuilder
public SecurityAnalysisResultBuilder(LimitViolationFilter filter, SecurityAnalysisResultContext context, Collection<SecurityAnalysisInterceptor> interceptors)
-
SecurityAnalysisResultBuilder
public SecurityAnalysisResultBuilder(LimitViolationFilter filter, SecurityAnalysisResultContext context)
-
-
Method Detail
-
preContingency
public SecurityAnalysisResultBuilder.PreContingencyResultBuilder preContingency()
Initiates the creation of the result for N situation.- Returns:
- a
SecurityAnalysisResultBuilder.PreContingencyResultBuilder
instance.
-
preContingency
public SecurityAnalysisResultBuilder.PreContingencyResultBuilder preContingency(SecurityAnalysisResultContext preContingencyResultContext)
Initiates the creation of the result for N situation- Parameters:
preContingencyResultContext
- the context used when create the result- Returns:
- a
SecurityAnalysisResultBuilder.PreContingencyResultBuilder
instance.
-
contingency
public SecurityAnalysisResultBuilder.PostContingencyResultBuilder contingency(Contingency contingency)
Initiates the creation of the result for oneContingency
.- Parameters:
contingency
- the contingency for which a result should be created- Returns:
- a
SecurityAnalysisResultBuilder.PostContingencyResultBuilder
instance.
-
contingency
public SecurityAnalysisResultBuilder.PostContingencyResultBuilder contingency(Contingency contingency, SecurityAnalysisResultContext postContingencyResultContext)
Initiates the creation of the result for oneContingency
- Parameters:
contingency
- the contingency for which a result should be createdpostContingencyResultContext
- the context used when create the result- Returns:
- a
SecurityAnalysisResultBuilder.PostContingencyResultBuilder
instance.
-
operatorStrategy
public SecurityAnalysisResultBuilder.OperatorStrategyResultBuilder operatorStrategy(OperatorStrategy strategy)
Initiates the creation of the result for oneOperatorStrategy
.- Parameters:
strategy
- the operator strategy for which a result should be created- Returns:
- a
SecurityAnalysisResultBuilder.OperatorStrategyResultBuilder
instance.
-
operatorStrategy
public SecurityAnalysisResultBuilder.OperatorStrategyResultBuilder operatorStrategy(OperatorStrategy strategy, SecurityAnalysisResultContext strategyContext)
Initiates the creation of the result for oneOperatorStrategy
.- Parameters:
strategy
- the operator strategy for which a result should be created- Returns:
- a
SecurityAnalysisResultBuilder.OperatorStrategyResultBuilder
instance.
-
build
public SecurityAnalysisResult build()
Finalizes the result.- Returns:
- the N situation result builder
-
-