Class TimeKeeper
java.lang.Object
tools.descartes.dlim.generator.util.TimeKeeper
Provides all logic necessary to set the derived time attributes within
Sequences and Elements.
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
calculateSequenceTime
(Function f, Double startTime) Calculates loop duration, finalDuration, start and end for Sequence.static double
Calculates the Elements end Time and returns it.
-
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 elemstartTime
- the start time- Returns:
- The time at which the element ends
-
calculateSequenceTime
Calculates loop duration, finalDuration, start and end for Sequence. Returns end.- Parameters:
f
- The SequencestartTime
- Time at which sequence starts- Returns:
- The time at which the Sequence ends.
-