C# 클래스 Segmenter.Base.Iterators.BaseIterator

Describes a behavior and a structure of a simple iterator
상속: IIterator
파일 보기 프로젝트 열기: intervals-mining-lab/libiada-core

보호된 프로퍼티들

프로퍼티 타입 설명
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