C# Класс LibiadaCore.Core.Chain

Sequence class.
Наследование: BaseChain, IBaseObject
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Chain ( ) : System.Collections.Generic

Initializes a new instance of the Chain class.

Chain ( List source ) : System.Collections.Generic

Initializes a new instance of the Chain class from string. Each character becomes element.

Chain ( int length ) : System.Collections.Generic

Initializes a new instance of the Chain class.

Chain ( int building, Alphabet alphabet ) : System.Collections.Generic

Initializes a new instance of the Chain class with provided building and alphabet. Only simple validation is made.

Chain ( int building, Alphabet alphabet, long id ) : System.Collections.Generic

Initializes a new instance of the Chain class with provided building and alphabet. Only simple validation is made.

Chain ( string source ) : System.Collections.Generic

Initializes a new instance of the Chain class from string. Each character becomes element.

ClearAndSetNewLength ( int length ) : void

Deletes chain (building and alphabet) and creates new empty chain with given length.

Clone ( ) : IBaseObject

Creates clone of this chain.

CongenericChain ( IBaseObject baseObject ) : CongenericChain

Returns clone of congeneric sequence of given element. If there is no such element in chain returns null.

CongenericChain ( int index ) : CongenericChain

Returns clone of congeneric sequence by index of its element in alphabet.

DeleteAt ( int index ) : void

Removes element from given position.

FillIntervalManagers ( ) : void

Fills all interval managers.

GetOccurrence ( IBaseObject element, int entry ) : int

Returns position of given occurrence of given element.

GetOrCreateCongenericChain ( IBaseObject element ) : CongenericChain

Gets or creates congeneric chain.

GetRelationIntervalsManager ( IBaseObject first, IBaseObject second ) : BinaryIntervalsManager

The get relation intervals manager.

GetRelationIntervalsManager ( int first, int second ) : BinaryIntervalsManager

The get relation interval manager.

RemoveAt ( int index ) : void

The remove at.

Set ( IBaseObject item, int index ) : void

Sets item in provided position.

TryGetCongenericChain ( IBaseObject element ) : CongenericChain

Tries to get congeneric chain. if there is no such chain returns null.

Защищенные методы

Метод Описание
FillClone ( IBaseObject clone ) : void

Fills clone of this chain.

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

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

Fills all congeneric chains of this chain. All congeneric sequences stored in congenericChains field.

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

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

Initializes a new instance of the Chain class.
public Chain ( ) : System.Collections.Generic
Результат System.Collections.Generic

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

Initializes a new instance of the Chain class from string. Each character becomes element.
public Chain ( List source ) : System.Collections.Generic
source List /// The source string. ///
Результат System.Collections.Generic

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

Initializes a new instance of the Chain class.
public Chain ( int length ) : System.Collections.Generic
length int /// The length of chain. ///
Результат System.Collections.Generic

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

Initializes a new instance of the Chain class with provided building and alphabet. Only simple validation is made.
public Chain ( int building, Alphabet alphabet ) : System.Collections.Generic
building int /// The building of chain. ///
alphabet Alphabet /// The alphabet of chain. ///
Результат System.Collections.Generic

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

Initializes a new instance of the Chain class with provided building and alphabet. Only simple validation is made.
public Chain ( int building, Alphabet alphabet, long id ) : System.Collections.Generic
building int /// The building of chain. ///
alphabet Alphabet /// The alphabet of chain. ///
id long /// Id of sequence. ///
Результат System.Collections.Generic

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

Initializes a new instance of the Chain class from string. Each character becomes element.
public Chain ( string source ) : System.Collections.Generic
source string /// The source string. ///
Результат System.Collections.Generic

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

Deletes chain (building and alphabet) and creates new empty chain with given length.
public ClearAndSetNewLength ( int length ) : void
length int /// New chain length. ///
Результат void

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

Creates clone of this chain.
public Clone ( ) : IBaseObject
Результат IBaseObject

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

Returns clone of congeneric sequence of given element. If there is no such element in chain returns null.
public CongenericChain ( IBaseObject baseObject ) : CongenericChain
baseObject IBaseObject /// Element of congeneric chain. ///
Результат CongenericChain

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

Returns clone of congeneric sequence by index of its element in alphabet.
public CongenericChain ( int index ) : CongenericChain
index int /// Index of element of congeneric chain in alphabet. ///
Результат CongenericChain

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

Removes element from given position.
public DeleteAt ( int index ) : void
index int /// Index of deleted position. ///
Результат void

FillClone() защищенный Метод

Fills clone of this chain.
protected FillClone ( IBaseObject clone ) : void
clone IBaseObject /// The clone of chain. ///
Результат void

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

Fills all interval managers.
public FillIntervalManagers ( ) : void
Результат void

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

Returns position of given occurrence of given element.
public GetOccurrence ( IBaseObject element, int entry ) : int
element IBaseObject /// Element to find. ///
entry int /// occurrence of given element. ///
Результат int

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

Gets or creates congeneric chain.
public GetOrCreateCongenericChain ( IBaseObject element ) : CongenericChain
element IBaseObject /// The element of congeneric chain. ///
Результат CongenericChain

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

The get relation intervals manager.
public GetRelationIntervalsManager ( IBaseObject first, IBaseObject second ) : BinaryIntervalsManager
first IBaseObject /// The first. ///
second IBaseObject /// The second. ///
Результат BinaryIntervalsManager

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

The get relation interval manager.
public GetRelationIntervalsManager ( int first, int second ) : BinaryIntervalsManager
first int /// The first. ///
second int /// The second. ///
Результат BinaryIntervalsManager

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

The remove at.
public RemoveAt ( int index ) : void
index int /// Index of deleted element. ///
Результат void

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

Sets item in provided position.
public Set ( IBaseObject item, int index ) : void
item IBaseObject /// The item. ///
index int /// The index. ///
Результат void

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

Tries to get congeneric chain. if there is no such chain returns null.
public TryGetCongenericChain ( IBaseObject element ) : CongenericChain
element IBaseObject /// The element of seeked congeneric chain. ///
Результат CongenericChain