Identifier
Unique and immutable identifier composed of digit, sources, counters.
Constructor Summary
Public Constructor | ||
public |
constructor(base: Base, digits: Number[], sites: Object[], counters: Number[]) |
Method Summary
Public Methods | ||
public |
compareTo(o: Identifier): Integer Compare two identifiers. |
|
public |
fromNode(node: LSeqNode): Identifier Set the d,s,c values according to the node in argument |
|
public |
Convert the identifier into a node without element. |
Public Constructors
Private Members
private _base: * source
private _c: * source
private _d: * source
private _s: * source
Public Methods
public compareTo(o: Identifier): Integer source
Compare two identifiers.
Params:
Name | Type | Attribute | Description |
o | Identifier | The other identifier. |
Return:
Integer | 1 if this is lower, 0 if they are equal, 1 if this is greater. |
public fromNode(node: LSeqNode): Identifier source
Set the d,s,c values according to the node in argument
Params:
Name | Type | Attribute | Description |
node | LSeqNode | The lseqnode containing the path in the tree structure. |