Package fr.ifremer.isisfish.simulator
Class SimulationParameterCache
java.lang.Object
fr.ifremer.isisfish.simulator.SimulationParameterCache
- All Implemented Interfaces:
SimulationParameter
SimulationParameter soft reference implementation.
Store simulation file on disk, and a soft reference of delegate real
SimulationParameter.
If soft reference has been cleared by garbage collector, reload it from
disk.
Warning, use only this class for parameter reading. Using setters cause
parameters to be written on disk. Use with caution.
- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- chatellier
-
Field Summary
Modifier and TypeFieldDescriptionprotected File
Parameter file (disk storage).protected SoftReference<SimulationParameter>
Parameter memory reference. -
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 generationprotected SimulationParameter
getParam()
Get 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
Reset some cached data when region is changed.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> exportsObservations) 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 deleteAfterExport) 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.protected void
store
(SimulationParameter param) Permet de convertir l'objet SimulationParameter en un objet Properties Cela permet de le stocker facilement sur le disque.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface fr.ifremer.isisfish.simulator.SimulationParameter
toString
-
Field Details
-
paramFile
Parameter file (disk storage). -
ref
Parameter memory reference.
-
-
Constructor Details
-
SimulationParameterCache
- Parameters:
param
- param to cache
-
-
Method Details
-
store
-
getParam
-
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
-
getUseOptimization
public boolean getUseOptimization()- Specified by:
getUseOptimization
in interfaceSimulationParameter
-
setUseOptimization
public void setUseOptimization(boolean useOptimization) - Specified by:
setUseOptimization
in interfaceSimulationParameter
-
getUseComputeResult
public boolean getUseComputeResult()- Specified by:
getUseComputeResult
in interfaceSimulationParameter
-
setUseComputeResult
public void setUseComputeResult(boolean useComputeResult) - Specified by:
setUseComputeResult
in interfaceSimulationParameter
-
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
-
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
-
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()Description copied from interface:SimulationParameter
If this simulation is generated by Optimization, return generation number- Specified by:
getOptimizationGeneration
in interfaceSimulationParameter
-
setOptimizationGeneration
public void setOptimizationGeneration(int optimizationGeneration) Description copied from interface:SimulationParameter
If this simulation is generated by Optimization, set generation number- Specified by:
setOptimizationGeneration
in interfaceSimulationParameter
-
getOptimizationGenerationIndividual
public int getOptimizationGenerationIndividual()Description copied from interface:SimulationParameter
If this simulation is generated by Optimization, return individual number in generation- Specified by:
getOptimizationGenerationIndividual
in interfaceSimulationParameter
-
setOptimizationGenerationIndividual
public void setOptimizationGenerationIndividual(int optimizationGenerationIndividual) Description copied from interface:SimulationParameter
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 deleteAfterExport) Description copied from interface:SimulationParameter
Delete result after export policy.- Specified by:
setResultDeleteAfterExport
in interfaceSimulationParameter
- Parameters:
deleteAfterExport
- 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
Description copied from interface:SimulationParameter
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
-
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
-
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()Description copied from interface:SimulationParameter
Reset some cached data when region is changed.- Specified by:
reloadRegionChangeParameter
in interfaceSimulationParameter
-
getOptimization
Description copied from interface:SimulationParameter
Return used optimization script.- Specified by:
getOptimization
in interfaceSimulationParameter
- Returns:
- optimization method
-
getObjective
Description copied from interface:SimulationParameter
Return used objective.- Specified by:
getObjective
in interfaceSimulationParameter
- Returns:
-
setOptimization
Description copied from interface:SimulationParameter
Set simulation optimization.- Specified by:
setOptimization
in interfaceSimulationParameter
- Parameters:
optimization
- optimization
-
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
Description copied from interface:SimulationParameter
Set exports and observations map.- Specified by:
setOptimizationExportsObservations
in interfaceSimulationParameter
- Parameters:
exportsObservations
- exports and observations map
-
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
-
fixReloadContext
public void fixReloadContext(boolean sensitivityContext) Description copied from interface:SimulationParameter
Remove all parameters non relative to given context.- Specified by:
fixReloadContext
in interfaceSimulationParameter
-