Package 

Interface Time

  • All Implemented Interfaces:
    java.io.Serializable , java.lang.Comparable

    
    public interface Time
     implements Comparable<Time>, Serializable
                        

    Interface for time representation.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract boolean isInfinite() Verifies if the Time is set at infinite, namely if the event will never happen.
      abstract Time times(double var) Allows to multiply this Time for a constant.
      abstract Time minus(Time dt) Allows to subtract a Time to this Time.
      abstract Time plus(Time dt) Allows to add a Time to this Time.
      abstract double toDouble() Allows to get a double representation of this Time.
      • Methods inherited from class java.lang.Comparable

        compareTo
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • isInfinite

         abstract boolean isInfinite()

        Verifies if the Time is set at infinite, namely if the event will never happen.

      • times

         abstract Time times(double var)

        Allows to multiply this Time for a constant.

        Parameters:
        var - the Time to sum to the current Time
      • minus

         abstract Time minus(Time dt)

        Allows to subtract a Time to this Time.

        Parameters:
        dt - the time to subtract from the current Time
      • plus

         abstract Time plus(Time dt)

        Allows to add a Time to this Time.

        Parameters:
        dt - the time to sum to the current Time
      • toDouble

         abstract double toDouble()

        Allows to get a double representation of this Time.