Table of Contents

Class NodeGene

Namespace
AiDotNet.Genetics
Assembly
AiDotNet.dll

Represents a node in a genetic programming tree.

public class NodeGene
Inheritance
NodeGene
Inherited Members

Constructors

NodeGene(GeneticNodeType, string)

public NodeGene(GeneticNodeType type, string value)

Parameters

type GeneticNodeType
value string

Properties

Children

Gets or sets the child nodes.

public List<NodeGene> Children { get; set; }

Property Value

List<NodeGene>

Type

Gets or sets the type of node.

public GeneticNodeType Type { get; set; }

Property Value

GeneticNodeType

Value

Gets or sets the value or function name.

public string Value { get; set; }

Property Value

string

Methods

Clone()

public NodeGene Clone()

Returns

NodeGene

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.