Class GenerateWeights
java.lang.Object
cdm.observable.asset.calculatedrate.functions.GenerateWeights
- All Implemented Interfaces:
com.rosetta.model.lib.functions.RosettaFunction
- Direct Known Subclasses:
GenerateWeights.GenerateWeightsDefault
public abstract class GenerateWeights
extends Object
implements com.rosetta.model.lib.functions.RosettaFunction
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AppendToVectorprotected DateDifferenceprotected GenerateWeightsprotected PopOffDateList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract com.rosetta.model.lib.mapper.MapperS<Boolean> protected abstract com.rosetta.model.lib.mapper.MapperS<Integer> protected abstract List<BigDecimal> doEvaluate(List<com.rosetta.model.lib.records.Date> weightingDates) protected abstract com.rosetta.model.lib.mapper.MapperS<com.rosetta.model.lib.records.Date> protected abstract com.rosetta.model.lib.mapper.MapperS<com.rosetta.model.lib.records.Date> protected abstract com.rosetta.model.lib.mapper.MapperC<com.rosetta.model.lib.records.Date> remainingDates(List<com.rosetta.model.lib.records.Date> weightingDates) protected abstract com.rosetta.model.lib.mapper.MapperC<BigDecimal> remainingWeights(List<com.rosetta.model.lib.records.Date> weightingDates) 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
-
appendToVector
-
dateDifference
-
generateWeights
-
popOffDateList
-
-
Constructor Details
-
GenerateWeights
public GenerateWeights()
-
-
Method Details
-
evaluate
- Parameters:
weightingDates- A list of dates for which weightings are require.- Returns:
- weights A vector of weights, typically numbers between 1 and 3.
-
doEvaluate
protected abstract List<BigDecimal> doEvaluate(List<com.rosetta.model.lib.records.Date> weightingDates) -
active
-
refDate
protected abstract com.rosetta.model.lib.mapper.MapperS<com.rosetta.model.lib.records.Date> refDate(List<com.rosetta.model.lib.records.Date> weightingDates) -
remainingDates
protected abstract com.rosetta.model.lib.mapper.MapperC<com.rosetta.model.lib.records.Date> remainingDates(List<com.rosetta.model.lib.records.Date> weightingDates) -
prevDate
protected abstract com.rosetta.model.lib.mapper.MapperS<com.rosetta.model.lib.records.Date> prevDate(List<com.rosetta.model.lib.records.Date> weightingDates) -
diff
-
remainingWeights
protected abstract com.rosetta.model.lib.mapper.MapperC<BigDecimal> remainingWeights(List<com.rosetta.model.lib.records.Date> weightingDates)
-