Namespace AS2.Algos.BoundaryTest
Classes
BoundaryTestParticle
Implementation of the inner outer boundary test from https://arxiv.org/abs/2205.02610v1.
Common chirality and compass alignment are assumed. The particles determine whether or not they are part of a boundary, elect a leader on each boundary, and then test whether their boundary is an inner or the outer boundary.
The phases are synchronized by periodic beeps on the global circuit by particles that have not yet finished their current phase. All particles terminate once the boundary test has finished on each boundary.
The outer boundary's direction is counter-clockwise while the direction of each inner boundary is clockwise.