Class FactorHelper
java.lang.Object
fr.ifremer.isisfish.simulator.sensitivity.FactorHelper
Useful method for factor
- create prescript with factor list
- Version:
- $Revision$ Last update: $Date$ by : $Author$
- Author:
- poussin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
generatePreScript
(Scenario scenario) Generate prescript to set factor values before simulation start.static String
generatePreScript
(Collection<Factor> factors) protected static void
generatePreScript
(org.apache.commons.beanutils.ConvertUtilsBean beanUtils, StringBuffer buffer, AtomicInteger counter, Collection<Factor> factors) Generate prescript for a factor list that can be called recursively to manage factor group.
-
Constructor Details
-
FactorHelper
public FactorHelper()
-
-
Method Details
-
generatePreScript
Generate prescript to set factor values before simulation start.- Parameters:
scenario
- to generate prescript- Returns:
- simulation pre script with correct values
-
generatePreScript
-
generatePreScript
protected static void generatePreScript(org.apache.commons.beanutils.ConvertUtilsBean beanUtils, StringBuffer buffer, AtomicInteger counter, Collection<Factor> factors) Generate prescript for a factor list that can be called recursively to manage factor group.- Parameters:
beanUtils
- beanUtils converterbuffer
- buffer to fillcounter
- call counter used to avoid variables name collisionfactors
- factor list to manage
-