Class AddBusinessDays

java.lang.Object
cdm.base.datetime.functions.AddBusinessDays
All Implemented Interfaces:
com.rosetta.model.lib.functions.RosettaFunction
Direct Known Subclasses:
AddBusinessDays.AddBusinessDaysDefault

public abstract class AddBusinessDays extends Object implements com.rosetta.model.lib.functions.RosettaFunction
  • Field Details

    • addBusinessDays

      @Inject protected AddBusinessDays addBusinessDays
    • addDays

      @Inject protected AddDays addDays
    • isBusinessDay

      @Inject protected IsBusinessDay isBusinessDay
  • Constructor Details

    • AddBusinessDays

      public AddBusinessDays()
  • Method Details

    • evaluate

      public com.rosetta.model.lib.records.Date evaluate(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters)
      Parameters:
      originalDate - date to be shifted. If not a good business day, a supplied shift of 0 will shift it to the next business day
      offsetBusinessDays - number of business days to shift the original date
      businessCenters - business centers to use in the shifting
      Returns:
      shiftedDate
    • doEvaluate

      protected abstract com.rosetta.model.lib.records.Date doEvaluate(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters)
    • isGoodBusinessDay

      protected abstract com.rosetta.model.lib.mapper.MapperS<Boolean> isGoodBusinessDay(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters)
    • shift

      protected abstract com.rosetta.model.lib.mapper.MapperS<Integer> shift(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters)
    • shiftedByOne

      protected abstract com.rosetta.model.lib.mapper.MapperS<com.rosetta.model.lib.records.Date> shiftedByOne(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters)
    • isShiftedGood

      protected abstract com.rosetta.model.lib.mapper.MapperS<Boolean> isShiftedGood(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters)
    • newShift

      protected abstract com.rosetta.model.lib.mapper.MapperS<Integer> newShift(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters)
    • newOffset

      protected abstract com.rosetta.model.lib.mapper.MapperS<Integer> newOffset(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters)
    • done

      protected abstract com.rosetta.model.lib.mapper.MapperS<Boolean> done(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters)
    • newDate

      protected abstract com.rosetta.model.lib.mapper.MapperS<com.rosetta.model.lib.records.Date> newDate(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters)