Class FloatingLegCalculation
java.lang.Object
net.finmath.smartcontract.product.xml.FloatingLegCalculation
- Direct Known Subclasses:
FloatingStrikePrice
A type to capture details relevant to the calculation of the floating
price.
Java class for FloatingLegCalculation complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="FloatingLegCalculation"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="pricingDates" type="{http://www.fpml.org/FpML-5/confirmation}CommodityPricingDates"/> <element name="averagingMethod" type="{http://www.fpml.org/FpML-5/confirmation}AveragingMethodEnum" minOccurs="0"/> <element name="conversionFactor" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/> <element name="rounding" type="{http://www.fpml.org/FpML-5/confirmation}Rounding" minOccurs="0"/> <choice minOccurs="0"> <element name="spread" type="{http://www.fpml.org/FpML-5/confirmation}CommoditySpread"/> <element name="spreadSchedule" type="{http://www.fpml.org/FpML-5/confirmation}CommoditySpreadSchedule" maxOccurs="unbounded"/> <element name="spreadPercentage" type="{http://www.w3.org/2001/XMLSchema}decimal"/> </choice> <element name="fx" type="{http://www.fpml.org/FpML-5/confirmation}CommodityFx" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType>
-
Field Summary
Modifier and TypeFieldDescriptionprotected AveragingMethodEnum
protected BigDecimal
protected CommodityFx
protected CommodityPricingDates
protected Rounding
protected CommoditySpread
protected BigDecimal
protected List
<CommoditySpreadSchedule> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the value of the averagingMethod property.Gets the value of the conversionFactor property.getFx()
Gets the value of the fx property.Gets the value of the pricingDates property.Gets the value of the rounding property.Gets the value of the spread property.Gets the value of the spreadPercentage property.Gets the value of the spreadSchedule property.void
Sets the value of the averagingMethod property.void
setConversionFactor
(BigDecimal value) Sets the value of the conversionFactor property.void
setFx
(CommodityFx value) Sets the value of the fx property.void
Sets the value of the pricingDates property.void
setRounding
(Rounding value) Sets the value of the rounding property.void
setSpread
(CommoditySpread value) Sets the value of the spread property.void
setSpreadPercentage
(BigDecimal value) Sets the value of the spreadPercentage property.
-
Field Details
-
pricingDates
-
averagingMethod
-
conversionFactor
-
rounding
-
spread
-
spreadSchedule
-
spreadPercentage
-
fx
-
-
Constructor Details
-
FloatingLegCalculation
public FloatingLegCalculation()
-
-
Method Details
-
getPricingDates
Gets the value of the pricingDates property.- Returns:
- possible object is
CommodityPricingDates
-
setPricingDates
Sets the value of the pricingDates property.- Parameters:
value
- allowed object isCommodityPricingDates
-
getAveragingMethod
Gets the value of the averagingMethod property.- Returns:
- possible object is
AveragingMethodEnum
-
setAveragingMethod
Sets the value of the averagingMethod property.- Parameters:
value
- allowed object isAveragingMethodEnum
-
getConversionFactor
Gets the value of the conversionFactor property.- Returns:
- possible object is
BigDecimal
-
setConversionFactor
Sets the value of the conversionFactor property.- Parameters:
value
- allowed object isBigDecimal
-
getRounding
-
setRounding
-
getSpread
Gets the value of the spread property.- Returns:
- possible object is
CommoditySpread
-
setSpread
Sets the value of the spread property.- Parameters:
value
- allowed object isCommoditySpread
-
getSpreadSchedule
Gets the value of the spreadSchedule property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
set
method for the spreadSchedule property.For example, to add a new item, do as follows:
getSpreadSchedule().add(newItem);
Objects of the following type(s) are allowed in the list
CommoditySpreadSchedule
-
getSpreadPercentage
Gets the value of the spreadPercentage property.- Returns:
- possible object is
BigDecimal
-
setSpreadPercentage
Sets the value of the spreadPercentage property.- Parameters:
value
- allowed object isBigDecimal
-
getFx
Gets the value of the fx property.- Returns:
- possible object is
CommodityFx
-
setFx
Sets the value of the fx property.- Parameters:
value
- allowed object isCommodityFx
-