public interface Measure extends Named
A measure identifies the calculation result that is required. For example present value, par rate or spread.
Some measures represent aspects of the calculation target rather than a calculation. For example, the target identifier, counterparty and trade date.
Note that not all measures will be available for all targets.
| Modifier and Type | Method and Description |
|---|---|
static ExtendedEnum<Measure> |
extendedEnum()
Gets the extended enum helper.
|
String |
getName()
Gets the name that uniquely identifies this measure.
|
boolean |
isCurrencyConvertible()
Flag indicating whether measure values should be automatically converted to the reporting currency.
|
static Measure |
of(String uniqueName)
Obtains an instance from the specified unique name.
|
static Measure of(String uniqueName)
uniqueName - the unique nameIllegalArgumentException - if the name is not knownstatic ExtendedEnum<Measure> extendedEnum()
This helper allows instances of the measure to be looked up. It also provides the complete set of available instances.
String getName()
This name is used in serialization and can be parsed using of(String).
boolean isCurrencyConvertible()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.