From c913f35349f0963f10b581c79f7f421def118c6b Mon Sep 17 00:00:00 2001 From: brutzman <brutzman@nps.edu> Date: Tue, 25 Jan 2022 21:21:10 -0800 Subject: [PATCH] corrected accessor --- src/edu/nps/moves/dis7/utilities/DisTime.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/edu/nps/moves/dis7/utilities/DisTime.java b/src/edu/nps/moves/dis7/utilities/DisTime.java index d86f42e9d1..d5be4cd834 100644 --- a/src/edu/nps/moves/dis7/utilities/DisTime.java +++ b/src/edu/nps/moves/dis7/utilities/DisTime.java @@ -75,6 +75,13 @@ import java.util.*; * One hundredth of a second resolution is accurate enough for most applications, and you typically don't have to worry about * rollover, instead getting only a monotonically increasing timestamp value.</p> * + * <p> + * TODO we are currently investigating whether <code>IEEE_ABSOLUTE</code> together with + * <code>epochLvc</code> normalization of time reference is sufficient for LVC simulation. + * Further work is upgrading DisTime support to use the <code>java.time</code> library. + * Of note is that DISv8 intends to use a 64-bit timestamp. + * </p> + * * <p><b>TODO: timestamp normalization to an initial reference time.</b> * Functionality is needed to define a shared common time origin (epochLvc) and also to * precisely adjust stream timestamps when coordinating recorded PDU playback within LVC applications. @@ -450,12 +457,12 @@ public class DisTime } /** Set Instant value as epochLvc for zero-based clock, meaning timestamps normalized to 0 at that initial starting time - * @param newEpoch Instant corresponding to first PDU in series, considered time zero + * @param newEpochLvc Instant corresponding to first PDU in series, considered time zero */ - public static void setEpochLvc(java.time.Instant newEpoch) + public static void setEpochLvc(java.time.Instant newEpochLvc) { applyEpochLvc = true; - setEpochLvc(newEpoch); + epochLvc = newEpochLvc; } /** Get initial timestamp for zero-based clock, meaning all timestamps are measured with respect to given starting time * @return whether localhost is synchronized to time reference -- GitLab