Package com.powsybl.security
Class SecurityAnalysisConfig
- java.lang.Object
-
- com.powsybl.security.SecurityAnalysisConfig
-
public class SecurityAnalysisConfig extends Object
Configuration for aSecurityAnalysis
. It might be loaded from aPlatformConfig
.- Author:
- Sylvain Leclerc
-
-
Constructor Summary
Constructors Constructor Description SecurityAnalysisConfig()
SecurityAnalysisConfig(String preprocessorName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
getPreprocessorName()
The name of the security analysis input preprocessor to be run before the actual computation.static SecurityAnalysisConfig
load()
Loads the security analysis configuration defined in the defaultPlatformConfig
.static SecurityAnalysisConfig
load(PlatformConfig platformConfig)
Loads the security analysis configuration defined in the specifiedPlatformConfig
.
-
-
-
Constructor Detail
-
SecurityAnalysisConfig
public SecurityAnalysisConfig()
-
SecurityAnalysisConfig
public SecurityAnalysisConfig(String preprocessorName)
-
-
Method Detail
-
getPreprocessorName
public Optional<String> getPreprocessorName()
The name of the security analysis input preprocessor to be run before the actual computation. If empty, default behaviour will be used.- Returns:
-
load
public static SecurityAnalysisConfig load()
Loads the security analysis configuration defined in the defaultPlatformConfig
.- Returns:
- the security analysis config loaded from the default platform config.
-
load
public static SecurityAnalysisConfig load(PlatformConfig platformConfig)
Loads the security analysis configuration defined in the specifiedPlatformConfig
.- Parameters:
platformConfig
- the platform configuration from which the security analysis config should be loaded.- Returns:
- the security analysis config loaded from the specified platform config.
-
-