|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmetal.core.Variable
jmetal.encodings.variable.Permutation
public class Permutation
Class implementing a permutation of integer decision encodings.variable
| Field Summary | |
|---|---|
int |
size_
Stores the length of the permutation |
int[] |
vector_
Stores a permutation of int values |
| Constructor Summary | |
|---|---|
Permutation()
Constructor |
|
Permutation(int size)
Constructor |
|
Permutation(Permutation permutation)
Copy Constructor |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class jmetal.core.Variable |
|---|
getLowerBound, getUpperBound, getValue, getVariableType, setLowerBound, setUpperBound, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int[] vector_
int values
public int size_
| Constructor Detail |
|---|
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 copy| Method Detail |
|---|
public Variable deepCopy()
Permutation object.
deepCopy in class Variablepublic int getLength()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||