Class CommodityBarrier
java.lang.Object
net.finmath.smartcontract.product.xml.CommodityBarrier
The specification of how a barrier option will trigger (that is, knock-in
or knock-out) or expire based on the position of the spot rate relative to trigger level.
Java class for CommodityBarrier complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CommodityBarrier"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <sequence> <element name="knock" type="{http://www.fpml.org/FpML-5/confirmation}CommodityKnockEnum"/> <element name="featurePaymentAmount" type="{http://www.fpml.org/FpML-5/confirmation}PositiveMoney" minOccurs="0"/> </sequence> <element name="trigger" type="{http://www.fpml.org/FpML-5/confirmation}CommodityTrigger"/> </sequence> </restriction> </complexContent> </complexType>
-
Field Summary
Modifier and TypeFieldDescriptionprotected PositiveMoney
protected CommodityKnockEnum
protected CommodityTrigger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the value of the featurePaymentAmount property.getKnock()
Gets the value of the knock property.Gets the value of the trigger property.void
Sets the value of the featurePaymentAmount property.void
setKnock
(CommodityKnockEnum value) Sets the value of the knock property.void
setTrigger
(CommodityTrigger value) Sets the value of the trigger property.
-
Field Details
-
knock
-
featurePaymentAmount
-
trigger
-
-
Constructor Details
-
CommodityBarrier
public CommodityBarrier()
-
-
Method Details
-
getKnock
Gets the value of the knock property.- Returns:
- possible object is
CommodityKnockEnum
-
setKnock
Sets the value of the knock property.- Parameters:
value
- allowed object isCommodityKnockEnum
-
getFeaturePaymentAmount
Gets the value of the featurePaymentAmount property.- Returns:
- possible object is
PositiveMoney
-
setFeaturePaymentAmount
Sets the value of the featurePaymentAmount property.- Parameters:
value
- allowed object isPositiveMoney
-
getTrigger
Gets the value of the trigger property.- Returns:
- possible object is
CommodityTrigger
-
setTrigger
Sets the value of the trigger property.- Parameters:
value
- allowed object isCommodityTrigger
-