Package org.onosproject.core
Class HybridLogicalTime
- java.lang.Object
-
- org.onosproject.core.HybridLogicalTime
-
public class HybridLogicalTime extends java.lang.Object
Time 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 long
logicalCounter()
Returns the logical counter component of a HLT.long
logicalTime()
Returns the logical time component of a HLT.long
time()
Returns the real system time represented by this HLT.java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-