C# Class LibiadaCore.Core.AbstractChain

The abstract chain.
Inheritance: IBaseObject
Mostrar archivo Open project: intervals-mining-lab/libiada-core Class Usage Examples

Public Methods

Method Description
ClearAndSetNewLength ( int length ) : void

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

Clone ( ) : IBaseObject

Creates clone of this chain.

DeleteAt ( int index ) : void

Removes element from given position.

Get ( int index ) : IBaseObject

Gets element by index. Inner implementation of indexer.

GetLength ( ) : int

The length of chain.

RemoveAt ( int index ) : void

Removes element from given position.

Set ( IBaseObject item, int index ) : void

Sets or replaces element in specified position.

ToString ( ) : string

Converts chain to string. Empty positions are filled with NullValue ('-' symbol).

ToString ( string delimiter ) : string

Converts sequence to string.

this ( int index ) : IBaseObject

Indexer. Returns element by index.

Method Details

ClearAndSetNewLength() public abstract method

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

Clone() public abstract method

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

DeleteAt() public abstract method

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

Get() public abstract method

Gets element by index. Inner implementation of indexer.
public abstract Get ( int index ) : IBaseObject
index int /// Index of element. ///
return IBaseObject

GetLength() public abstract method

The length of chain.
public abstract GetLength ( ) : int
return int

RemoveAt() public abstract method

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

Set() public abstract method

Sets or replaces element in specified position.
public abstract Set ( IBaseObject item, int index ) : void
item IBaseObject /// Element to set. ///
index int /// Position in sequence. ///
return void

ToString() public method

Converts chain to string. Empty positions are filled with NullValue ('-' symbol).
public ToString ( ) : string
return string

ToString() public method

Converts sequence to string.
public ToString ( string delimiter ) : string
delimiter string /// Delimiter added between elements. ///
return string

this() public method

Indexer. Returns element by index.
public this ( int index ) : IBaseObject
index int /// Index of element. ///
return IBaseObject