C# Class LibiadaCore.Core.Chain

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

Public Methods

Method 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.

Protected Methods

Method Description
FillClone ( IBaseObject clone ) : void

Fills clone of this chain.

Private Methods

Method Description
FillCongenericChains ( ) : void

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

Method Details

Chain() public method

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

Chain() public method

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

Chain() public method

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

Chain() public method

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

Chain() public method

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

Chain() public method

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

ClearAndSetNewLength() public method

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

Clone() public method

Creates clone of this chain.
public Clone ( ) : IBaseObject
return IBaseObject

CongenericChain() public method

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

CongenericChain() public method

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

DeleteAt() public method

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

FillClone() protected method

Fills clone of this chain.
protected FillClone ( IBaseObject clone ) : void
clone IBaseObject /// The clone of chain. ///
return void

FillIntervalManagers() public method

Fills all interval managers.
public FillIntervalManagers ( ) : void
return void

GetOccurrence() public method

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

GetOrCreateCongenericChain() public method

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

GetRelationIntervalsManager() public method

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

GetRelationIntervalsManager() public method

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

RemoveAt() public method

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

Set() public method

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

TryGetCongenericChain() public method

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