Interface TimeRounding

All Superinterfaces:
com.rosetta.model.lib.RosettaModelObject
All Known Subinterfaces:
TimeRounding.TimeRoundingBuilder
All Known Implementing Classes:
TimeRounding.TimeRoundingBuilderImpl, TimeRounding.TimeRoundingImpl

@RosettaDataType(value="TimeRounding", builder=TimeRoundingBuilderImpl.class, version="7.0.0-dev.105") @RuneDataType(value="TimeRounding", model="cdm", builder=TimeRoundingBuilderImpl.class, version="7.0.0-dev.105") public interface TimeRounding extends com.rosetta.model.lib.RosettaModelObject
Specifies how a calculated time should be rounded, including both the direction of rounding and the unit to which the time is rounded. Rounding is applied after all offsets have been calculated.
Version:
7.0.0-dev.105
  • Field Details

  • Method Details

    • getRoundingDirection

      RoundingDirectionEnum getRoundingDirection()
      The direction in which rounding is performed (e.g., up, down, or to the nearest value).
    • getRoundToUnit

      TimeUnitEnum getRoundToUnit()
      The time unit to which the value should be rounded (e.g., minute, hour, day).
    • build

      TimeRounding build()
      Build Methods
      Specified by:
      build in interface com.rosetta.model.lib.RosettaModelObject
    • toBuilder

      Specified by:
      toBuilder in interface com.rosetta.model.lib.RosettaModelObject
    • builder

    • metaData

      default com.rosetta.model.lib.meta.RosettaMetaData<? extends TimeRounding> metaData()
      Utility Methods
      Specified by:
      metaData in interface com.rosetta.model.lib.RosettaModelObject
    • getType

      @RuneAttribute("@type") default Class<? extends TimeRounding> getType()
      Specified by:
      getType in interface com.rosetta.model.lib.RosettaModelObject
    • process

      default void process(com.rosetta.model.lib.path.RosettaPath path, com.rosetta.model.lib.process.Processor processor)
      Specified by:
      process in interface com.rosetta.model.lib.RosettaModelObject