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
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected AddBusinessDays
     
    protected AddDays
     
    protected IsBusinessDay
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract com.rosetta.model.lib.records.Date
    doEvaluate(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<String> businessCenters)
     
    protected abstract com.rosetta.model.lib.mapper.MapperS<Boolean>
    done(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<String> businessCenters)
     
    com.rosetta.model.lib.records.Date
    evaluate(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<String> businessCenters)
     
    protected abstract com.rosetta.model.lib.mapper.MapperS<Boolean>
    isGoodBusinessDay(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<String> businessCenters)
     
    protected abstract com.rosetta.model.lib.mapper.MapperS<Boolean>
    isShiftedGood(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<String> businessCenters)
     
    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<String> businessCenters)
     
    protected abstract com.rosetta.model.lib.mapper.MapperS<Integer>
    newOffset(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<String> businessCenters)
     
    protected abstract com.rosetta.model.lib.mapper.MapperS<Integer>
    newShift(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<String> businessCenters)
     
    protected abstract com.rosetta.model.lib.mapper.MapperS<Integer>
    shift(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<String> businessCenters)
     
    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<String> businessCenters)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.rosetta.model.lib.functions.RosettaFunction

    toBuilder, toBuilder, toBuilder
  • 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<String> 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<String> businessCenters)
    • isGoodBusinessDay

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

      protected abstract com.rosetta.model.lib.mapper.MapperS<Integer> shift(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<String> 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<String> businessCenters)
    • isShiftedGood

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

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

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

      protected abstract com.rosetta.model.lib.mapper.MapperS<Boolean> done(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<String> 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<String> businessCenters)