Hide Comments
Hide Comments

Comments (0)

expandingMethods

 

Name

Description

public method

AddChild(TRSGPNode<T>)

Add the specified node as a child of the current node

public method

Assign(TPersistent)

Makes a deep copy (i.e., all children, grandchildren, etc) of the Source to the node

protected method

CalcDepth

Calculate the depth of the tree with this node as the parent

protected method

CalcSize

Calculate the size of the tree with this node as the parent

public method

Clear

Empties the node of all information (i.e.,   Instruction equals nil,   Value equals default, and children are deleted and freed)

public method

Clone(TRSGPNode<T>)

Creates a copy of the current node and all of its children. This is a deep copy of the entire subtree.

protected method

CreateNode(TRSGPInstruction<T>,TRSGPNode<T>)

Represents method CreateNode(TRSGPInstruction<T>,TRSGPNode<T>).

public method

Depth

Returns the depth (maximum number of levels of children) of the subtree with this node as its root. If the node has no children, the depth is 1. If the node has children, its depth is 2. If at least one of its children has children, the depth is 3, etc.

public method

Execute(TRSGPContext<T>)

Executes the current node using the specified Context.

Note that it is up to the Instruction to do the actual execution in its     OnExecute event. The instruction is also where the decision to execute children event or not is made.

public method

ExtractChild(TRSGPNode<T>)

Extracts the specified node from the current node's list of child nodes

protected method

GetChild(Integer)

Represents method GetChild(Integer).

protected method

GetChildCount

Represents method GetChildCount.

public method

IndexOf(TRSGPNode<T>)

Searchs for the Node as a child of the current node. If the node is found, this method returns the index to access the child. Otherwise, it returns -1.

public method

InsertChild(Integer,TRSGPNode<T>)

Inserts the Node as a child of the current node at the specified Index

public method

IsTerminal

Returns true if the node is a terminal (constant, variable, or function with arity of 0)

public method

LoadFromXML(IXMLDnaType)

Loads the node and its children from the XML

public method

LoadValueFromXML(IXMLDnaType)

Loads the   Value from the XML

protected method

Modified

Represents method Modified.

public method

SaveToXML(IXMLDnaType)

Saves the node and its children to the XML

public method

SaveValueToXML(IXMLDnaType)

Saves the   Value to the XML

protected method

SetValue(T)

Represents method SetValue(T).

public method

Size

Returns the size (how many children, grandchildren, etc) of the subtree with this node as its root. If the node has no children, the depth is 1.

public method

ToString

Returns a prefix notation version of the node and its children

public method

ValueToString

Returns a string representation of the   Value.

Top

Comments (0)