Search Results for

    Show / Hide Table of Contents

    Class BinOpTestParticle

    Inheritance
    object
    ParticleAlgorithm
    BinOpTestParticle
    Namespace: AS2.Algos.BinOpTest
    Assembly: .dll
    Syntax
    public class BinOpTestParticle : ParticleAlgorithm

    Constructors

    | Edit this page View Source

    BinOpTestParticle(Particle)

    Declaration
    public BinOpTestParticle(Particle p)
    Parameters
    Type Name Description
    Particle p

    Fields

    | Edit this page View Source

    a

    Declaration
    private ParticleAttribute<bool> a
    Field Value
    Type Description
    ParticleAttribute<bool>
    | Edit this page View Source

    b

    Declaration
    private ParticleAttribute<bool> b
    Field Value
    Type Description
    ParticleAttribute<bool>
    | Edit this page View Source

    binOps

    Declaration
    private SubBinOps binOps
    Field Value
    Type Description
    SubBinOps
    | Edit this page View Source

    c

    Declaration
    private ParticleAttribute<bool> c
    Field Value
    Type Description
    ParticleAttribute<bool>
    | Edit this page View Source

    compResult

    Declaration
    private ParticleAttribute<SubComparison.ComparisonResult> compResult
    Field Value
    Type Description
    ParticleAttribute<SubComparison.ComparisonResult>
    | Edit this page View Source

    isMSBA

    Declaration
    private ParticleAttribute<bool> isMSBA
    Field Value
    Type Description
    ParticleAttribute<bool>
    | Edit this page View Source

    isStart

    Declaration
    private ParticleAttribute<bool> isStart
    Field Value
    Type Description
    ParticleAttribute<bool>
    | Edit this page View Source

    mode

    Declaration
    private ParticleAttribute<BinOpTestParticle.Mode> mode
    Field Value
    Type Description
    ParticleAttribute<BinOpTestParticle.Mode>
    | Edit this page View Source

    overflow

    Declaration
    private ParticleAttribute<bool> overflow
    Field Value
    Type Description
    ParticleAttribute<bool>
    | Edit this page View Source

    pred

    Declaration
    private ParticleAttribute<Direction> pred
    Field Value
    Type Description
    ParticleAttribute<Direction>
    | Edit this page View Source

    round

    Declaration
    private ParticleAttribute<int> round
    Field Value
    Type Description
    ParticleAttribute<int>
    | Edit this page View Source

    succ

    Declaration
    private ParticleAttribute<Direction> succ
    Field Value
    Type Description
    ParticleAttribute<Direction>

    Properties

    | Edit this page View Source

    GenerationMethod

    Declaration
    public static string GenerationMethod { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Name

    Declaration
    public static string Name { get; }
    Property Value
    Type Description
    string
    | 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
    Type Description
    int
    Overrides
    ParticleAlgorithm.PinsPerEdge

    Methods

    | 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
    ParticleAlgorithm.ActivateBeep()
    | 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
    ParticleAlgorithm.ActivateMove()
    | Edit this page View Source

    Init(bool, bool, Mode)

    Declaration
    public void Init(bool a = false, bool b = false, BinOpTestParticle.Mode mode = Mode.MULT)
    Parameters
    Type Name Description
    bool a
    bool b
    BinOpTestParticle.Mode mode
    • Edit this page
    • View Source
    In this article
    Back to top AmoebotSim 2.0 Documentation v1.11
    Copyright © 2025 AmoebotSim 2.0 Authors
    Generated by DocFX