C# Class PhantomChains.TreeNode

Variants tree node.
Inheritance: AbstractNode
Afficher le fichier Open project: intervals-mining-lab/libiada-core

Méthodes publiques

Méthode 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 méthode

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
Résultat bool

FillChain() public méthode

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. ///
Résultat void

TreeNode() public méthode

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. ///
Résultat System