C# Class PhantomChains.TreeTop

Root node of variants tree.
Inheritance: AbstractNode
显示文件 Open project: intervals-mining-lab/libiada-core Class Usage Examples

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.

Generate ( ) : BaseChain

Method starting generation of the sequence.

TreeTop ( BaseChain source, IGenerator generator ) : LibiadaCore.Core

Initializes a new instance of the TreeTop class, representing root element of the tree.

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

Generate() public method

Method starting generation of the sequence.
public Generate ( ) : BaseChain
return LibiadaCore.Core.BaseChain

TreeTop() public method

Initializes a new instance of the TreeTop class, representing root element of the tree.
public TreeTop ( BaseChain source, IGenerator generator ) : LibiadaCore.Core
source LibiadaCore.Core.BaseChain /// The input chain. ///
generator IGenerator /// The gen. ///
return LibiadaCore.Core