Enum Class DisTime.TimestampStyle

java.lang.Object
java.lang.Enum<DisTime.TimestampStyle>
edu.nps.moves.dis7.utilities.DisTime.TimestampStyle
All Implemented Interfaces:
Serializable, Comparable<DisTime.TimestampStyle>, Constable
Enclosing class:
DisTime

public static enum DisTime.TimestampStyle extends Enum<DisTime.TimestampStyle>
Supported timestamp styles and utility methods, default is IEEE_ABSOLUTE indicating local clock is synchronized to UTC time standard.
Author:
DMcG
See Also:
  • Enum Constant Details

    • IEEE_ABSOLUTE

      public static final DisTime.TimestampStyle IEEE_ABSOLUTE
      Clock ticks since top of hour, host synchronized to UTC via Network Time Protocol (NTP)
    • IEEE_RELATIVE

      public static final DisTime.TimestampStyle IEEE_RELATIVE
      Clock ticks since top of hour, host not synchronized to UTC via Network Time Protocol (NTP)
    • UNIX

      public static final DisTime.TimestampStyle UNIX
      Unix time (seconds since 1 January 1970)
    • YEAR

      @Deprecated public static final DisTime.TimestampStyle YEAR
      Deprecated.
      hundreds of a second since the start of the year
  • Method Details

    • values

      public static DisTime.TimestampStyle[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DisTime.TimestampStyle valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null