Class JMTestParticle
Inheritance
object
JMTestParticle
Assembly: .dll
Syntax
public class JMTestParticle : ParticleAlgorithm
Constructors
|
Edit this page
View Source
JMTestParticle(Particle)
Declaration
public JMTestParticle(Particle p)
Parameters
Fields
|
Edit this page
View Source
mode
Declaration
private ParticleAttribute<int> mode
Field Value
|
Edit this page
View Source
role
Declaration
private ParticleAttribute<int> role
Field Value
|
Edit this page
View Source
terminated
Declaration
private ParticleAttribute<bool> terminated
Field Value
Properties
|
Edit this page
View Source
GenerationMethod
Declaration
public static string GenerationMethod { get; }
Property Value
|
Edit this page
View Source
Name
Declaration
public static string Name { get; }
Property Value
|
Edit this page
View Source
PinsPerEdge
The number of pins on each edge.
This number must be the same constant for all
particles.
Declaration
public override int PinsPerEdge { get; }
Property Value
Overrides
Methods
|
Edit this page
View Source
Activate0()
Declaration
|
Edit this page
View Source
Activate1()
Declaration
|
Edit this page
View Source
Activate11()
Declaration
private void Activate11()
|
Edit this page
View Source
Activate12()
Declaration
private void Activate12()
|
Edit this page
View Source
Activate13()
Declaration
private void Activate13()
|
Edit this page
View Source
Activate14()
Declaration
private void Activate14()
|
Edit this page
View Source
Activate15()
Declaration
private void Activate15()
|
Edit this page
View Source
Activate16()
Declaration
private void Activate16()
|
Edit this page
View Source
Activate17()
Declaration
private void Activate17()
|
Edit this page
View Source
Activate2()
Declaration
|
Edit this page
View Source
Activate3()
Declaration
|
Edit this page
View Source
Activate4()
Declaration
|
Edit this page
View Source
Activate5()
Declaration
|
Edit this page
View Source
Activate6()
Declaration
|
Edit this page
View Source
Activate7()
Declaration
|
Edit this page
View Source
Activate8()
Declaration
|
Edit this page
View Source
Activate9_10()
Declaration
private void Activate9_10()
|
Edit this page
View Source
ActivateBeep()
This is the second part of the main activation logic of the
particle. It is called exactly once in each round, after the
movements scheduled in ActivateMove() have been
executed, and should contain the algorithm code that
implements the look-compute-beep cycle.
Inside of this method, particles are allowed to change their
pin configuration and send beeps and messages on the updated
configuration.
Note that beeps and messages sent in the current round will
be readable in both the ActivateMove() and
ActivateBeep() calls in the next round.
Declaration
public override void ActivateBeep()
Overrides
|
Edit this page
View Source
ActivateMove()
This is one part of the main activation logic of the particle.
It is called exactly once in each round and should contain the
algorithm code that implements the look-compute-move cycle.
After the movements are executed, ActivateBeep()
is called within the same round.
Inside of this method, particles are allowed to release bonds,
define which bonds should be marked, and schedule movements.
Only the last movement operation scheduled in this method will
be applied.
Declaration
public override void ActivateMove()
Overrides
|
Edit this page
View Source
Init(int, int)
Declaration
public void Init(int mode, int role)
Parameters
Type |
Name |
Description |
int |
mode |
|
int |
role |
|