Class Sparsechoice

  • All Implemented Interfaces:

    
    public final class Sparsechoice
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • S

         final static Boolean S(Number grain, Function1<Unit, Number> metric)

        Devices compete against one another to become local leaders, resulting in a random Voronoi partition with a characteristic grain size.

        Parameters:
        grain - partition dimension
        metric - estimate distance from the leader
        Returns:

        true if the current device is the leader, false otherwise

      • boundedElection

         final static Boolean boundedElection(Number localId, Number radius, Number strength, Function1<Unit, Number> metric)

        Multi-leader election based on a symmetry breaking value, presented at ACSOS 2022. Implemented from <i>Self-stabilising Priority-Based Multi-Leader Election and Network Partitioning</i>. Find more at https://ieeexplore.ieee.org/document/9935012

        Parameters:
        localId - local identifier
        radius - extension of the local candidacy
        strength - power of the local device candidacy
        metric - estimated distance from neighbors
        Returns:

        true if the current device is the leader, false otherwise