C# Class PhantomChains.TreeNode

Variants tree node.
Inheritance: AbstractNode
显示文件 Open project: intervals-mining-lab/libiada-core

Public Methods

Method Description
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.

Method Details

Decrement() public method

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
return bool

FillChain() public method

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. ///
return void

TreeNode() public method

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. ///
return System