uka.util
Class ArrayPermutation

java.lang.Object
  extended byuka.util.ArrayPermutation
All Implemented Interfaces:
Permutation, Printable

public class ArrayPermutation
extends java.lang.Object
implements Permutation, Printable


Field Summary
(package private)  int[] p
           
(package private)  int start
           
(package private)  int stop
           
 
Constructor Summary
ArrayPermutation(int start, int[] p)
           
 
Method Summary
 void appendTo(ToString s)
          This method should append the contents of each instance variable of the current object to the given ToString object.
 int compute(int n)
           
 int getStart()
           
 int getStop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

start

int start

stop

int stop

p

int[] p
Constructor Detail

ArrayPermutation

public ArrayPermutation(int start,
                        int[] p)
Method Detail

getStart

public int getStart()
Specified by:
getStart in interface Permutation

getStop

public int getStop()
Specified by:
getStop in interface Permutation

compute

public int compute(int n)
Specified by:
compute in interface Permutation

appendTo

public void appendTo(ToString s)
Description copied from interface: Printable
This method should append the contents of each instance variable of the current object to the given ToString object. The appended data should be labeled with the name of the corresponding instance variable.

Specified by:
appendTo in interface Printable
See Also:
ToString, ToString.append(String, Object), ToString.append(String, boolean), ToString.append(String, byte), ToString.append(String, int)