C# Class Segmenter.Base.Iterators.BaseIterator

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

Protected Properties

Property Type Description
chain Segmenter.Base.Sequences.ComplexChain
currentCut List
step int
windowLength int

Public Methods

Method 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

Method Description
CalculateMaxShifts ( ) : void

Calculates count of shifts

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

The initialize method.

Method Details

BaseIterator() public method

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. ///
return System

Current() public abstract method

The current.
public abstract Current ( ) : List
return List

HasNext() public abstract method

The has next.
public abstract HasNext ( ) : bool
return bool

Move() public abstract method

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

Next() public abstract method

The next.
public abstract Next ( ) : List
return List

Position() public abstract method

The position.
public abstract Position ( ) : int
return int

Reset() public abstract method

The reset.
public abstract Reset ( ) : void
return void

Property Details

chain protected_oe property

An iterate sequence
protected ComplexChain,Segmenter.Base.Sequences chain
return Segmenter.Base.Sequences.ComplexChain

currentCut protected_oe property

The currentCut composed sequence was extracted from a chain
protected List currentCut
return List

step protected_oe property

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

windowLength protected_oe property

Length of a word (window of cutting)
protected int windowLength
return int