Class TimeDiscrete


  • public class TimeDiscrete
    extends TimeBase
    This is a time that represents a specific number of milliseconds
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeDiscrete​(double secs)
      Creates a new instance of TimeDiscrete
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double evalTime()
      Calculates the (greater than or equal to 0) time in seconds this time represents.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • secs

        double secs
    • Constructor Detail

      • TimeDiscrete

        public TimeDiscrete​(double secs)
        Creates a new instance of TimeDiscrete
    • Method Detail

      • evalTime

        public double evalTime()
        Description copied from class: TimeBase
        Calculates the (greater than or equal to 0) time in seconds this time represents. If the time cannot be determined, returns Double.NaN. If this represents an infinte amount of time, returns Double.POSITIVE_INFINITY.
        Specified by:
        evalTime in class TimeBase