Class SensitivityUtils

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

public class SensitivityUtils extends Object
Utility methods for sensitivity analysis.
Version:
$Revision$ Last update : $Date$ By : $Author$
Author:
chatellier
  • Field Details

    • PROPERTIES_PATH

      protected static final String PROPERTIES_PATH
      Properties file resource path.
      See Also:
    • sensitivityProperties

      protected static Properties sensitivityProperties
      Cached properties.
  • Constructor Details

    • SensitivityUtils

      public SensitivityUtils()
  • Method Details

    • espaceFactorName

      public static String espaceFactorName(String factorName)
      Escape factor name. R don't like factor name with special characters such as "." and accents.
      Parameters:
      factorName - factor name to escape
      Returns:
      escaped factor name
      Since:
      4.0.0.2
    • isSensitivityFactorEnabled

      public static boolean isSensitivityFactorEnabled(String sensitivityFactorName)
      Is field sensitivity enabled. Return true, if field name is present in properties file.
      Parameters:
      sensitivityFactorName - name
      Returns:
      true if factor name is sensitivity enabled
    • getProperties

      public static Properties getProperties()
      Return cached properties file. Load it at first call.
      Returns:
      properties
    • canBeContinue

      public static boolean canBeContinue(Object value)
      Return true if value can be defined in continuous factor. Il serait plus interessant de le faire sur les types et non sur les valeur mais pour RangeOfValues par exemple, seule la valeur a un type Float... donc pas evident.
      Parameters:
      value - value
      Returns:
      continuous enabled
    • isContinue

      public static boolean isContinue(Object value)
      Return if value is is continue factor enable.
      Parameters:
      value - value to test
      Returns:
      true if value is is continue factor enable
    • canBeFactor

      public static boolean canBeFactor(Class type)
      Return if type can be defined as a factor.
      Parameters:
      type - type
      Returns:
      true if type can be defined as a factor