LUC.DVVSet 2.0.3.6

dotnet add package LUC.DVVSet --version 2.0.3.6
NuGet\Install-Package LUC.DVVSet -Version 2.0.3.6
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LUC.DVVSet" Version="2.0.3.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LUC.DVVSet --version 2.0.3.6
#r "nuget: LUC.DVVSet, 2.0.3.6"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install LUC.DVVSet as a Cake Addin
#addin nuget:?package=LUC.DVVSet&version=2.0.3.6

// Install LUC.DVVSet as a Cake Tool
#tool nuget:?package=LUC.DVVSet&version=2.0.3.6

Dotted-version vector clocks

This is adaptation from Erlang to C#
Original code: https://github.com/ricardobcl/Dotted-Version-Vectors

STRUCTURE

clock() :: {entries(), values()}.
vector() :: [{counter(), values()}].
entries() :: [{id()}, {counter(), [values()]}].
id() :: string().
values() :: [value()].
value() :: string().
counter() :: non_neg_integer().

Structure of clocks

{id,{counter,{values}}

Each operation with clock causes a counter increment. Id is a unique value, entries in the clock cannot have the same id value.

Methods

Create (clock, Id)

Metod Create advances the causal history with the given id.

Example: we take a empty clock with a value "v1" and create a new clock with id "a":
Create(new Clock("v1"), "a") → [{a,1,["v1"]}],[]

Join

Return a entries without any values.

Example: Join([{a,1,["v1"]}],[] → [{a,1,[]}]

Clock Update(clock1, clock2, Id)

Advances the causal history of the first clock with the given id, while synchronizing with the second clock, thus the new clock is causally newer than both clocks in the argument. The new value is the anonymous dot of the clock.

Examples:
Update([{a,1,[]}],["v2"](first clock),[{a,1,["v1"]}],[](second clock),"a"(id)) → [{a,2,[v2]}],[]
Update([{a,1,[]}],["v4"](first clock),[{a,2,[]}],["v2"](second clock),"b"(id)) → [{a,2,[v2]}],[{b,1,[v4]}],[]
Update([{a,1,[]}],["v5"](first clock),[{a,2,[]}],[v2](second clock),"a"(id)) → [{a,3,[v5][v2]}],[]

SyncClocks(Clock clock1, Clock clock2)

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.3.6 158 5/5/2023
1.0.3.6 490 2/5/2022
1.0.3.5 431 2/5/2022
1.0.3.1 420 1/13/2022
1.0.3 438 1/13/2022
1.0.2 433 1/12/2022
1.0.1 312 12/12/2021
1.0.0.4 453 12/11/2021
1.0.0.3 332 9/4/2021
1.0.0.2 367 6/15/2021
1.0.0.1 314 6/13/2021
1.0.0 330 6/13/2021

Compiled for .NET