Class LeaderElectionInitializer
Namespace: AS2.Algos.LeaderElection
Assembly: .dll
Syntax
public class LeaderElectionInitializer : InitializationMethod
Constructors
LeaderElectionInitializer(ParticleSystem)
Declaration
public LeaderElectionInitializer(ParticleSystem system)
Parameters
| Type | Name | Description |
|---|---|---|
| ParticleSystem | system |
Methods
Generate(int, float)
Declaration
public void Generate(int numParticles = 50, float holeProb = 0.3)
Parameters
| Type | Name | Description |
|---|---|---|
| int | numParticles | |
| float | holeProb |