Home Reference Source Repository
public class | source

VVwE

Version vector with exceptions.

Static Method Summary

Static Public Methods
public static

fromJSON(object: *): VVwE

Get a version vector with exceptions using a JSON.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

local: *

public

vector: *

Method Summary

Public Methods
public

clone(): VVwE

Clone of this vvwe.

public

Increment the entry of the vector on local update.

public

Increment from a remote operation.

public

isLower(ec: Pair): *

Check if the message contains information already delivered.

public

Check if the argument are causally ready regards to this vector.

public

merge(other: VVwE)

Merges the version vector in argument with this.

Static Public Methods

public static fromJSON(object: *): VVwE source

Get a version vector with exceptions using a JSON.

Params:

NameTypeAttributeDescription
object *

Return:

VVwE

The version vector with exceptions extracted from the JSON in argument.

Public Constructors

public constructor(e: Object) source

Params:

NameTypeAttributeDescription
e Object

The entry chosen by the local site. One entry per site.

Public Members

public local: * source

public vector: * source

Public Methods

public clone(): VVwE source

Clone of this vvwe.

Return:

VVwE

A version vector with exceptions containing the same entry; clock; exceptions triples.

public increment(): Pair source

Increment the entry of the vector on local update.

Return:

Pair

A pair that uniquely identifies the operation.

public incrementFrom(ec: Pair) source

Increment from a remote operation.

Params:

NameTypeAttributeDescription
ec Pair

The entry and clock of the received event to add supposedly ready.

public isLower(ec: Pair): * source

Check if the message contains information already delivered.

Params:

NameTypeAttributeDescription
ec Pair

the site clock to check.

Return:

*

public isReady(ec: Pair): Boolean source

Check if the argument are causally ready regards to this vector.

Params:

NameTypeAttributeDescription
ec Pair

The identifier, i.e., the site clock of the operation that happened-before the current event.

Return:

Boolean

true if the event is ready, i.e. the identifier has already been integrated to this vector; false otherwise.

public merge(other: VVwE) source

Merges the version vector in argument with this.

Params:

NameTypeAttributeDescription
other VVwE

the other version vector to merge with.