Class SensitivityUtils
java.lang.Object
fr.ifremer.isisfish.simulator.sensitivity.SensitivityUtils
Utility methods for sensitivity analysis.
- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- chatellier
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
Properties file resource path.protected static Properties
Cached properties. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canBeContinue
(Object value) Return true if value can be defined in continuous factor.static boolean
canBeFactor
(Class type) Return if type can be defined as a factor.static String
espaceFactorName
(String factorName) Escape factor name.static Properties
Return cached properties file.static boolean
isContinue
(Object value) Return if value is is continue factor enable.static boolean
isSensitivityFactorEnabled
(String sensitivityFactorName) Is field sensitivity enabled.
-
Field Details
-
PROPERTIES_PATH
Properties file resource path.- See Also:
-
sensitivityProperties
Cached properties.
-
-
Constructor Details
-
SensitivityUtils
public SensitivityUtils()
-
-
Method Details
-
espaceFactorName
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
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
Return cached properties file. Load it at first call.- Returns:
- properties
-
canBeContinue
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 pourRangeOfValues
par exemple, seule la valeur a un type Float... donc pas evident.- Parameters:
value
- value- Returns:
- continuous enabled
-
isContinue
Return if value is is continue factor enable.- Parameters:
value
- value to test- Returns:
true
if value is is continue factor enable
-
canBeFactor
Return if type can be defined as a factor.- Parameters:
type
- type- Returns:
true
if type can be defined as a factor
-