Class ProcessModelState.ExecutionConfig
java.lang.Object
neqsim.process.processmodel.lifecycle.ProcessModelState.ExecutionConfig
- All Implemented Interfaces:
Serializable
- Enclosing class:
ProcessModelState
Execution configuration for ProcessModel.
- Version:
- 1.0
- Author:
- ESOL
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate intprivate intprivate booleanprivate doubleprivate static final longprivate Stringprivate doubleprivate doubleprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets flow tolerance.intGets max iterations.intGets the number of threads for parallel execution.doubleGets pressure tolerance.Gets the solver type.doubleGets temperature tolerance.doubleGets the generic convergence tolerance.booleanChecks if parallel execution is enabled.booleanChecks if optimized execution is enabled.voidsetFlowTolerance(double flowTolerance) Sets flow tolerance.voidsetMaxIterations(int maxIterations) Sets max iterations.voidsetNumberOfThreads(int numberOfThreads) Sets the number of threads for parallel execution.voidsetParallelExecution(boolean parallelExecution) Sets parallel execution flag.voidsetPressureTolerance(double pressureTolerance) Sets pressure tolerance.voidsetSolverType(String solverType) Sets the solver type.voidsetTemperatureTolerance(double temperatureTolerance) Sets temperature tolerance.voidsetTolerance(double tolerance) Sets the generic convergence tolerance.voidsetUseOptimizedExecution(boolean useOptimizedExecution) Sets optimized execution flag.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
maxIterations
private int maxIterations -
flowTolerance
private double flowTolerance -
temperatureTolerance
private double temperatureTolerance -
pressureTolerance
private double pressureTolerance -
useOptimizedExecution
private boolean useOptimizedExecution -
solverType
-
tolerance
private double tolerance -
parallelExecution
private boolean parallelExecution -
numberOfThreads
private int numberOfThreads
-
-
Constructor Details
-
ExecutionConfig
public ExecutionConfig()
-
-
Method Details
-
getMaxIterations
public int getMaxIterations()Gets max iterations.- Returns:
- maximum number of iterations
-
setMaxIterations
public void setMaxIterations(int maxIterations) Sets max iterations.- Parameters:
maxIterations- maximum number of iterations to set
-
getFlowTolerance
public double getFlowTolerance()Gets flow tolerance.- Returns:
- the flow tolerance
-
setFlowTolerance
public void setFlowTolerance(double flowTolerance) Sets flow tolerance.- Parameters:
flowTolerance- the flow tolerance to set
-
getTemperatureTolerance
public double getTemperatureTolerance()Gets temperature tolerance.- Returns:
- the temperature tolerance
-
setTemperatureTolerance
public void setTemperatureTolerance(double temperatureTolerance) Sets temperature tolerance.- Parameters:
temperatureTolerance- the temperature tolerance to set
-
getPressureTolerance
public double getPressureTolerance()Gets pressure tolerance.- Returns:
- the pressure tolerance
-
setPressureTolerance
public void setPressureTolerance(double pressureTolerance) Sets pressure tolerance.- Parameters:
pressureTolerance- the pressure tolerance to set
-
isUseOptimizedExecution
public boolean isUseOptimizedExecution()Checks if optimized execution is enabled.- Returns:
- true if optimized execution is enabled
-
setUseOptimizedExecution
public void setUseOptimizedExecution(boolean useOptimizedExecution) Sets optimized execution flag.- Parameters:
useOptimizedExecution- true to enable optimized execution
-
getSolverType
-
setSolverType
Sets the solver type.- Parameters:
solverType- the solver type to set (e.g., "sequential", "simultaneous")
-
getTolerance
public double getTolerance()Gets the generic convergence tolerance.- Returns:
- the tolerance value
-
setTolerance
public void setTolerance(double tolerance) Sets the generic convergence tolerance.- Parameters:
tolerance- the tolerance value to set
-
isParallelExecution
public boolean isParallelExecution()Checks if parallel execution is enabled.- Returns:
- true if parallel execution is enabled
-
setParallelExecution
public void setParallelExecution(boolean parallelExecution) Sets parallel execution flag.- Parameters:
parallelExecution- true to enable parallel execution
-
getNumberOfThreads
public int getNumberOfThreads()Gets the number of threads for parallel execution.- Returns:
- the number of threads
-
setNumberOfThreads
public void setNumberOfThreads(int numberOfThreads) Sets the number of threads for parallel execution.- Parameters:
numberOfThreads- the number of threads to use
-