Search Results for

    Show / Hide Table of Contents

    Class StatusInfoAttribute

    A method attribute identifying a static method as a status info method. Static methods of algorithm classes that are marked with this attribute will be represented by buttons in the Particle Panel in Simulation Mode. The button belonging to each method will be marked with the given name.

    Inheritance
    object
    Attribute
    StatusInfoAttribute
    Namespace: AS2
    Assembly: .dll
    Syntax
    [AttributeUsage(AttributeTargets.Method)]
    public class StatusInfoAttribute : Attribute

    Constructors

    | Edit this page View Source

    StatusInfoAttribute(string, string, bool)

    Marks this static method as a status info method. The method must have two parameters: The first must have type ParticleSystem and gives access to the entire particle system and the second must have type Particle and gives access to the currently selected particle.

    Declaration
    public StatusInfoAttribute(string name, string tooltip = null, bool autocall = false)
    Parameters
    Type Name Description
    string name

    The label of the button in the Particle Panel.

    string tooltip

    The (optional) tooltip to be displayed for the button.

    bool autocall

    Whether the status info method should be called automatically at the end of each round by default. This behavior can be changed using the toggles in the Particle Panel.

    Fields

    | Edit this page View Source

    autocall

    Whether this info method should be called automatically at the end of each round.

    Declaration
    public bool autocall
    Field Value
    Type Description
    bool
    | Edit this page View Source

    name

    The display name of the status info method.

    Declaration
    public string name
    Field Value
    Type Description
    string
    | Edit this page View Source

    tooltip

    The tooltip to be displayed for the status info button.

    Declaration
    public string tooltip
    Field Value
    Type Description
    string
    • 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