Package com.powsybl.computation
Class ExecutionEnvironment
- java.lang.Object
-
- com.powsybl.computation.ExecutionEnvironment
-
public class ExecutionEnvironment extends Object
Defines the execution environment for commands to be executed:- a map of environment variables
- a prefix for the execution working directory
- a debug indicator
- Author:
- Geoffroy Jamgotchian
-
-
Constructor Summary
Constructors Constructor Description ExecutionEnvironment(Map<String,String> variables, String workingDirPrefix, boolean debug)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExecutionEnvironment
createDefault()
Map<String,String>
getVariables()
String
getWorkingDirPrefix()
boolean
isDebug()
ExecutionEnvironment
setDebug(boolean debug)
ExecutionEnvironment
setVariables(Map<String,String> variables)
ExecutionEnvironment
setWorkingDirPrefix(String workingDirPrefix)
-
-
-
Method Detail
-
createDefault
public static ExecutionEnvironment createDefault()
-
setVariables
public ExecutionEnvironment setVariables(Map<String,String> variables)
-
getWorkingDirPrefix
public String getWorkingDirPrefix()
-
setWorkingDirPrefix
public ExecutionEnvironment setWorkingDirPrefix(String workingDirPrefix)
-
isDebug
public boolean isDebug()
-
setDebug
public ExecutionEnvironment setDebug(boolean debug)
-
-