public class Permutation extends Variable
| Modifier and Type | Field and Description |
|---|---|
int |
size_
Stores the length of the permutation
|
int[] |
vector_
Stores a permutation of
int values |
| Constructor and Description |
|---|
Permutation()
Constructor
|
Permutation(int size)
Constructor
|
Permutation(Permutation permutation)
Copy Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Variable |
deepCopy()
Create an exact copy of the
Permutation object. |
int |
getLength()
Returns the length of the permutation.
|
java.lang.String |
toString()
Returns a string representing the object
|
getLowerBound, getUpperBound, getValue, getVariableType, setLowerBound, setUpperBound, setValuepublic int[] vector_
int valuespublic int size_
public Permutation()
public Permutation(int size)
size - Length of the permutation
This constructor has been contributed by Madan Sathepublic Permutation(Permutation permutation)
permutation - The permutation to copypublic Variable deepCopy()
Permutation object.public int getLength()
public java.lang.String toString()
toString in class java.lang.Object