Class YearFraction.YearFractionACT_360
java.lang.Object
cdm.base.datetime.daycount.functions.YearFraction.YearFractionACT_360
- All Implemented Interfaces:
com.rosetta.model.lib.functions.RosettaFunction
- Direct Known Subclasses:
YearFraction.YearFractionACT_360.YearFractionACT_360Default
- Enclosing class:
YearFraction
public abstract static class YearFraction.YearFractionACT_360
extends Object
implements com.rosetta.model.lib.functions.RosettaFunction
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract com.rosetta.model.lib.mapper.MapperS<Integer> daysInPeriod(DayCountFractionEnum dayCountFractionEnum, com.rosetta.model.lib.records.Date startDate, com.rosetta.model.lib.records.Date endDate, com.rosetta.model.lib.records.Date terminationDate, Integer periodsInYear) protected abstract BigDecimaldoEvaluate(DayCountFractionEnum dayCountFractionEnum, com.rosetta.model.lib.records.Date startDate, com.rosetta.model.lib.records.Date endDate, com.rosetta.model.lib.records.Date terminationDate, Integer periodsInYear) evaluate(DayCountFractionEnum dayCountFractionEnum, com.rosetta.model.lib.records.Date startDate, com.rosetta.model.lib.records.Date endDate, com.rosetta.model.lib.records.Date terminationDate, Integer periodsInYear) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.rosetta.model.lib.functions.RosettaFunction
toBuilder, toBuilder, toBuilder
-
Field Details
-
dateDifference
-
-
Constructor Details
-
YearFractionACT_360
public YearFractionACT_360()
-
-
Method Details
-
evaluate
public BigDecimal evaluate(DayCountFractionEnum dayCountFractionEnum, com.rosetta.model.lib.records.Date startDate, com.rosetta.model.lib.records.Date endDate, com.rosetta.model.lib.records.Date terminationDate, Integer periodsInYear) - Parameters:
dayCountFractionEnum- The day count fraction to usestartDate- The start date of the range for which the year fraction is requiredendDate- The end date of the range for which the year fraction is requiredterminationDate- The termination date of the payout; this is needed for some day count fractionsperiodsInYear- The number of periods in a year in the payout; this is needed for some day count fractions- Returns:
- result The fraction of a year represented by period from the startDate to the endDate
-
doEvaluate
protected abstract BigDecimal doEvaluate(DayCountFractionEnum dayCountFractionEnum, com.rosetta.model.lib.records.Date startDate, com.rosetta.model.lib.records.Date endDate, com.rosetta.model.lib.records.Date terminationDate, Integer periodsInYear) -
daysInPeriod
protected abstract com.rosetta.model.lib.mapper.MapperS<Integer> daysInPeriod(DayCountFractionEnum dayCountFractionEnum, com.rosetta.model.lib.records.Date startDate, com.rosetta.model.lib.records.Date endDate, com.rosetta.model.lib.records.Date terminationDate, Integer periodsInYear)
-