Home Reference Source Repository
public class | source

VVwEEntry

Create an entry of the version vector with exceptions containing the index of the entry, the value v that creates a contiguous interval from 0 to v, an array of integers that contains the operations lower to v that have not been received yet.

Static Method Summary

Static Public Methods
public static

Comparison function between two VVwE entries.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

e: *

public
public

x: *[]

Method Summary

Public Methods
public

Increment the local counter.

public

Increment from a remote operation.

Static Public Methods

public static comparator(a: VVwEEntry, b: VVwEEntry): * source

Comparison function between two VVwE entries.

Params:

NameTypeAttributeDescription
a VVwEEntry

The first element.

b VVwEEntry

The second element.

Return:

*

1 if a < b, 1 if a > b, 0 otherwise

Public Constructors

public constructor(e: Object) source

Params:

NameTypeAttributeDescription
e Object

The entry in the interval version vector.

Public Members

public e: * source

public v: number source

public x: *[] source

Public Methods

public increment() source

Increment the local counter.

public incrementFrom(c: Number) source

Increment from a remote operation.

Params:

NameTypeAttributeDescription
c Number

the counter of the operation to add to this.