Package com.powsybl.security.distributed
Class SecurityAnalysisCommandOptions
- java.lang.Object
-
- com.powsybl.security.distributed.SecurityAnalysisCommandOptions
-
public class SecurityAnalysisCommandOptions extends Object
Utility class to programmatically generate an itools security-analysis command with its various options. Currently supported options are : - thePath
to case file - an optionalPath
to contingencies file - an optionalPath
to parameters file - an optionalPath
to output file - an optional format for the output file - a list of requested result extensions - a list of violation types of interest - an optional task count- Author:
- Sylvain Leclerc
-
-
Constructor Summary
Constructors Constructor Description SecurityAnalysisCommandOptions()
-
Method Summary
-
-
-
Method Detail
-
itoolsCommand
public SecurityAnalysisCommandOptions itoolsCommand(String itoolsCommand)
-
id
public SecurityAnalysisCommandOptions id(String id)
-
absolutePaths
public SecurityAnalysisCommandOptions absolutePaths(boolean absolutePaths)
-
caseFile
public SecurityAnalysisCommandOptions caseFile(Path caseFile)
-
contingenciesFile
public SecurityAnalysisCommandOptions contingenciesFile(Path contingenciesFile)
-
parametersFile
public SecurityAnalysisCommandOptions parametersFile(Path parametersFile)
-
taskCount
public SecurityAnalysisCommandOptions taskCount(int taskCount)
-
outputFile
public SecurityAnalysisCommandOptions outputFile(Function<Integer,Path> outputFile, String format)
-
logFile
public SecurityAnalysisCommandOptions logFile(Path logFile)
-
logFile
public SecurityAnalysisCommandOptions logFile(Function<Integer,Path> logFile)
-
outputFile
public SecurityAnalysisCommandOptions outputFile(Path outputFile, String format)
-
taskBasedOnIndex
public SecurityAnalysisCommandOptions taskBasedOnIndex(int taskCount)
-
task
public SecurityAnalysisCommandOptions task(Function<Integer,Partition> task)
-
task
public SecurityAnalysisCommandOptions task(Partition task)
-
resultExtension
public SecurityAnalysisCommandOptions resultExtension(String extensionName)
-
resultExtensions
public SecurityAnalysisCommandOptions resultExtensions(Collection<String> extensionNames)
-
violationType
public SecurityAnalysisCommandOptions violationType(LimitViolationType violationType)
-
violationTypes
public SecurityAnalysisCommandOptions violationTypes(Collection<LimitViolationType> violationTypes)
-
toCommand
public SimpleCommand toCommand()
-
-