public class CATSensitivityAnalysisSettings extends java.lang.Object implements REpiceaShowableUIWithParent
Modifier and Type | Class and Description |
---|---|
static class |
CATSensitivityAnalysisSettings.VariabilitySource |
Modifier and Type | Field and Description |
---|---|
protected boolean |
isModelStochastic |
protected int |
nbMonteCarloRealizations |
protected java.util.Map<CATSensitivityAnalysisSettings.VariabilitySource,CATSensitivityAnalysisParameterWrapper> |
sensitivityParameterMap |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
static CATSensitivityAnalysisSettings |
getInstance()
This method returns the singleton instance of the CATSensitivityAnalysisSettings class.
|
double |
getModifier(CATSensitivityAnalysisSettings.VariabilitySource source,
MonteCarloSimulationCompliantObject subject,
java.lang.String subjectID)
This method returns the multiplicative modifier for sensitivity analysis.
|
int |
getNumberOfMonteCarloRealizations()
This method returns the number of Monte Carlo realizations for the sensitivity analysis.
|
java.awt.Component |
getUI(java.awt.Container parent)
This method returns the GUI interface of the class that implements this interface.
|
boolean |
isModelStochastic() |
boolean |
isVisible()
This method returns true if the GUI is visible.
|
static void |
main(java.lang.String[] args) |
void |
setModelStochastic(boolean isModelStochastic)
This method sets the model to stochastic.
|
void |
setNumberOfMonteCarloRealizations(int nbMonteCarloRealizations)
This method sets the number of Monte Carlo realizations for the sensitivity analysis.
|
void |
setVariabilitySource(CATSensitivityAnalysisSettings.VariabilitySource source,
Distribution.Type type,
boolean enabled,
double multiplier)
This method sets the different parameters of the sensitivity analysis
|
void |
showUI(java.awt.Window parent)
This method shows the GUI interface of the class that implements this interface.
|
protected final java.util.Map<CATSensitivityAnalysisSettings.VariabilitySource,CATSensitivityAnalysisParameterWrapper> sensitivityParameterMap
protected int nbMonteCarloRealizations
protected boolean isModelStochastic
public java.awt.Component getUI(java.awt.Container parent)
REpiceaUIObjectWithParent
getUI
in interface REpiceaUIObjectWithParent
parent
- a parent Container instance (can be null)public void showUI(java.awt.Window parent)
REpiceaShowableUIWithParent
showUI
in interface REpiceaShowableUIWithParent
parent
- the parent Window instance (can be null)public static CATSensitivityAnalysisSettings getInstance()
public double getModifier(CATSensitivityAnalysisSettings.VariabilitySource source, MonteCarloSimulationCompliantObject subject, java.lang.String subjectID)
source
- the source of variability (a VariabilitySource enum)subject
- a MonteCarloSimulationCompliantObject instancepublic boolean isVisible()
REpiceaUIObjectWithParent
isVisible
in interface REpiceaUIObjectWithParent
public int getNumberOfMonteCarloRealizations()
public void setNumberOfMonteCarloRealizations(int nbMonteCarloRealizations)
nbMonteCarloRealizations
- a positive integer between 1 and 1000public void setModelStochastic(boolean isModelStochastic)
isModelStochastic
- a booleanpublic boolean isModelStochastic()
public void setVariabilitySource(CATSensitivityAnalysisSettings.VariabilitySource source, Distribution.Type type, boolean enabled, double multiplier)
source
- the source of variabilitytype
- the distribution (either uniform (default) or Gaussianenabled
- true to enable or false to disablemultiplier
- a value between 0.0 and 0.5 (50%)public static void main(java.lang.String[] args)
public void clear()