Namespace AS2.Suboracles
Classes
Shear
Implements a shear transformation on a contiguous line of member particles.
The handling with bonds can be configured. // TODO:
The suboracle is called on its representative, but stores per-particle data via ParticleAttributes. An anchor particle (either explicitly provided or the representative) serves as the fixed reference point for the shear.
Suboracle<T>
Base class for all suboracles. A suboracle encapsulates a subtask on a group of member particles.
Each member particle owns its own suboracle instance (created in the particle constructor)
that stores per-particle state via ParticleAttribute<T> attributes.
One designated member — the representative — drives the subtask:
its Init(List<T>) method receives the full member list, and its Activate()
method is called round-by-round until the subtask completes, either by a [Oracle]
method on the owning ParticleAlgorithm or inside another Suboracle<T>.
A suboracle instance on a representative can be reused, but needs to be resetted via Reset() before re-initialisation.