C# Class Segmenter.Base.Iterators.BaseIterator

Describes a behavior and a structure of a simple iterator
Inheritance: IIterator
Afficher le fichier Open project: intervals-mining-lab/libiada-core

Protected Properties

Свойство Type Description
chain Segmenter.Base.Sequences.ComplexChain
currentCut List
step int
windowLength int

Méthodes publiques

Méthode Description
BaseIterator ( ComplexChain chain, int length, int step ) : System

Initializes a new instance of the BaseIterator class.

Current ( ) : List

The current.

HasNext ( ) : bool

The has next.

Move ( int position ) : bool

Moves a pointer to specified cursorPosition

Next ( ) : List

The next.

Position ( ) : int

The position.

Reset ( ) : void

The reset.

Private Methods

Méthode Description
CalculateMaxShifts ( ) : void

Calculates count of shifts

Initialize ( ComplexChain chain, int windowLength, int step ) : void

The initialize method.

Method Details

BaseIterator() public méthode

Initializes a new instance of the BaseIterator class.
public BaseIterator ( ComplexChain chain, int length, int step ) : System
chain Segmenter.Base.Sequences.ComplexChain /// An iterated sequence. ///
length int /// Length of a word (window of cutting). ///
step int /// The number of elements through which the pointer will jump at the next iteration. ///
Résultat System

Current() public abstract méthode

The current.
public abstract Current ( ) : List
Résultat List

HasNext() public abstract méthode

The has next.
public abstract HasNext ( ) : bool
Résultat bool

Move() public abstract méthode

Moves a pointer to specified cursorPosition
public abstract Move ( int position ) : bool
position int /// a cursorPosition in a chain subject to a cutting window ///
Résultat bool

Next() public abstract méthode

The next.
public abstract Next ( ) : List
Résultat List

Position() public abstract méthode

The position.
public abstract Position ( ) : int
Résultat int

Reset() public abstract méthode

The reset.
public abstract Reset ( ) : void
Résultat void

Property Details

chain protected_oe property

An iterate sequence
protected ComplexChain,Segmenter.Base.Sequences chain
Résultat Segmenter.Base.Sequences.ComplexChain

currentCut protected_oe property

The currentCut composed sequence was extracted from a chain
protected List currentCut
Résultat List

step protected_oe property

The number of elements through which the pointer will jump at the next iteration
protected int step
Résultat int

windowLength protected_oe property

Length of a word (window of cutting)
protected int windowLength
Résultat int