Class FactorHelper

java.lang.Object
fr.ifremer.isisfish.simulator.sensitivity.FactorHelper

public class FactorHelper extends Object
Useful method for factor - create prescript with factor list
Version:
$Revision$ Last update: $Date$ by : $Author$
Author:
poussin
  • Constructor Details

    • FactorHelper

      public FactorHelper()
  • Method Details

    • generatePreScript

      public static String generatePreScript(Scenario scenario)
      Generate prescript to set factor values before simulation start.
      Parameters:
      scenario - to generate prescript
      Returns:
      simulation pre script with correct values
    • generatePreScript

      public static String generatePreScript(Collection<Factor> factors)
    • 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 converter
      buffer - buffer to fill
      counter - call counter used to avoid variables name collision
      factors - factor list to manage