|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.jabm.util.Permutator
public class Permutator
![]() |
![]() |
| Field Summary | |
|---|---|
protected int[] |
goal
|
protected int |
n
|
protected java.util.Stack<net.sourceforge.jabm.util.PermutatorState> |
stack
|
| Constructor Summary | |
|---|---|
Permutator(int[] goal)
|
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
static void |
main(java.lang.String[] args)
|
int[] |
next()
|
protected int[] |
permutate()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int[] goal
protected int n
protected java.util.Stack<net.sourceforge.jabm.util.PermutatorState> stack
| Constructor Detail |
|---|
public Permutator(int[] goal)
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<int[]>public int[] next()
next in interface java.util.Iterator<int[]>public void remove()
remove in interface java.util.Iterator<int[]>protected int[] permutate()
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||