org.sdnplatform.sync
Interface IVersion

All Known Implementing Classes:
VectorClock

public interface IVersion

An interface that allows us to determine if a given version happened before or after another version. This could have been done using the comparable interface but that is confusing, because the numeric codes are easily confused, and because concurrent versions are not necessarily "equal" in the normal sense.


Nested Class Summary
static class IVersion.Occurred
          The result of comparing two times--either t1 is BEFORE t2, t1 is AFTER t2, or t1 happens CONCURRENTLY to t2.
 
Method Summary
 IVersion.Occurred compare(IVersion v)
          Return whether or not the given version preceeded this one, succeeded it, or is concurrant with it
 

Method Detail

compare

IVersion.Occurred compare(IVersion v)
Return whether or not the given version preceeded this one, succeeded it, or is concurrant with it

Parameters:
v - The other version