Package fr.ifremer.isisfish.simulator
Class SimulationParameterImpl
java.lang.Object
fr.ifremer.isisfish.simulator.SimulationParameterImpl
- All Implemented Interfaces:
SimulationParameter
Real
SimulationParameter
implementation.- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- chatellier
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
Description de la simulation.Ma liste des exports automatique a faire en fin de simulation.La liste des regles potentiellement ajoutée par les plans de simulation.protected String
Le script de pre simulation defini par Isisprotected String
Isis-fish version that permit to do the simulation.protected String
Le niveau de log des librairies à utiliser pendant la simulation.protected Integer
Nombre de mois sur lequel on souhaite simuler.protected Integer
Nombre de simulation constituant l'analyse de sensibilité.protected Map<Population,
org.nuiton.math.matrix.MatrixND> Les effectifs initiaux des différentes population.protected Objective
Fonction d'objectif.protected Optimization
Script d'optimisation.protected Map<ExportInfo,
Observation> Exports et observations (optimisation).protected Integer
If this simulation is generated by Optimization, generation numberprotected Integer
If this simulation is generated by Optimization, individual number in generationprotected List<Population>
La liste des populations a utiliser pour la simulation.protected String
Le script de pre simulation a utiliser.protected Properties
Remember last read properties.protected RegionStorage
La region corespondant au parametreregionName
.protected String
Nom de la region sur lequel on simule.protected Boolean
Parametre utilisé pour supprimer les résultats à la fin d'une simulation après les exports.protected Collection<String>
La liste des resultats qui nous interesse.La liste des regles de gestions a utiliser pour la simulation.protected String
Le niveau de log des scripts à utiliser pendant la simulation.protected SensitivityAnalysis
Script utilisé pour les analyses de sensibilités.protected Boolean
Dans une analyze de sensibilite, conserver les résultats de toutes les simulations est inutile, seule les résultats de la premières sont nécéssaires.protected List<SensitivityExport>
ExportInfo utilisés pour les analyses de sensibilités.protected Integer
Le numero de sequence de la liste des plans de simulation.protected List<SimulationPlan>
La liste des plans a utiliser pour la simulation.protected String
Le nom de l'objet script a utiliser pour faire la simulation.protected String
Le niveau de log du simulateur à utiliser pendant la simulation.La liste des strategies a utiliser pour la simulation.Autre parametre defini par l'utilisateur.protected Boolean
Utilisation ou non du cache.protected Boolean
Utilisation ou non du timing du calcul des resultats.protected Boolean
Utilisation d'un script de simulation.protected Boolean
Utilisation du script de pre simulation.protected Boolean
Utilisation du plan de simulation.protected Boolean
Utilisation ou non des statistiques. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExtraRules
(String... extraRules) Add extra rules.void
Add new rule to rules list.void
Add new simulation plan.check()
Permet de verifier que tous les parametres sont bon.void
Clear plan list.void
Clear rule list.copy()
A copy instance of SimulationParameter.deepCopy()
Make a deep copy of current parameters.void
fixReloadContext
(boolean sensitivityContext) Remove all parameters non relative to given context.void
fromProperties
(Properties props) Load properties from file.Get description property.Get export names list.Get extra rules list.Generated pre script is internal script generated by isis.Get isis fish version for the simulation.Get librairies log level.org.nuiton.math.matrix.MatrixND
getNumberOf
(Population pop) int
Get number of year to run to simulate.int
Get number of sensitivity simulation.int
Get number of year to run to simulate.Return used objective.Return used optimization script.Get exports and observations map.int
If this simulation is generated by Optimization, return generation numberint
If this simulation is generated by Optimization, return individual number in generationGet instantiated population list.Get prescript content.Load region corresponding toSimulationParameter.getRegionName()
.Get region name.Get enabled result names list.getRules()
Get parameters rules list.Get script log level.Get instantiated sensitivity analysis.Return loaded sensitivity export.int
Get simulation number in simulation plan.Get instantiated simulation plan list.Set simulator name.Get simulator log level.Get instantiated strategies list.Get tag values.boolean
Return if cache should be used.boolean
boolean
boolean
Get use prescript.boolean
Get use simulation plans property.boolean
Return if statistic should be used.boolean
Returntrue
if simulation is composed of independent plan only.boolean
boolean
boolean
boolean
boolean
Delete result after export policy.boolean
boolean
boolean
boolean
boolean
Get only keep first result policy.boolean
boolean
boolean
boolean
void
Reload parameters du to context change.void
Remove from 'cached' parameter data referring to another region.boolean
removeRule
(Rule rule) Remove a rule.boolean
Remove a plan.void
setDescription
(String description) Set simulation description.void
setExportNames
(List<String> exportNames) Set export names list.void
setGeneratedPreScript
(String preScript) Generated pre script is internal script generated by isis.void
setIsisFishVersion
(String isisFishVersion) Set isis fish Version.void
setLibLogLevel
(String logLevel) Set lib log level.void
setNumberOfMonths
(int numberOfMonths) Set number of months to run to simulate.void
setNumberOfSensitivitySimulation
(int numberOfSensitivitySimulation) Set number of sensitivity simulation.void
setNumberOfYear
(int numberOfYear) Set number of year to run to simulate.void
setObjective
(Objective objective) Set objective.void
setOptimization
(Optimization optimization) Set simulation optimization.void
setOptimizationExportsObservations
(Map<ExportInfo, Observation> optimizationExportsObservations) Set exports and observations map.void
setOptimizationGeneration
(int optimizationGeneration) If this simulation is generated by Optimization, set generation numbervoid
setOptimizationGenerationIndividual
(int optimizationGenerationIndividual) If this simulation is generated by Optimization, set individual number in generationvoid
setPopulations
(List<Population> populations) void
setPreScript
(String preScript) Set pre script content.void
setProperties
(Properties props) Set multiples properties.void
setProperty
(String key, String value) Permet d'ajouter des parametres directement à partir de leur representation chaine.void
setRegionName
(String regionName) Set region name.void
setResultDeleteAfterExport
(boolean resultDeleteAfterExport) Delete result after export policy.void
setResultEnabled
(Collection<String> resultEnabled) Set enabled result names list.void
Set simulation rules.void
setScriptLogLevel
(String logLevel) Set script log level.void
setSensitivityAnalysis
(SensitivityAnalysis sensitivityAnalysis) void
setSensitivityAnalysisOnlyKeepFirst
(boolean onlyKeepFirst) Change only keep first result policy.void
setSensitivityExport
(List<SensitivityExport> sensitivityExport) void
setSimulationPlanNumber
(int simulationPlanNumber) Set simulation number in simulation plan.void
setSimulationPlans
(List<SimulationPlan> plans) Set plans list.void
setSimulatorName
(String simulatorName) Set simulator name.void
setSimulLogLevel
(String logLevel) Set simulator log level.void
setStrategies
(List<Strategy> strategies) Set strategies list.void
setTagValue
(Map<String, String> tagValue) Set tag values.void
setUseCache
(boolean useCache) Change use optimization parameter.void
setUseComputeResult
(boolean useComputeResult) void
setUseOptimization
(boolean useOptimization) void
setUsePreScript
(boolean usePreScript) Set use prescript propertyvoid
setUseSimulationPlan
(boolean useSimulationPlan) Set use simulation plans property.void
setUseStatistic
(boolean useStatistic) Change use statistic property.Permet de convertir l'objet SimulationParameter en un objet Properties Cela permet de le stocker facilement sur le disque.toString()
The toString() method call getters.
-
Field Details
-
propertiesParameters
Remember last read properties. -
isisFishVersion
Isis-fish version that permit to do the simulation. Must be set just before simulation by simulator. -
description
Description de la simulation. -
regionName
Nom de la region sur lequel on simule. -
numberOfMonths
Nombre de mois sur lequel on souhaite simuler. -
simulatorName
Le nom de l'objet script a utiliser pour faire la simulation. -
useCache
Utilisation ou non du cache. -
useStatistic
Utilisation ou non des statistiques. -
useComputeResult
Utilisation ou non du timing du calcul des resultats. -
strategies
La liste des strategies a utiliser pour la simulation. -
populations
La liste des populations a utiliser pour la simulation. -
numbers
Les effectifs initiaux des différentes population. -
rules
La liste des regles de gestions a utiliser pour la simulation. -
extraRules
La liste des regles potentiellement ajoutée par les plans de simulation. -
simulationPlans
La liste des plans a utiliser pour la simulation. -
exportNames
Ma liste des exports automatique a faire en fin de simulation. -
usePreScript
Utilisation du script de pre simulation. -
preScript
Le script de pre simulation a utiliser. -
generatedPreScript
Le script de pre simulation defini par Isis -
useSimulationPlan
Utilisation du plan de simulation. -
simulationPlanNumber
Le numero de sequence de la liste des plans de simulation. Le premier élement du plan doit etre 0. Si la simulation ne fait pas partie d'un plan la valeur est -1. -
sensitivityExports
ExportInfo utilisés pour les analyses de sensibilités. -
numberOfSensitivitySimulation
Nombre de simulation constituant l'analyse de sensibilité. FIXME ce parametre ne devrait pas ce trouver à cet endroit. Ce n'est pas un parametres, mais une infos de simulation. Cela permet de savoir combien de simulation il y a au total pour savoir quand elle sont terminées. -
sensitivityAnalysisOnlyKeepFirst
Dans une analyze de sensibilite, conserver les résultats de toutes les simulations est inutile, seule les résultats de la premières sont nécéssaires. Les resultats peuvent être supprimés après les export de données. -
resultDeleteAfterExport
Parametre utilisé pour supprimer les résultats à la fin d'une simulation après les exports. -
sensitivityAnalysis
Script utilisé pour les analyses de sensibilités. -
useOptimization
Utilisation d'un script de simulation. -
optimization
Script d'optimisation. -
objective
Fonction d'objectif. -
optimizationExportsObservations
Exports et observations (optimisation). -
optimizationGeneration
If this simulation is generated by Optimization, generation number -
optimizationGenerationIndividual
If this simulation is generated by Optimization, individual number in generation -
resultEnabled
La liste des resultats qui nous interesse. -
tagValue
Autre parametre defini par l'utilisateur. -
simulLogLevel
Le niveau de log du simulateur à utiliser pendant la simulation. Par defaut info. -
scriptLogLevel
Le niveau de log des scripts à utiliser pendant la simulation. Par defaut info. -
libLogLevel
Le niveau de log des librairies à utiliser pendant la simulation. Par defaut error. -
region
La region corespondant au parametreregionName
.
-
-
Constructor Details
-
SimulationParameterImpl
public SimulationParameterImpl()
-
-
Method Details
-
check
Description copied from interface:SimulationParameter
Permet de verifier que tous les parametres sont bon. Si ce n'est pas le cas la liste retournée contient la liste des messages d'erreur.- Specified by:
check
in interfaceSimulationParameter
- Returns:
- la liste d'erreur
-
getIsisFishVersion
Description copied from interface:SimulationParameter
Get isis fish version for the simulation. Default value to :IsisConfig.getVersion()
.- Specified by:
getIsisFishVersion
in interfaceSimulationParameter
- Returns:
- the isisFishVersion.
-
setIsisFishVersion
Description copied from interface:SimulationParameter
Set isis fish Version.- Specified by:
setIsisFishVersion
in interfaceSimulationParameter
- Parameters:
isisFishVersion
- The isisFishVersion to set.
-
getDescription
Description copied from interface:SimulationParameter
Get description property. Default value to : "".- Specified by:
getDescription
in interfaceSimulationParameter
- Returns:
- Description property.
-
setDescription
Description copied from interface:SimulationParameter
Set simulation description.- Specified by:
setDescription
in interfaceSimulationParameter
- Parameters:
description
- the description to set.
-
getRegion
Description copied from interface:SimulationParameter
Load region corresponding toSimulationParameter.getRegionName()
.- Specified by:
getRegion
in interfaceSimulationParameter
- Returns:
- the region
-
getNumberOf
- Specified by:
getNumberOf
in interfaceSimulationParameter
-
getExtraRules
Description copied from interface:SimulationParameter
Get extra rules list.- Specified by:
getExtraRules
in interfaceSimulationParameter
- Returns:
- Returns the extraRules.
-
addExtraRules
Description copied from interface:SimulationParameter
Add extra rules. Appelé par les plan de simulation, pour ajouter des regles supplémentaires dans être integrés au zip.- Specified by:
addExtraRules
in interfaceSimulationParameter
- Parameters:
extraRules
- extra rules to add
-
getPopulations
Description copied from interface:SimulationParameter
Get instantiated population list.- Specified by:
getPopulations
in interfaceSimulationParameter
- Returns:
- Returns the populations.
-
setPopulations
- Specified by:
setPopulations
in interfaceSimulationParameter
- Parameters:
populations
- The populations to set.
-
getStrategies
Description copied from interface:SimulationParameter
Get instantiated strategies list. Defaut to : empty array list- Specified by:
getStrategies
in interfaceSimulationParameter
- Returns:
- Returns the strategies.
-
setStrategies
Description copied from interface:SimulationParameter
Set strategies list.- Specified by:
setStrategies
in interfaceSimulationParameter
- Parameters:
strategies
- strategies list to set
-
addSimulationPlan
Description copied from interface:SimulationParameter
Add new simulation plan.- Specified by:
addSimulationPlan
in interfaceSimulationParameter
- Parameters:
plan
- simulation plan to add
-
removeSimulationPlan
Description copied from interface:SimulationParameter
Remove a plan.- Specified by:
removeSimulationPlan
in interfaceSimulationParameter
- Returns:
true
if this list contained the specified element
-
getSimulationPlans
Description copied from interface:SimulationParameter
Get instantiated simulation plan list. Default to empty list.- Specified by:
getSimulationPlans
in interfaceSimulationParameter
- Returns:
- the plans.
-
setSimulationPlans
Description copied from interface:SimulationParameter
Set plans list.- Specified by:
setSimulationPlans
in interfaceSimulationParameter
- Parameters:
plans
- plans to set
-
isIndependentPlan
public boolean isIndependentPlan()Description copied from interface:SimulationParameter
Returntrue
if simulation is composed of independent plan only.- Specified by:
isIndependentPlan
in interfaceSimulationParameter
- Returns:
true
if allSimulationPlan
areSimulationPlanIndependent
-
clearPlans
public void clearPlans()Description copied from interface:SimulationParameter
Clear plan list.- Specified by:
clearPlans
in interfaceSimulationParameter
-
addRule
Description copied from interface:SimulationParameter
Add new rule to rules list.- Specified by:
addRule
in interfaceSimulationParameter
- Parameters:
rule
- rule to add
-
removeRule
Description copied from interface:SimulationParameter
Remove a rule.- Specified by:
removeRule
in interfaceSimulationParameter
- Parameters:
rule
- rule to remove- Returns:
true
if this list contained the specified element
-
getRules
Description copied from interface:SimulationParameter
Get parameters rules list.- Specified by:
getRules
in interfaceSimulationParameter
- Returns:
- the rules
-
setRules
Description copied from interface:SimulationParameter
Set simulation rules.- Specified by:
setRules
in interfaceSimulationParameter
- Parameters:
rules
- rules to set
-
clearRules
public void clearRules()Description copied from interface:SimulationParameter
Clear rule list.- Specified by:
clearRules
in interfaceSimulationParameter
-
getUseCache
public boolean getUseCache()Description copied from interface:SimulationParameter
Return if cache should be used. Default to : true.- Specified by:
getUseCache
in interfaceSimulationParameter
- Returns:
- use cache
-
setUseCache
public void setUseCache(boolean useCache) Description copied from interface:SimulationParameter
Change use optimization parameter.- Specified by:
setUseCache
in interfaceSimulationParameter
- Parameters:
useCache
- use cache to set
-
getUseStatistic
public boolean getUseStatistic()Description copied from interface:SimulationParameter
Return if statistic should be used. Default to false;- Specified by:
getUseStatistic
in interfaceSimulationParameter
- Returns:
- use statistic
-
setUseStatistic
public void setUseStatistic(boolean useStatistic) Description copied from interface:SimulationParameter
Change use statistic property.- Specified by:
setUseStatistic
in interfaceSimulationParameter
- Parameters:
useStatistic
- use statistic to set
-
getUseComputeResult
public boolean getUseComputeResult()- Specified by:
getUseComputeResult
in interfaceSimulationParameter
-
setUseComputeResult
public void setUseComputeResult(boolean useComputeResult) - Specified by:
setUseComputeResult
in interfaceSimulationParameter
-
getExportNames
Description copied from interface:SimulationParameter
Get export names list.- Specified by:
getExportNames
in interfaceSimulationParameter
- Returns:
- export names list
-
setExportNames
Description copied from interface:SimulationParameter
Set export names list.- Specified by:
setExportNames
in interfaceSimulationParameter
- Parameters:
exportNames
- export names list to set
-
getNumberOfSensitivitySimulation
public int getNumberOfSensitivitySimulation()Description copied from interface:SimulationParameter
Get number of sensitivity simulation. Default value to : -1- Specified by:
getNumberOfSensitivitySimulation
in interfaceSimulationParameter
- Returns:
- the numberOfSensitivitySimulation
-
setNumberOfSensitivitySimulation
public void setNumberOfSensitivitySimulation(int numberOfSensitivitySimulation) Description copied from interface:SimulationParameter
Set number of sensitivity simulation.- Specified by:
setNumberOfSensitivitySimulation
in interfaceSimulationParameter
- Parameters:
numberOfSensitivitySimulation
- number of sensitivity simulation to set
-
getSensitivityAnalysis
Description copied from interface:SimulationParameter
Get instantiated sensitivity analysis. Default to : null.- Specified by:
getSensitivityAnalysis
in interfaceSimulationParameter
- Returns:
- the sensitivityAnalysis
-
setSensitivityAnalysis
- Specified by:
setSensitivityAnalysis
in interfaceSimulationParameter
- Parameters:
sensitivityAnalysis
- the sensitivityAnalysis to set
-
getSensitivityExport
Description copied from interface:SimulationParameter
Return loaded sensitivity export. If exports are null or empty, try to load it from last ready parameters.- Specified by:
getSensitivityExport
in interfaceSimulationParameter
- Returns:
- the sensitivityExportNames
-
setSensitivityExport
- Specified by:
setSensitivityExport
in interfaceSimulationParameter
- Parameters:
sensitivityExport
- the sensitivityExportNames to set
-
getOptimization
Description copied from interface:SimulationParameter
Return used optimization script.- Specified by:
getOptimization
in interfaceSimulationParameter
- Returns:
- optimization method
-
getUseOptimization
public boolean getUseOptimization()- Specified by:
getUseOptimization
in interfaceSimulationParameter
-
setUseOptimization
public void setUseOptimization(boolean useOptimization) - Specified by:
setUseOptimization
in interfaceSimulationParameter
-
setOptimization
Description copied from interface:SimulationParameter
Set simulation optimization.- Specified by:
setOptimization
in interfaceSimulationParameter
- Parameters:
optimization
- optimization
-
getObjective
Description copied from interface:SimulationParameter
Return used objective.- Specified by:
getObjective
in interfaceSimulationParameter
- Returns:
-
setObjective
Description copied from interface:SimulationParameter
Set objective.- Specified by:
setObjective
in interfaceSimulationParameter
- Parameters:
objective
- objective
-
getOptimizationExportsObservations
Description copied from interface:SimulationParameter
Get exports and observations map.- Specified by:
getOptimizationExportsObservations
in interfaceSimulationParameter
- Returns:
- exports and observations map
-
setOptimizationExportsObservations
public void setOptimizationExportsObservations(Map<ExportInfo, Observation> optimizationExportsObservations) Description copied from interface:SimulationParameter
Set exports and observations map.- Specified by:
setOptimizationExportsObservations
in interfaceSimulationParameter
- Parameters:
optimizationExportsObservations
- exports and observations map
-
getUseSimulationPlan
public boolean getUseSimulationPlan()Description copied from interface:SimulationParameter
Get use simulation plans property.- Specified by:
getUseSimulationPlan
in interfaceSimulationParameter
- Returns:
- use simulation plan.
-
setUseSimulationPlan
public void setUseSimulationPlan(boolean useSimulationPlan) Description copied from interface:SimulationParameter
Set use simulation plans property.- Specified by:
setUseSimulationPlan
in interfaceSimulationParameter
- Parameters:
useSimulationPlan
- use simulation plan to set
-
getSimulationPlanNumber
public int getSimulationPlanNumber()Description copied from interface:SimulationParameter
Get simulation number in simulation plan.- Specified by:
getSimulationPlanNumber
in interfaceSimulationParameter
- Returns:
- simulation number in simulation plan
-
setSimulationPlanNumber
public void setSimulationPlanNumber(int simulationPlanNumber) Description copied from interface:SimulationParameter
Set simulation number in simulation plan.- Specified by:
setSimulationPlanNumber
in interfaceSimulationParameter
- Parameters:
simulationPlanNumber
- simulation plan number to set
-
getOptimizationGeneration
public int getOptimizationGeneration()If this simulation is generated by Optimization, return generation number- Specified by:
getOptimizationGeneration
in interfaceSimulationParameter
-
setOptimizationGeneration
public void setOptimizationGeneration(int optimizationGeneration) If this simulation is generated by Optimization, set generation number- Specified by:
setOptimizationGeneration
in interfaceSimulationParameter
-
getOptimizationGenerationIndividual
public int getOptimizationGenerationIndividual()If this simulation is generated by Optimization, return individual number in generation- Specified by:
getOptimizationGenerationIndividual
in interfaceSimulationParameter
-
setOptimizationGenerationIndividual
public void setOptimizationGenerationIndividual(int optimizationGenerationIndividual) If this simulation is generated by Optimization, set individual number in generation- Specified by:
setOptimizationGenerationIndividual
in interfaceSimulationParameter
-
isSensitivityAnalysisOnlyKeepFirst
public boolean isSensitivityAnalysisOnlyKeepFirst()Description copied from interface:SimulationParameter
Get only keep first result policy.- Specified by:
isSensitivityAnalysisOnlyKeepFirst
in interfaceSimulationParameter
- Returns:
- only keep first result policy
-
setSensitivityAnalysisOnlyKeepFirst
public void setSensitivityAnalysisOnlyKeepFirst(boolean onlyKeepFirst) Description copied from interface:SimulationParameter
Change only keep first result policy.- Specified by:
setSensitivityAnalysisOnlyKeepFirst
in interfaceSimulationParameter
- Parameters:
onlyKeepFirst
- only keep first result policy
-
isResultDeleteAfterExport
public boolean isResultDeleteAfterExport()Description copied from interface:SimulationParameter
Delete result after export policy.- Specified by:
isResultDeleteAfterExport
in interfaceSimulationParameter
-
setResultDeleteAfterExport
public void setResultDeleteAfterExport(boolean resultDeleteAfterExport) Description copied from interface:SimulationParameter
Delete result after export policy.- Specified by:
setResultDeleteAfterExport
in interfaceSimulationParameter
- Parameters:
resultDeleteAfterExport
- delete result after export policy
-
getNumberOfYear
public int getNumberOfYear()Description copied from interface:SimulationParameter
Get number of year to run to simulate.- Specified by:
getNumberOfYear
in interfaceSimulationParameter
- Returns:
- number of year
-
setNumberOfYear
public void setNumberOfYear(int numberOfYear) Description copied from interface:SimulationParameter
Set number of year to run to simulate.- Specified by:
setNumberOfYear
in interfaceSimulationParameter
- Parameters:
numberOfYear
- number of year to set
-
getNumberOfMonths
public int getNumberOfMonths()Description copied from interface:SimulationParameter
Get number of year to run to simulate.- Specified by:
getNumberOfMonths
in interfaceSimulationParameter
- Returns:
- number of year
-
setNumberOfMonths
public void setNumberOfMonths(int numberOfMonths) Description copied from interface:SimulationParameter
Set number of months to run to simulate.- Specified by:
setNumberOfMonths
in interfaceSimulationParameter
- Parameters:
numberOfMonths
- number of months to set
-
getUsePreScript
public boolean getUsePreScript()Description copied from interface:SimulationParameter
Get use prescript. Default to false.- Specified by:
getUsePreScript
in interfaceSimulationParameter
- Returns:
- Returns the usePreScript.
-
setUsePreScript
public void setUsePreScript(boolean usePreScript) Description copied from interface:SimulationParameter
Set use prescript property- Specified by:
setUsePreScript
in interfaceSimulationParameter
- Parameters:
usePreScript
- use preScript to set
-
getPreScript
Description copied from interface:SimulationParameter
Get prescript content.- Specified by:
getPreScript
in interfaceSimulationParameter
- Returns:
- preScript content
-
setPreScript
Description copied from interface:SimulationParameter
Set pre script content.- Specified by:
setPreScript
in interfaceSimulationParameter
- Parameters:
preScript
- prescript content
-
getGeneratedPreScript
Description copied from interface:SimulationParameter
Generated pre script is internal script generated by isis. This script must be executed before user defined preScript.- Specified by:
getGeneratedPreScript
in interfaceSimulationParameter
- Returns:
- generated pre script
-
setGeneratedPreScript
Description copied from interface:SimulationParameter
Generated pre script is internal script generated by isis. This script must be executed before user defined preScript- Specified by:
setGeneratedPreScript
in interfaceSimulationParameter
- Parameters:
preScript
- prescript content
-
getRegionName
Description copied from interface:SimulationParameter
Get region name.- Specified by:
getRegionName
in interfaceSimulationParameter
- Returns:
- region name
-
setRegionName
Description copied from interface:SimulationParameter
Set region name.- Specified by:
setRegionName
in interfaceSimulationParameter
- Parameters:
regionName
- region name to set
-
getSimulatorName
Description copied from interface:SimulationParameter
Set simulator name.- Specified by:
getSimulatorName
in interfaceSimulationParameter
- Returns:
- simulator name.
-
setSimulatorName
Description copied from interface:SimulationParameter
Set simulator name.- Specified by:
setSimulatorName
in interfaceSimulationParameter
- Parameters:
simulatorName
- simulator name to set
-
getResultEnabled
Description copied from interface:SimulationParameter
Get enabled result names list.- Specified by:
getResultEnabled
in interfaceSimulationParameter
- Returns:
- enabled result names list
-
setResultEnabled
Description copied from interface:SimulationParameter
Set enabled result names list.- Specified by:
setResultEnabled
in interfaceSimulationParameter
- Parameters:
resultEnabled
- enabled result names list
-
getTagValue
Description copied from interface:SimulationParameter
Get tag values. Default to empty map- Specified by:
getTagValue
in interfaceSimulationParameter
- Returns:
- Returns the tagValue.
-
setTagValue
Description copied from interface:SimulationParameter
Set tag values.- Specified by:
setTagValue
in interfaceSimulationParameter
- Parameters:
tagValue
- tagValues to set.
-
getSimulLogLevel
Description copied from interface:SimulationParameter
Get simulator log level. Default to "info".- Specified by:
getSimulLogLevel
in interfaceSimulationParameter
- Returns:
- simulator log level
-
setSimulLogLevel
Description copied from interface:SimulationParameter
Set simulator log level.- Specified by:
setSimulLogLevel
in interfaceSimulationParameter
- Parameters:
logLevel
- simulator log level
-
getScriptLogLevel
Description copied from interface:SimulationParameter
Get script log level. Default to "info".- Specified by:
getScriptLogLevel
in interfaceSimulationParameter
- Returns:
- script log level
-
setScriptLogLevel
Description copied from interface:SimulationParameter
Set script log level.- Specified by:
setScriptLogLevel
in interfaceSimulationParameter
- Parameters:
logLevel
- script log level
-
getLibLogLevel
Description copied from interface:SimulationParameter
Get librairies log level. Default to "error".- Specified by:
getLibLogLevel
in interfaceSimulationParameter
- Returns:
- librairies log level
-
setLibLogLevel
Description copied from interface:SimulationParameter
Set lib log level.- Specified by:
setLibLogLevel
in interfaceSimulationParameter
-
isSimulErrorLevel
public boolean isSimulErrorLevel()- Specified by:
isSimulErrorLevel
in interfaceSimulationParameter
-
isSimulWarnLevel
public boolean isSimulWarnLevel()- Specified by:
isSimulWarnLevel
in interfaceSimulationParameter
-
isSimulInfoLevel
public boolean isSimulInfoLevel()- Specified by:
isSimulInfoLevel
in interfaceSimulationParameter
-
isSimulDebugLevel
public boolean isSimulDebugLevel()- Specified by:
isSimulDebugLevel
in interfaceSimulationParameter
-
isScriptErrorLevel
public boolean isScriptErrorLevel()- Specified by:
isScriptErrorLevel
in interfaceSimulationParameter
-
isScriptWarnLevel
public boolean isScriptWarnLevel()- Specified by:
isScriptWarnLevel
in interfaceSimulationParameter
-
isScriptInfoLevel
public boolean isScriptInfoLevel()- Specified by:
isScriptInfoLevel
in interfaceSimulationParameter
-
isScriptDebugLevel
public boolean isScriptDebugLevel()- Specified by:
isScriptDebugLevel
in interfaceSimulationParameter
-
isLibErrorLevel
public boolean isLibErrorLevel()- Specified by:
isLibErrorLevel
in interfaceSimulationParameter
-
isLibWarnLevel
public boolean isLibWarnLevel()- Specified by:
isLibWarnLevel
in interfaceSimulationParameter
-
isLibInfoLevel
public boolean isLibInfoLevel()- Specified by:
isLibInfoLevel
in interfaceSimulationParameter
-
isLibDebugLevel
public boolean isLibDebugLevel()- Specified by:
isLibDebugLevel
in interfaceSimulationParameter
-
setProperty
Permet d'ajouter des parametres directement à partir de leur representation chaine. A ne pas utiliser normalement, sert uniquement dans les prescripts des simulation des AS.- Specified by:
setProperty
in interfaceSimulationParameter
- Parameters:
key
- keyvalue
- value- Since:
- 3.4.0.0
-
setProperties
Description copied from interface:SimulationParameter
Set multiples properties.- Specified by:
setProperties
in interfaceSimulationParameter
- Parameters:
props
- props
-
copy
Description copied from interface:SimulationParameter
A copy instance of SimulationParameter. Warning, this is not a deep copy, already instancied objects are not duplicated.- Specified by:
copy
in interfaceSimulationParameter
- Returns:
- a copy of this instance
-
deepCopy
Description copied from interface:SimulationParameter
Make a deep copy of current parameters. Bump all current parameters to properties and make a new one with those propeties.- Specified by:
deepCopy
in interfaceSimulationParameter
- Returns:
- new parameters instance
-
toString
Description copied from interface:SimulationParameter
The toString() method call getters. So make instances of rules/export/plans...- Specified by:
toString
in interfaceSimulationParameter
- Overrides:
toString
in classObject
-
toProperties
Description copied from interface:SimulationParameter
Permet de convertir l'objet SimulationParameter en un objet Properties Cela permet de le stocker facilement sur le disque. Recopie certaines proprietes si elle n'ont pas été instancié :- strategies
- rules
- simulationplans
- sensitivityexports
- sensitivityanalysis
- Specified by:
toProperties
in interfaceSimulationParameter
- Returns:
- L'objet Properties representant les parametres
- See Also:
-
fromProperties
Description copied from interface:SimulationParameter
Load properties from file.- Specified by:
fromProperties
in interfaceSimulationParameter
- Parameters:
props
- property to read
-
reloadContextParameters
public void reloadContextParameters() throws org.nuiton.topia.TopiaExceptionDescription copied from interface:SimulationParameter
Reload parameters du to context change. ie : in simulators when rollbacking transaction Actually : reload rules parameters- Specified by:
reloadContextParameters
in interfaceSimulationParameter
- Throws:
org.nuiton.topia.TopiaException
-
reloadRegionChangeParameter
public void reloadRegionChangeParameter()Remove from 'cached' parameter data referring to another region. Strategies, populations, and objects with potential parameters values.- Specified by:
reloadRegionChangeParameter
in interfaceSimulationParameter
-
fixReloadContext
public void fixReloadContext(boolean sensitivityContext) Description copied from interface:SimulationParameter
Remove all parameters non relative to given context.- Specified by:
fixReloadContext
in interfaceSimulationParameter
-