public final class ResolvedFxSingleBarrierOptionTrade extends Object implements ResolvedTrade, org.joda.beans.ImmutableBean, Serializable
This is the resolved form of FxSingleBarrierOptionTrade and is the primary input to the pricers.
Applications will typically create a ResolvedFxSingleBarrierOptionTrade from a FxSingleBarrierOptionTrade
using FxSingleBarrierOptionTrade.resolve(ReferenceData).
A ResolvedFxSingleBarrierOptionTrade is bound to data that changes over time, such as holiday calendars.
If the data changes, such as the addition of a new holiday, the resolved form will not be updated.
Care must be taken when placing the resolved form in a cache or persistence layer.
| Modifier and Type | Class and Description |
|---|---|
static class |
ResolvedFxSingleBarrierOptionTrade.Builder
The bean-builder for
ResolvedFxSingleBarrierOptionTrade. |
static class |
ResolvedFxSingleBarrierOptionTrade.Meta
The meta-bean for
ResolvedFxSingleBarrierOptionTrade. |
| Modifier and Type | Method and Description |
|---|---|
static ResolvedFxSingleBarrierOptionTrade.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
TradeInfo |
getInfo()
Gets the additional trade information, defaulted to an empty instance.
|
Payment |
getPremium()
Gets the premium of the FX option.
|
ResolvedFxSingleBarrierOption |
getProduct()
Gets the resolved barrier FX option product.
|
int |
hashCode() |
static ResolvedFxSingleBarrierOptionTrade.Meta |
meta()
The meta-bean for
ResolvedFxSingleBarrierOptionTrade. |
ResolvedFxSingleBarrierOptionTrade.Meta |
metaBean() |
ResolvedFxSingleBarrierOptionTrade.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public static ResolvedFxSingleBarrierOptionTrade.Meta meta()
ResolvedFxSingleBarrierOptionTrade.public static ResolvedFxSingleBarrierOptionTrade.Builder builder()
public ResolvedFxSingleBarrierOptionTrade.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic TradeInfo getInfo()
This allows additional information to be attached to the trade.
getInfo in interface ResolvedTradepublic ResolvedFxSingleBarrierOption getProduct()
The product captures the contracted financial details of the trade.
getProduct in interface ResolvedTradepublic Payment getPremium()
The premium sign should be compatible with the product Long/Short flag. This means that the premium is negative for long and positive for short.
public ResolvedFxSingleBarrierOptionTrade.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.