Strategy
Enumerate the available sub-allocation strategies. The signature of these functions is f(Id, Id, N+, N+, N, N): Id.
Constructor Summary
Public Constructor | ||
public |
constructor(base: Base, boundary: Number) |
Method Summary
Public Methods | ||
public |
Choose an identifier starting from next bound and substract a random number. |
|
public |
Choose an identifier starting from previous bound and adding random number. |
Private Methods | ||
private |
Copies the appropriates source and counter from the adjacent identifiers at the insertion position. |
Public Constructors
Public Methods
public bMinus(p: LSeqNode, q: LSeqNode, level: Number, interval: Number, s: Object, c: Number): * source
Choose an identifier starting from next bound and substract a random number.
Params:
Name | Type | Attribute | Description |
p | LSeqNode | The previous identifier. |
|
q | LSeqNode | The next identifier. |
|
level | Number | The number of concatenation composing the new identifier. |
|
interval | Number | The interval between p and q. |
|
s | Object | The source that creates the new identifier. |
|
c | Number | The counter of that source. |
Return:
* |
public bPlus(p: LSeqNode, q: LSeqNode, level: Number, interval: Number, s: Object, c: Number): Identifier source
Choose an identifier starting from previous bound and adding random number.
Params:
Name | Type | Attribute | Description |
p | LSeqNode | The previous identifier. |
|
q | LSeqNode | The next identifier. |
|
level | Number | The number of concatenation composing the new identifier. |
|
interval | Number | The interval between p and q. |
|
s | Object | The source that creates the new identifier. |
|
c | Number | The counter of that source. |