Class RiskConstants
- java.lang.Object
-
- com.activeviam.risk.core.constants.RiskConstants
-
public class RiskConstants extends Object
Helper class defining property driven constants.
-
-
Field Summary
Fields Modifier and Type Field Description static String
LADDER_FIRST
static String
LADDER_ONLY
static String
MARKET_DATA_DIMENSION
static String
MARKET_DATA_SETS_HIERARCHY
static String
PL_DIMENSION
static String
QUANTILE_2_RANK_DIMENSION
static String
QUANTILE_2_RANK_HIERARCHY
static String
ROUNDING_METHODS_DIMENSION
static String
ROUNDING_METHODS_HIERARCHY
static String
SENSI_ONLY
static String
TYPE_HIERARCHY
-
Constructor Summary
Constructors Constructor Description RiskConstants()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getAvailableMaturitySets()
Returns the maturity sets defined as available in the Accelerator properties.static String
getAvailableMoneynessSets()
Returns the maturity sets defined as available in the Accelerator properties.static String
getAvailableTenorSets()
Returns the tenor sets defined as available in the Accelerator properties.static Integer
getDaysInMonth()
Returns the configured number of days in a month, for bucketing purposes.static Integer
getDaysInWeek()
Returns the configured number of days in a week, for bucketing purposes.static Integer
getDaysInYear()
Returns the configured number of days in a year, for bucketing purposes.static IDateTimeFormatterLocale
getLocale()
Returns the configured locale.static void
setLocale(IDateTimeFormatterLocale locale)
Sets the locale to use in DateTimeFormatter calls.static void
staticConfig(Properties env)
Temporary (pending config overhaul);
-
-
-
Field Detail
-
SENSI_ONLY
public static final String SENSI_ONLY
- See Also:
- Constant Field Values
-
LADDER_ONLY
public static final String LADDER_ONLY
- See Also:
- Constant Field Values
-
LADDER_FIRST
public static final String LADDER_FIRST
- See Also:
- Constant Field Values
-
PL_DIMENSION
public static final String PL_DIMENSION
- See Also:
- Constant Field Values
-
TYPE_HIERARCHY
public static final String TYPE_HIERARCHY
- See Also:
- Constant Field Values
-
ROUNDING_METHODS_DIMENSION
public static final String ROUNDING_METHODS_DIMENSION
- See Also:
- Constant Field Values
-
ROUNDING_METHODS_HIERARCHY
public static final String ROUNDING_METHODS_HIERARCHY
- See Also:
- Constant Field Values
-
QUANTILE_2_RANK_DIMENSION
public static final String QUANTILE_2_RANK_DIMENSION
- See Also:
- Constant Field Values
-
QUANTILE_2_RANK_HIERARCHY
public static final String QUANTILE_2_RANK_HIERARCHY
- See Also:
- Constant Field Values
-
MARKET_DATA_DIMENSION
public static final String MARKET_DATA_DIMENSION
- See Also:
- Constant Field Values
-
MARKET_DATA_SETS_HIERARCHY
public static final String MARKET_DATA_SETS_HIERARCHY
- See Also:
- Constant Field Values
-
-
Method Detail
-
staticConfig
public static void staticConfig(Properties env)
Temporary (pending config overhaul);- Parameters:
env
- environment
-
setLocale
public static void setLocale(IDateTimeFormatterLocale locale)
Sets the locale to use in DateTimeFormatter calls.- Parameters:
locale
- The locale.
-
getAvailableTenorSets
public static String getAvailableTenorSets()
Returns the tenor sets defined as available in the Accelerator properties.- Returns:
- The available tenor sets.
-
getAvailableMaturitySets
public static String getAvailableMaturitySets()
Returns the maturity sets defined as available in the Accelerator properties.- Returns:
- The available maturity sets.
-
getAvailableMoneynessSets
public static String getAvailableMoneynessSets()
Returns the maturity sets defined as available in the Accelerator properties.- Returns:
- The available maturity sets.
-
getDaysInWeek
public static Integer getDaysInWeek()
Returns the configured number of days in a week, for bucketing purposes.- Returns:
- The number of days in a week.
-
getDaysInMonth
public static Integer getDaysInMonth()
Returns the configured number of days in a month, for bucketing purposes.- Returns:
- The number of days in a month.
-
getDaysInYear
public static Integer getDaysInYear()
Returns the configured number of days in a year, for bucketing purposes.- Returns:
- The number of days in a year.
-
getLocale
public static IDateTimeFormatterLocale getLocale()
Returns the configured locale.- Returns:
- The locale.
-
-