api/enums/ package. These are part of the public API and are used as parameters throughout the measure interfaces.
ExposureMetric
ExposureMetric identifies the six exposure metrics that the framework can compute.
The
isNumeric() method returns true for PFE, EE, ES, and ENE. It returns false for PFE_INDEX and PFE_SCENARIO_NAME.
The getNumericMetrics() method returns an array of the four numeric metric constants.
Usage in the public API:
Side
Side identifies which counterparty perspective the exposure is computed from.
The
other() method returns the opposite side: BANK.other() returns CPTY and vice versa.
The getLabel() method returns the string label ("Bank" or "Cpty"), which is used as a prefix in measure names, as in Bank Collateralized Exposure.
ReportingOrCollateral
ReportingOrCollateral classifies each simulation date in the SimulationDates table.
A time point appears in
SimulationDates once per as-of date, with the value R (reporting) or C (collateral only). When the look-back date falls on a time point, R or C, the collateral algorithms read that time point. Otherwise they interpolate between the neighbouring R time points.