Package org.onosproject.core
Class HybridLogicalTime
- java.lang.Object
-
- org.onosproject.core.HybridLogicalTime
-
public class HybridLogicalTime extends java.lang.ObjectTime provided by a Hybrid Logical Clock described in this paper.
-
-
Constructor Summary
Constructors Constructor Description HybridLogicalTime(long logicalTime, long logicalCounter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longlogicalCounter()Returns the logical counter component of a HLT.longlogicalTime()Returns the logical time component of a HLT.longtime()Returns the real system time represented by this HLT.java.lang.StringtoString()
-
-
-
Method Detail
-
logicalTime
public long logicalTime()
Returns the logical time component of a HLT.- Returns:
- logical time
-
logicalCounter
public long logicalCounter()
Returns the logical counter component of a HLT.- Returns:
- logical counter
-
time
public long time()
Returns the real system time represented by this HLT.- Returns:
- real system time
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-