Class NodeGene
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
typeGeneticNodeTypevaluestring
Properties
Children
Gets or sets the child nodes.
public List<NodeGene> Children { get; set; }
Property Value
Type
Gets or sets the type of node.
public GeneticNodeType Type { get; set; }
Property Value
Value
Gets or sets the value or function name.
public string Value { get; set; }
Property Value
Methods
Clone()
public NodeGene Clone()
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.