public final class IntPermutationsWithPriority extends Object implements IntCombinatorialPort
reset().IntPermutations,
Serialized FormIntCombinatorialPort.Iterator| Constructor and Description |
|---|
IntPermutationsWithPriority(int dimension) |
IntPermutationsWithPriority(int[] initialPermutation) |
| Modifier and Type | Method and Description |
|---|---|
int[] |
getReference()
Returns the reference to the current iteration element
|
void |
nice()
Increase niceness of the last returned permutation.
|
void |
reset()
Resets the iteration
|
int[] |
take()
Calculates and returns the next combination or null, if no more combinations exist.
|
public IntPermutationsWithPriority(int dimension)
public IntPermutationsWithPriority(int[] initialPermutation)
public int[] take()
IntCombinatorialPorttake in interface IntCombinatorialPortpublic void nice()
public void reset()
IntCombinatorialPortreset in interface IntCombinatorialPortpublic int[] getReference()
IntCombinatorialPortgetReference in interface IntCombinatorialPortCopyright © 2017. All rights reserved.