C# 클래스 LibiadaCore.Core.Chain

Sequence class.
상속: BaseChain, IBaseObject
파일 보기 프로젝트 열기: intervals-mining-lab/libiada-core 1 사용 예제들

공개 메소드들

메소드 설명
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