Search Results for

    Show / Hide Table of Contents

    Class AlgorithmGenerator

    Algorithm generation utility to be run in the Editor.

    Inheritance
    object
    AlgorithmGenerator
    Namespace: AS2
    Assembly: .dll
    Syntax
    public class AlgorithmGenerator : MonoBehaviour

    Fields

    | Edit this page View Source

    algoName

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

    className

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

    displayName

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

    numPins

    Declaration
    public int numPins
    Field Value
    Type Description
    int
    | Edit this page View Source

    template

    Template for new algorithm files.

    Parameters are namespace (0), class name (1), generation method name (2), display name (3) and number of pins per edge (4).

    Declaration
    private static readonly string template
    Field Value
    Type Description
    string

    Methods

    | Edit this page View Source

    CreateAlgorithm(string, string, string, string, int, string)

    Creates a new algorithm file at the given location and fills it with the template.

    Declaration
    public static void CreateAlgorithm(string nameSpace, string className, string initializerName, string dispName, int nPins, string filename)
    Parameters
    Type Name Description
    string nameSpace

    The namespace in which the algorithm should be wrapped. Usually AS2.Algos.basename.

    string className

    The name of the algorithm class.

    string initializerName

    The name of the initializer class.

    string dispName

    The display name of the algorithm.

    int nPins

    The number of pins per edge used by the algorithm.

    string filename

    The file into which the algorithm should be written.

    • 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