C# Класс PhantomChains.TreeNode

Variants tree node.
Наследование: AbstractNode
Показать файл Открыть проект

Открытые методы

Метод Описание
Decrement ( ) : bool

Recursive method decrementing variations of current branch. Also decreases variants count of current node by 1. Called after generation of another value.

FillChain ( BaseChain result, IGenerator generator, PhantomTable table ) : void

Method adds new element into generated sequence. And calls the same method of one of the children if sequence is incomplete.

TreeNode ( AbstractNode parent, IBaseObject content, PhantomTable table ) : System

Initializes a new instance of the TreeNode class.

Описание методов

Decrement() публичный Метод

Recursive method decrementing variations of current branch. Also decreases variants count of current node by 1. Called after generation of another value.
public Decrement ( ) : bool
Результат bool

FillChain() публичный Метод

Method adds new element into generated sequence. And calls the same method of one of the children if sequence is incomplete.
public FillChain ( BaseChain result, IGenerator generator, PhantomTable table ) : void
result LibiadaCore.Core.BaseChain /// Generated sequence. ///
generator IGenerator /// Random number generator. ///
table PhantomTable /// Parameters table. ///
Результат void

TreeNode() публичный Метод

Initializes a new instance of the TreeNode class.
/// Thrown if parent is null. ///
public TreeNode ( AbstractNode parent, IBaseObject content, PhantomTable table ) : System
parent AbstractNode /// Parent node. ///
content IBaseObject /// Content of the this node. ///
table PhantomTable /// Parameters table. ///
Результат System