C# Класс Segmenter.Base.Iterators.BaseIterator

Describes a behavior and a structure of a simple iterator
Наследование: IIterator
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
chain Segmenter.Base.Sequences.ComplexChain
currentCut List
step int
windowLength int

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

Метод Описание
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.

Приватные методы

Метод Описание
CalculateMaxShifts ( ) : void

Calculates count of shifts

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

The initialize method.

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

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

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. ///
Результат System

Current() публичный абстрактный Метод

The current.
public abstract Current ( ) : List
Результат List

HasNext() публичный абстрактный Метод

The has next.
public abstract HasNext ( ) : bool
Результат bool

Move() публичный абстрактный Метод

Moves a pointer to specified cursorPosition
public abstract Move ( int position ) : bool
position int /// a cursorPosition in a chain subject to a cutting window ///
Результат bool

Next() публичный абстрактный Метод

The next.
public abstract Next ( ) : List
Результат List

Position() публичный абстрактный Метод

The position.
public abstract Position ( ) : int
Результат int

Reset() публичный абстрактный Метод

The reset.
public abstract Reset ( ) : void
Результат void

Описание свойств

chain защищенное свойство

An iterate sequence
protected ComplexChain,Segmenter.Base.Sequences chain
Результат Segmenter.Base.Sequences.ComplexChain

currentCut защищенное свойство

The currentCut composed sequence was extracted from a chain
protected List currentCut
Результат List

step защищенное свойство

The number of elements through which the pointer will jump at the next iteration
protected int step
Результат int

windowLength защищенное свойство

Length of a word (window of cutting)
protected int windowLength
Результат int