NonSelfStabilizingGossip

A collection of non-self-stabilizing gossip algorithms.

Functions

Link copied to clipboard
fun <ID : Any> Aggregate<ID>.everHappened(condition: () -> Boolean, default: Boolean = false): Boolean

A "gossip" algorithm that computes whether any device has ever experienced a certain condition before.

Link copied to clipboard
fun <ID : Any, Value> Aggregate<ID>.nonSelfStabilizingGossip(value: Value, aggregation: (Value, Value) -> Value): Value

A non-self-stabilizing function for repeated propagation of a value and aggregation of state estimates between neighboring devices.