Class TimeKeeper

java.lang.Object
tools.descartes.dlim.generator.util.TimeKeeper

public final class TimeKeeper extends Object
Provides all logic necessary to set the derived time attributes within Sequences and Elements.
  • Method Details

    • calculateTimeDependentFunctionContainerTime

      public static double calculateTimeDependentFunctionContainerTime(TimeDependentFunctionContainer elem, Double startTime)
      Calculates the Elements end Time and returns it. Elements containing sequences do not take their sequence duration into account.
      Parameters:
      elem - the elem
      startTime - the start time
      Returns:
      The time at which the element ends
    • calculateSequenceTime

      public static double calculateSequenceTime(Function f, Double startTime)
      Calculates loop duration, finalDuration, start and end for Sequence. Returns end.
      Parameters:
      f - The Sequence
      startTime - Time at which sequence starts
      Returns:
      The time at which the Sequence ends.