Package jadex.base

Class SRemoteClock.ClockState

  • Enclosing class:
    SRemoteClock

    public static class SRemoteClock.ClockState
    extends java.lang.Object
    Information about the clock to be transferred.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean changeallowed
      Changing clock type allowed?
      long delta
      The clock delta.
      double dilation
      The clock dilation.
      long starttime
      The start time.
      double tick
      The current tick.
      long time
      The current time.
      java.lang.String type
      The clock type.
    • Constructor Summary

      Constructors 
      Constructor Description
      ClockState()
      Bean constructor.
      ClockState​(java.lang.String type, long time, double tick, long starttime, long delta, double dilation, boolean changeallowed)
      Create a clock state object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Test if two objects are equal.
      int hashCode()
      The hash code.
      • Methods inherited from class java.lang.Object

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

      • type

        public java.lang.String type
        The clock type.
      • time

        public long time
        The current time.
      • tick

        public double tick
        The current tick.
      • starttime

        public long starttime
        The start time.
      • delta

        public long delta
        The clock delta.
      • dilation

        public double dilation
        The clock dilation.
      • changeallowed

        public boolean changeallowed
        Changing clock type allowed?
    • Constructor Detail

      • ClockState

        public ClockState()
        Bean constructor.
      • ClockState

        public ClockState​(java.lang.String type,
                          long time,
                          double tick,
                          long starttime,
                          long delta,
                          double dilation,
                          boolean changeallowed)
        Create a clock state object.
    • Method Detail

      • hashCode

        public int hashCode()
        The hash code. Overridden to have only one clock state per update.
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Test if two objects are equal. Overridden to have only one clock state per update.
        Overrides:
        equals in class java.lang.Object