Package cdm.product.common.schedule
Class CalculationPeriod.CalculationPeriodBuilderImpl
java.lang.Object
cdm.product.common.schedule.CalculationPeriodBase.CalculationPeriodBaseBuilderImpl
cdm.product.common.schedule.CalculationPeriod.CalculationPeriodBuilderImpl
- All Implemented Interfaces:
CalculationPeriod,CalculationPeriod.CalculationPeriodBuilder,CalculationPeriodBase,CalculationPeriodBase.CalculationPeriodBaseBuilder,com.rosetta.model.lib.GlobalKey,com.rosetta.model.lib.GlobalKey.GlobalKeyBuilder,com.rosetta.model.lib.RosettaModelObject,com.rosetta.model.lib.RosettaModelObjectBuilder
- Enclosing interface:
CalculationPeriod
public static class CalculationPeriod.CalculationPeriodBuilderImpl
extends CalculationPeriodBase.CalculationPeriodBaseBuilderImpl
implements CalculationPeriod.CalculationPeriodBuilder
Builder Implementation of CalculationPeriod
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdm.product.common.schedule.CalculationPeriod
CalculationPeriod.CalculationPeriodBuilder, CalculationPeriod.CalculationPeriodBuilderImpl, CalculationPeriod.CalculationPeriodImplNested classes/interfaces inherited from interface cdm.product.common.schedule.CalculationPeriodBase
CalculationPeriodBase.CalculationPeriodBaseBuilder, CalculationPeriodBase.CalculationPeriodBaseBuilderImpl, CalculationPeriodBase.CalculationPeriodBaseImplNested classes/interfaces inherited from interface com.rosetta.model.lib.GlobalKey
com.rosetta.model.lib.GlobalKey.GlobalKeyBuilder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Integerprotected BigDecimalprotected BigDecimalprotected Money.MoneyBuilderprotected BigDecimalprotected BigDecimalprotected com.rosetta.model.lib.records.Dateprotected com.rosetta.model.lib.records.DateFields inherited from class cdm.product.common.schedule.CalculationPeriodBase.CalculationPeriodBaseBuilderImpl
adjustedEndDate, adjustedStartDate, metaFields inherited from interface cdm.product.common.schedule.CalculationPeriod
metaDataFields inherited from interface cdm.product.common.schedule.CalculationPeriodBase
metaData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build MethodsbooleanThe number of days from the adjusted effective / start date to the adjusted termination / end date calculated in accordance with the applicable day count fraction.The year fraction value of the calculation period, result of applying the ISDA rules for day count fraction defined in the ISDA Annex.The calculation period fixed rate.The floating rate reset information for the calculation period.The amount representing the forecast of the accrued value of the calculation period.A value representing the forecast rate used to calculate the forecast future value of the accrual period.The amount that a cashflow will accrue interest on.The amount that a cashflow will accrue interest on.com.rosetta.model.lib.records.DateThe calculation end date, unadjusted.com.rosetta.model.lib.records.DateThe calculation start date, unadjusted.booleanhasData()inthashCode()merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger) prune()setAdjustedEndDate(com.rosetta.model.lib.records.Date _adjustedEndDate) setAdjustedStartDate(com.rosetta.model.lib.records.Date _adjustedStartDate) setCalculationPeriodNumberOfDays(Integer _calculationPeriodNumberOfDays) setDayCountYearFraction(BigDecimal _dayCountYearFraction) setFixedRate(BigDecimal _fixedRate) setFloatingRateDefinition(FloatingRateDefinition _floatingRateDefinition) setForecastAmount(Money _forecastAmount) setForecastRate(BigDecimal _forecastRate) setFxLinkedNotionalAmount(FxLinkedNotionalAmount _fxLinkedNotionalAmount) setMeta(com.rosetta.model.metafields.MetaFields _meta) setNotionalAmount(BigDecimal _notionalAmount) setUnadjustedEndDate(com.rosetta.model.lib.records.Date _unadjustedEndDate) setUnadjustedStartDate(com.rosetta.model.lib.records.Date _unadjustedStartDate) toString()Methods inherited from class cdm.product.common.schedule.CalculationPeriodBase.CalculationPeriodBaseBuilderImpl
getAdjustedEndDate, getAdjustedStartDate, getMeta, getOrCreateMetaMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface cdm.product.common.schedule.CalculationPeriod
getType, metaData, processMethods inherited from interface cdm.product.common.schedule.CalculationPeriod.CalculationPeriodBuilder
processMethods inherited from interface cdm.product.common.schedule.CalculationPeriodBase
getAdjustedEndDate, getAdjustedStartDateMethods inherited from interface cdm.product.common.schedule.CalculationPeriodBase.CalculationPeriodBaseBuilder
getMeta, getOrCreateMetaMethods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosettaMethods inherited from interface com.rosetta.model.lib.RosettaModelObjectBuilder
getIndex, processRosetta, processRosetta
-
Field Details
-
unadjustedStartDate
protected com.rosetta.model.lib.records.Date unadjustedStartDate -
unadjustedEndDate
protected com.rosetta.model.lib.records.Date unadjustedEndDate -
calculationPeriodNumberOfDays
-
notionalAmount
-
fxLinkedNotionalAmount
-
floatingRateDefinition
-
fixedRate
-
dayCountYearFraction
-
forecastAmount
-
forecastRate
-
-
Constructor Details
-
CalculationPeriodBuilderImpl
public CalculationPeriodBuilderImpl()
-
-
Method Details
-
getUnadjustedStartDate
@RosettaAttribute("unadjustedStartDate") @RuneAttribute("unadjustedStartDate") public com.rosetta.model.lib.records.Date getUnadjustedStartDate()Description copied from interface:CalculationPeriodThe calculation start date, unadjusted.- Specified by:
getUnadjustedStartDatein interfaceCalculationPeriod
-
getUnadjustedEndDate
@RosettaAttribute("unadjustedEndDate") @RuneAttribute("unadjustedEndDate") public com.rosetta.model.lib.records.Date getUnadjustedEndDate()Description copied from interface:CalculationPeriodThe calculation end date, unadjusted.- Specified by:
getUnadjustedEndDatein interfaceCalculationPeriod
-
getCalculationPeriodNumberOfDays
@RosettaAttribute("calculationPeriodNumberOfDays") @RuneAttribute("calculationPeriodNumberOfDays") public Integer getCalculationPeriodNumberOfDays()Description copied from interface:CalculationPeriodThe number of days from the adjusted effective / start date to the adjusted termination / end date calculated in accordance with the applicable day count fraction.- Specified by:
getCalculationPeriodNumberOfDaysin interfaceCalculationPeriod
-
getNotionalAmount
@RosettaAttribute("notionalAmount") @RuneAttribute("notionalAmount") public BigDecimal getNotionalAmount()Description copied from interface:CalculationPeriodThe amount that a cashflow will accrue interest on.- Specified by:
getNotionalAmountin interfaceCalculationPeriod
-
getFxLinkedNotionalAmount
@RosettaAttribute("fxLinkedNotionalAmount") @RuneAttribute("fxLinkedNotionalAmount") public FxLinkedNotionalAmount.FxLinkedNotionalAmountBuilder getFxLinkedNotionalAmount()Description copied from interface:CalculationPeriodThe amount that a cashflow will accrue interest on. This is the calculated amount of the FX linked - i.e. the other currency notional amount multiplied by the appropriate FX spot rate.- Specified by:
getFxLinkedNotionalAmountin interfaceCalculationPeriod- Specified by:
getFxLinkedNotionalAmountin interfaceCalculationPeriod.CalculationPeriodBuilder
-
getOrCreateFxLinkedNotionalAmount
- Specified by:
getOrCreateFxLinkedNotionalAmountin interfaceCalculationPeriod.CalculationPeriodBuilder
-
getFloatingRateDefinition
@RosettaAttribute("floatingRateDefinition") @RuneAttribute("floatingRateDefinition") public FloatingRateDefinition.FloatingRateDefinitionBuilder getFloatingRateDefinition()Description copied from interface:CalculationPeriodThe floating rate reset information for the calculation period.- Specified by:
getFloatingRateDefinitionin interfaceCalculationPeriod- Specified by:
getFloatingRateDefinitionin interfaceCalculationPeriod.CalculationPeriodBuilder
-
getOrCreateFloatingRateDefinition
- Specified by:
getOrCreateFloatingRateDefinitionin interfaceCalculationPeriod.CalculationPeriodBuilder
-
getFixedRate
Description copied from interface:CalculationPeriodThe calculation period fixed rate. A per annum rate, expressed as a decimal. A fixed rate of 5% would be represented as 0.05.- Specified by:
getFixedRatein interfaceCalculationPeriod
-
getDayCountYearFraction
@RosettaAttribute("dayCountYearFraction") @RuneAttribute("dayCountYearFraction") public BigDecimal getDayCountYearFraction()Description copied from interface:CalculationPeriodThe year fraction value of the calculation period, result of applying the ISDA rules for day count fraction defined in the ISDA Annex.- Specified by:
getDayCountYearFractionin interfaceCalculationPeriod
-
getForecastAmount
@RosettaAttribute("forecastAmount") @RuneAttribute("forecastAmount") public Money.MoneyBuilder getForecastAmount()Description copied from interface:CalculationPeriodThe amount representing the forecast of the accrued value of the calculation period. An intermediate value used to generate the forecastPaymentAmount in the PaymentCalculationPeriod.- Specified by:
getForecastAmountin interfaceCalculationPeriod- Specified by:
getForecastAmountin interfaceCalculationPeriod.CalculationPeriodBuilder
-
getOrCreateForecastAmount
- Specified by:
getOrCreateForecastAmountin interfaceCalculationPeriod.CalculationPeriodBuilder
-
getForecastRate
@RosettaAttribute("forecastRate") @RuneAttribute("forecastRate") public BigDecimal getForecastRate()Description copied from interface:CalculationPeriodA value representing the forecast rate used to calculate the forecast future value of the accrual period. This is a calculated rate determined based on averaging the rates in the rateObservation elements, and incorporates all of the rate treatment and averaging rules. A value of 1% should be represented as 0.01.- Specified by:
getForecastRatein interfaceCalculationPeriod
-
setAdjustedStartDate
@RosettaAttribute("adjustedStartDate") @RuneAttribute("adjustedStartDate") public CalculationPeriod.CalculationPeriodBuilder setAdjustedStartDate(com.rosetta.model.lib.records.Date _adjustedStartDate) - Specified by:
setAdjustedStartDatein interfaceCalculationPeriod.CalculationPeriodBuilder- Specified by:
setAdjustedStartDatein interfaceCalculationPeriodBase.CalculationPeriodBaseBuilder- Overrides:
setAdjustedStartDatein classCalculationPeriodBase.CalculationPeriodBaseBuilderImpl
-
setAdjustedEndDate
@RosettaAttribute("adjustedEndDate") @RuneAttribute("adjustedEndDate") public CalculationPeriod.CalculationPeriodBuilder setAdjustedEndDate(com.rosetta.model.lib.records.Date _adjustedEndDate) - Specified by:
setAdjustedEndDatein interfaceCalculationPeriod.CalculationPeriodBuilder- Specified by:
setAdjustedEndDatein interfaceCalculationPeriodBase.CalculationPeriodBaseBuilder- Overrides:
setAdjustedEndDatein classCalculationPeriodBase.CalculationPeriodBaseBuilderImpl
-
setMeta
@RosettaAttribute("meta") @RuneAttribute("meta") @RuneMetaType public CalculationPeriod.CalculationPeriodBuilder setMeta(com.rosetta.model.metafields.MetaFields _meta) - Specified by:
setMetain interfaceCalculationPeriod.CalculationPeriodBuilder- Specified by:
setMetain interfaceCalculationPeriodBase.CalculationPeriodBaseBuilder- Overrides:
setMetain classCalculationPeriodBase.CalculationPeriodBaseBuilderImpl
-
setUnadjustedStartDate
@RosettaAttribute("unadjustedStartDate") @RuneAttribute("unadjustedStartDate") public CalculationPeriod.CalculationPeriodBuilder setUnadjustedStartDate(com.rosetta.model.lib.records.Date _unadjustedStartDate) - Specified by:
setUnadjustedStartDatein interfaceCalculationPeriod.CalculationPeriodBuilder
-
setUnadjustedEndDate
@RosettaAttribute("unadjustedEndDate") @RuneAttribute("unadjustedEndDate") public CalculationPeriod.CalculationPeriodBuilder setUnadjustedEndDate(com.rosetta.model.lib.records.Date _unadjustedEndDate) - Specified by:
setUnadjustedEndDatein interfaceCalculationPeriod.CalculationPeriodBuilder
-
setCalculationPeriodNumberOfDays
@RosettaAttribute("calculationPeriodNumberOfDays") @RuneAttribute("calculationPeriodNumberOfDays") public CalculationPeriod.CalculationPeriodBuilder setCalculationPeriodNumberOfDays(Integer _calculationPeriodNumberOfDays) - Specified by:
setCalculationPeriodNumberOfDaysin interfaceCalculationPeriod.CalculationPeriodBuilder
-
setNotionalAmount
@RosettaAttribute("notionalAmount") @RuneAttribute("notionalAmount") public CalculationPeriod.CalculationPeriodBuilder setNotionalAmount(BigDecimal _notionalAmount) - Specified by:
setNotionalAmountin interfaceCalculationPeriod.CalculationPeriodBuilder
-
setFxLinkedNotionalAmount
@RosettaAttribute("fxLinkedNotionalAmount") @RuneAttribute("fxLinkedNotionalAmount") public CalculationPeriod.CalculationPeriodBuilder setFxLinkedNotionalAmount(FxLinkedNotionalAmount _fxLinkedNotionalAmount) - Specified by:
setFxLinkedNotionalAmountin interfaceCalculationPeriod.CalculationPeriodBuilder
-
setFloatingRateDefinition
@RosettaAttribute("floatingRateDefinition") @RuneAttribute("floatingRateDefinition") public CalculationPeriod.CalculationPeriodBuilder setFloatingRateDefinition(FloatingRateDefinition _floatingRateDefinition) - Specified by:
setFloatingRateDefinitionin interfaceCalculationPeriod.CalculationPeriodBuilder
-
setFixedRate
@RosettaAttribute("fixedRate") @RuneAttribute("fixedRate") public CalculationPeriod.CalculationPeriodBuilder setFixedRate(BigDecimal _fixedRate) - Specified by:
setFixedRatein interfaceCalculationPeriod.CalculationPeriodBuilder
-
setDayCountYearFraction
@RosettaAttribute("dayCountYearFraction") @RuneAttribute("dayCountYearFraction") public CalculationPeriod.CalculationPeriodBuilder setDayCountYearFraction(BigDecimal _dayCountYearFraction) - Specified by:
setDayCountYearFractionin interfaceCalculationPeriod.CalculationPeriodBuilder
-
setForecastAmount
@RosettaAttribute("forecastAmount") @RuneAttribute("forecastAmount") public CalculationPeriod.CalculationPeriodBuilder setForecastAmount(Money _forecastAmount) - Specified by:
setForecastAmountin interfaceCalculationPeriod.CalculationPeriodBuilder
-
setForecastRate
@RosettaAttribute("forecastRate") @RuneAttribute("forecastRate") public CalculationPeriod.CalculationPeriodBuilder setForecastRate(BigDecimal _forecastRate) - Specified by:
setForecastRatein interfaceCalculationPeriod.CalculationPeriodBuilder
-
build
Description copied from interface:CalculationPeriodBaseBuild Methods- Specified by:
buildin interfaceCalculationPeriod- Specified by:
buildin interfaceCalculationPeriodBase- Specified by:
buildin interfacecom.rosetta.model.lib.RosettaModelObject- Overrides:
buildin classCalculationPeriodBase.CalculationPeriodBaseBuilderImpl
-
toBuilder
- Specified by:
toBuilderin interfaceCalculationPeriod- Specified by:
toBuilderin interfaceCalculationPeriodBase- Specified by:
toBuilderin interfacecom.rosetta.model.lib.RosettaModelObject- Overrides:
toBuilderin classCalculationPeriodBase.CalculationPeriodBaseBuilderImpl
-
prune
- Specified by:
prunein interfaceCalculationPeriod.CalculationPeriodBuilder- Specified by:
prunein interfaceCalculationPeriodBase.CalculationPeriodBaseBuilder- Specified by:
prunein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder- Overrides:
prunein classCalculationPeriodBase.CalculationPeriodBaseBuilderImpl
-
hasData
public boolean hasData()- Specified by:
hasDatain interfacecom.rosetta.model.lib.RosettaModelObjectBuilder- Overrides:
hasDatain classCalculationPeriodBase.CalculationPeriodBaseBuilderImpl
-
merge
public CalculationPeriod.CalculationPeriodBuilder merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger) - Specified by:
mergein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder- Overrides:
mergein classCalculationPeriodBase.CalculationPeriodBaseBuilderImpl
-
equals
- Overrides:
equalsin classCalculationPeriodBase.CalculationPeriodBaseBuilderImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classCalculationPeriodBase.CalculationPeriodBaseBuilderImpl
-
toString
- Overrides:
toStringin classCalculationPeriodBase.CalculationPeriodBaseBuilderImpl
-