Package com.powsybl.security
Class AbstractSecurityAnalysis
- java.lang.Object
-
- com.powsybl.security.AbstractSecurityAnalysis
-
- All Implemented Interfaces:
SecurityAnalysis
- Direct Known Subclasses:
SecurityAnalysisImpl
public abstract class AbstractSecurityAnalysis extends Object implements SecurityAnalysis
Implements some common methods of interfaceSecurityAnalysis
, and provides aSecurityAnalysisResultBuilder
to ease creation of results.- Author:
- Teofil Calin BANC
-
-
Field Summary
Fields Modifier and Type Field Description protected List<SecurityAnalysisInterceptor>
interceptors
protected Network
network
protected LimitViolationDetector
violationDetector
protected LimitViolationFilter
violationFilter
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSecurityAnalysis(Network network, LimitViolationDetector detector, LimitViolationFilter filter)
protected
AbstractSecurityAnalysis(Network network, LimitViolationFilter violationFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInterceptor(SecurityAnalysisInterceptor interceptor)
protected SecurityAnalysisResultBuilder
createResultBuilder(String initialWorkingStateId)
boolean
removeInterceptor(SecurityAnalysisInterceptor interceptor)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.powsybl.security.SecurityAnalysis
run, runWithLog
-
-
-
-
Field Detail
-
network
protected final Network network
-
violationDetector
protected final LimitViolationDetector violationDetector
-
violationFilter
protected final LimitViolationFilter violationFilter
-
interceptors
protected final List<SecurityAnalysisInterceptor> interceptors
-
-
Constructor Detail
-
AbstractSecurityAnalysis
protected AbstractSecurityAnalysis(Network network, LimitViolationFilter violationFilter)
-
AbstractSecurityAnalysis
protected AbstractSecurityAnalysis(Network network, LimitViolationDetector detector, LimitViolationFilter filter)
-
-
Method Detail
-
addInterceptor
public void addInterceptor(SecurityAnalysisInterceptor interceptor)
- Specified by:
addInterceptor
in interfaceSecurityAnalysis
-
removeInterceptor
public boolean removeInterceptor(SecurityAnalysisInterceptor interceptor)
- Specified by:
removeInterceptor
in interfaceSecurityAnalysis
-
createResultBuilder
protected SecurityAnalysisResultBuilder createResultBuilder(String initialWorkingStateId)
-
-