C# Class LibiadaCore.Core.Chain

Sequence class.
Inheritance: BaseChain, IBaseObject
Afficher le fichier Open project: intervals-mining-lab/libiada-core Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
FillClone ( IBaseObject clone ) : void

Fills clone of this chain.

Private Methods

Méthode Description
FillCongenericChains ( ) : void

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

Method Details

Chain() public méthode

Initializes a new instance of the Chain class.
public Chain ( ) : System.Collections.Generic
Résultat System.Collections.Generic

Chain() public méthode

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. ///
Résultat System.Collections.Generic

Chain() public méthode

Initializes a new instance of the Chain class.
public Chain ( int length ) : System.Collections.Generic
length int /// The length of chain. ///
Résultat System.Collections.Generic

Chain() public méthode

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. ///
Résultat System.Collections.Generic

Chain() public méthode

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. ///
Résultat System.Collections.Generic

Chain() public méthode

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. ///
Résultat System.Collections.Generic

ClearAndSetNewLength() public méthode

Deletes chain (building and alphabet) and creates new empty chain with given length.
public ClearAndSetNewLength ( int length ) : void
length int /// New chain length. ///
Résultat void

Clone() public méthode

Creates clone of this chain.
public Clone ( ) : IBaseObject
Résultat IBaseObject

CongenericChain() public méthode

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. ///
Résultat CongenericChain

CongenericChain() public méthode

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. ///
Résultat CongenericChain

DeleteAt() public méthode

Removes element from given position.
public DeleteAt ( int index ) : void
index int /// Index of deleted position. ///
Résultat void

FillClone() protected méthode

Fills clone of this chain.
protected FillClone ( IBaseObject clone ) : void
clone IBaseObject /// The clone of chain. ///
Résultat void

FillIntervalManagers() public méthode

Fills all interval managers.
public FillIntervalManagers ( ) : void
Résultat void

GetOccurrence() public méthode

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. ///
Résultat int

GetOrCreateCongenericChain() public méthode

Gets or creates congeneric chain.
public GetOrCreateCongenericChain ( IBaseObject element ) : CongenericChain
element IBaseObject /// The element of congeneric chain. ///
Résultat CongenericChain

GetRelationIntervalsManager() public méthode

The get relation intervals manager.
public GetRelationIntervalsManager ( IBaseObject first, IBaseObject second ) : BinaryIntervalsManager
first IBaseObject /// The first. ///
second IBaseObject /// The second. ///
Résultat BinaryIntervalsManager

GetRelationIntervalsManager() public méthode

The get relation interval manager.
public GetRelationIntervalsManager ( int first, int second ) : BinaryIntervalsManager
first int /// The first. ///
second int /// The second. ///
Résultat BinaryIntervalsManager

RemoveAt() public méthode

The remove at.
public RemoveAt ( int index ) : void
index int /// Index of deleted element. ///
Résultat void

Set() public méthode

Sets item in provided position.
public Set ( IBaseObject item, int index ) : void
item IBaseObject /// The item. ///
index int /// The index. ///
Résultat void

TryGetCongenericChain() public méthode

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. ///
Résultat CongenericChain