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 SourcealgoName
Declaration
public string algoName
Field Value
Type | Description |
---|---|
string |
className
Declaration
public string className
Field Value
Type | Description |
---|---|
string |
displayName
Declaration
public string displayName
Field Value
Type | Description |
---|---|
string |
numPins
Declaration
public int numPins
Field Value
Type | Description |
---|---|
int |
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 SourceCreateAlgorithm(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 |
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. |