Class SubSPFMerging
Set of possible comparison results.
Inheritance
object
SubSPFMerging
Assembly: .dll
Syntax
public class SubSPFMerging : Subroutine
Constructors
|
Edit this page
View Source
SubSPFMerging(Particle)
Declaration
public SubSPFMerging(Particle p)
Parameters
Fields
|
Edit this page
View Source
centroid
Declaration
private ParticleAttribute<bool> centroid
Field Value
|
Edit this page
View Source
cmp
Declaration
private BinAttributeEnum<SubSPFMerging.Comparison> cmp
Field Value
|
Edit this page
View Source
colored
Declaration
private BinAttributeBool colored
Field Value
|
Edit this page
View Source
counter
Declaration
private BinAttributeInt counter
Field Value
|
Edit this page
View Source
counter2
Declaration
private BinAttributeInt counter2
Field Value
|
Edit this page
View Source
finished
Declaration
private BinAttributeBool finished
Field Value
|
Edit this page
View Source
inMPrime
Declaration
private BinAttributeBool inMPrime
Field Value
|
Edit this page
View Source
instanceIndex
Declaration
private BinAttributeInt instanceIndex
Field Value
|
Edit this page
View Source
isSource
Declaration
private BinAttributeBool isSource
Field Value
|
Edit this page
View Source
marker1
Declaration
private BinAttributeBool marker1
Field Value
|
Edit this page
View Source
marker2
Declaration
private BinAttributeBool marker2
Field Value
|
Edit this page
View Source
numInstances
Declaration
private BinAttributeInt numInstances
Field Value
|
Edit this page
View Source
onQPrime
Declaration
private ParticleAttribute<bool> onQPrime
Field Value
|
Edit this page
View Source
parentDir1
Declaration
private BinAttributeDirection parentDir1
Field Value
|
Edit this page
View Source
parentDir2
Declaration
private BinAttributeDirection parentDir2
Field Value
|
Edit this page
View Source
pasc1
Declaration
Field Value
|
Edit this page
View Source
pasc1Bit
Declaration
private BinAttributeInt pasc1Bit
Field Value
|
Edit this page
View Source
pasc1Participant
Declaration
private BinAttributeBool pasc1Participant
Field Value
|
Edit this page
View Source
pasc2
Declaration
Field Value
|
Edit this page
View Source
pasc2Bit
Declaration
private BinAttributeInt pasc2Bit
Field Value
|
Edit this page
View Source
pasc2Participant
Declaration
private BinAttributeBool pasc2Participant
Field Value
|
Edit this page
View Source
requiresMerge
Declaration
private BinAttributeBool requiresMerge
Field Value
|
Edit this page
View Source
round
Declaration
private BinAttributeInt round
Field Value
|
Edit this page
View Source
state
Declaration
private ParticleAttribute<int> state
Field Value
Methods
|
Edit this page
View Source
ActivateReceive()
Declaration
public void ActivateReceive()
|
Edit this page
View Source
ActivateSend()
Declaration
public void ActivateSend()
|
Edit this page
View Source
GetComparisonResult()
Declaration
public SubSPFMerging.Comparison GetComparisonResult()
Returns
|
Edit this page
View Source
GetPinMapping(Direction, int, bool, bool)
Declaration
private (int, int, int, int) GetPinMapping(Direction dir, int instanceIdx, bool marker1Flag, bool qPrimeFlag)
Parameters
| Type |
Name |
Description |
| Direction |
dir |
|
| int |
instanceIdx |
|
| bool |
marker1Flag |
|
| bool |
qPrimeFlag |
|
Returns
| Type |
Description |
| (int, int, int, int) |
|
|
Edit this page
View Source
GetResultDirection()
Declaration
public Direction GetResultDirection()
Returns
|
Edit this page
View Source
IgnoreDirections()
Declaration
private List<Direction> IgnoreDirections()
Returns
|
Edit this page
View Source
Init(int, Direction, Direction, bool, int, int, bool, bool, bool, bool, bool, bool)
Declaration
public void Init(int id, Direction parentDir1, Direction parentDir2, bool isSource, int counter2, int numInstances, bool colored, bool marker1, bool marker2, bool inMPrime = false, bool centroid = false, bool onQPrime = false)
Parameters
| Type |
Name |
Description |
| int |
id |
|
| Direction |
parentDir1 |
|
| Direction |
parentDir2 |
|
| bool |
isSource |
|
| int |
counter2 |
|
| int |
numInstances |
|
| bool |
colored |
|
| bool |
marker1 |
|
| bool |
marker2 |
|
| bool |
inMPrime |
|
| bool |
centroid |
|
| bool |
onQPrime |
|
|
Edit this page
View Source
IsFinished()
Checks whether the ETT procedure has finished.
Declaration
Returns
| Type |
Description |
| bool |
true if and only if no termination
beep was received in the last termination round.
|
|
Edit this page
View Source
RequiresMerge()
Declaration
public bool RequiresMerge()
Returns
|
Edit this page
View Source
SetupPC(PinConfiguration)
Sets up the required partition sets for the next
beep in the given pin configuration.
Declaration
public void SetupPC(PinConfiguration pc)
Parameters
| Type |
Name |
Description |
| PinConfiguration |
pc |
The pin configuration to be modified.
It has to be set as the next configuration before
ActivateSend() is called.
|
|
Edit this page
View Source
SetupRegionCircuits(PinConfiguration, Direction, bool, bool)
Sets up two circuits for each region. The partition set IDs
will be 2i and 2i + 1 for instance i.
Declaration
private void SetupRegionCircuits(PinConfiguration pc, Direction portalDir, bool connectMarker = false, bool connectCentroid = false)
Parameters
| Type |
Name |
Description |
| PinConfiguration |
pc |
The pin configuration to modify.
|
| Direction |
portalDir |
The direction of the portal axis.
|
| bool |
connectMarker |
Whether to connect the two sides of a marker.
|
| bool |
connectCentroid |
Whether to connect the two sides of the centroid.
|