Class CalculationPeriod
java.lang.Object
net.finmath.smartcontract.product.xml.CalculationPeriod
A type defining the parameters used in the calculation of a fixed or
floating rate calculation period amount. This type forms part of cashflows representation of a swap
stream.
Java class for CalculationPeriod complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CalculationPeriod"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="unadjustedStartDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/> <element name="unadjustedEndDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/> <element name="adjustedStartDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/> <element name="adjustedEndDate" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/> <element name="calculationPeriodNumberOfDays" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" minOccurs="0"/> <choice> <element name="notionalAmount" type="{http://www.w3.org/2001/XMLSchema}decimal"/> <element name="fxLinkedNotionalAmount" type="{http://www.fpml.org/FpML-5/confirmation}FxLinkedNotionalAmount"/> </choice> <choice> <element name="floatingRateDefinition" type="{http://www.fpml.org/FpML-5/confirmation}FloatingRateDefinition"/> <element name="fixedRate" type="{http://www.w3.org/2001/XMLSchema}decimal"/> </choice> <element name="dayCountYearFraction" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/> <element name="forecastAmount" type="{http://www.fpml.org/FpML-5/confirmation}Money" minOccurs="0"/> <element name="forecastRate" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/> </sequence> <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> </restriction> </complexContent> </complexType>
-
Field Summary
Modifier and TypeFieldDescriptionprotected XMLGregorianCalendar
protected XMLGregorianCalendar
protected BigInteger
protected BigDecimal
protected BigDecimal
protected FloatingRateDefinition
protected Money
protected BigDecimal
protected FxLinkedNotionalAmount
protected String
protected BigDecimal
protected XMLGregorianCalendar
protected XMLGregorianCalendar
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the value of the adjustedEndDate property.Gets the value of the adjustedStartDate property.Gets the value of the calculationPeriodNumberOfDays property.Gets the value of the dayCountYearFraction property.Gets the value of the fixedRate property.Gets the value of the floatingRateDefinition property.Gets the value of the forecastAmount property.Gets the value of the forecastRate property.Gets the value of the fxLinkedNotionalAmount property.getId()
Gets the value of the id property.Gets the value of the notionalAmount property.Gets the value of the unadjustedEndDate property.Gets the value of the unadjustedStartDate property.void
Sets the value of the adjustedEndDate property.void
Sets the value of the adjustedStartDate property.void
Sets the value of the calculationPeriodNumberOfDays property.void
Sets the value of the dayCountYearFraction property.void
setFixedRate
(BigDecimal value) Sets the value of the fixedRate property.void
Sets the value of the floatingRateDefinition property.void
setForecastAmount
(Money value) Sets the value of the forecastAmount property.void
setForecastRate
(BigDecimal value) Sets the value of the forecastRate property.void
Sets the value of the fxLinkedNotionalAmount property.void
Sets the value of the id property.void
setNotionalAmount
(BigDecimal value) Sets the value of the notionalAmount property.void
Sets the value of the unadjustedEndDate property.void
Sets the value of the unadjustedStartDate property.
-
Field Details
-
unadjustedStartDate
-
unadjustedEndDate
-
adjustedStartDate
-
adjustedEndDate
-
calculationPeriodNumberOfDays
-
notionalAmount
-
fxLinkedNotionalAmount
-
floatingRateDefinition
-
fixedRate
-
dayCountYearFraction
-
forecastAmount
-
forecastRate
-
id
-
-
Constructor Details
-
CalculationPeriod
public CalculationPeriod()
-
-
Method Details
-
getUnadjustedStartDate
Gets the value of the unadjustedStartDate property.- Returns:
- possible object is
XMLGregorianCalendar
-
setUnadjustedStartDate
Sets the value of the unadjustedStartDate property.- Parameters:
value
- allowed object isXMLGregorianCalendar
-
getUnadjustedEndDate
Gets the value of the unadjustedEndDate property.- Returns:
- possible object is
XMLGregorianCalendar
-
setUnadjustedEndDate
Sets the value of the unadjustedEndDate property.- Parameters:
value
- allowed object isXMLGregorianCalendar
-
getAdjustedStartDate
Gets the value of the adjustedStartDate property.- Returns:
- possible object is
XMLGregorianCalendar
-
setAdjustedStartDate
Sets the value of the adjustedStartDate property.- Parameters:
value
- allowed object isXMLGregorianCalendar
-
getAdjustedEndDate
Gets the value of the adjustedEndDate property.- Returns:
- possible object is
XMLGregorianCalendar
-
setAdjustedEndDate
Sets the value of the adjustedEndDate property.- Parameters:
value
- allowed object isXMLGregorianCalendar
-
getCalculationPeriodNumberOfDays
Gets the value of the calculationPeriodNumberOfDays property.- Returns:
- possible object is
BigInteger
-
setCalculationPeriodNumberOfDays
Sets the value of the calculationPeriodNumberOfDays property.- Parameters:
value
- allowed object isBigInteger
-
getNotionalAmount
Gets the value of the notionalAmount property.- Returns:
- possible object is
BigDecimal
-
setNotionalAmount
Sets the value of the notionalAmount property.- Parameters:
value
- allowed object isBigDecimal
-
getFxLinkedNotionalAmount
Gets the value of the fxLinkedNotionalAmount property.- Returns:
- possible object is
FxLinkedNotionalAmount
-
setFxLinkedNotionalAmount
Sets the value of the fxLinkedNotionalAmount property.- Parameters:
value
- allowed object isFxLinkedNotionalAmount
-
getFloatingRateDefinition
Gets the value of the floatingRateDefinition property.- Returns:
- possible object is
FloatingRateDefinition
-
setFloatingRateDefinition
Sets the value of the floatingRateDefinition property.- Parameters:
value
- allowed object isFloatingRateDefinition
-
getFixedRate
Gets the value of the fixedRate property.- Returns:
- possible object is
BigDecimal
-
setFixedRate
Sets the value of the fixedRate property.- Parameters:
value
- allowed object isBigDecimal
-
getDayCountYearFraction
Gets the value of the dayCountYearFraction property.- Returns:
- possible object is
BigDecimal
-
setDayCountYearFraction
Sets the value of the dayCountYearFraction property.- Parameters:
value
- allowed object isBigDecimal
-
getForecastAmount
-
setForecastAmount
-
getForecastRate
Gets the value of the forecastRate property.- Returns:
- possible object is
BigDecimal
-
setForecastRate
Sets the value of the forecastRate property.- Parameters:
value
- allowed object isBigDecimal
-
getId
-
setId
-