lt.ktu.tsp.TSP_tabu
Class SolutionVector
java.lang.Object
|
+--lt.ktu.tsp.TSP_tabu.SolutionVector
- All Implemented Interfaces:
- java.lang.Cloneable, Result
- Direct Known Subclasses:
- Solution
- public class SolutionVector
- extends java.lang.Object
- implements Result, java.lang.Cloneable
Klas� skirta vektoriui i� sveik� komponen�i� saugoti
|
Field Summary |
protected static java.util.Random |
rand
|
protected int[] |
vektorius
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
vektorius
protected int[] vektorius
rand
protected static final java.util.Random rand
SolutionVector
public SolutionVector(int from,
int size,
boolean random)
SolutionVector
protected SolutionVector(int size)
size
public int size()
getAdjacent
public SolutionVector getAdjacent(int i,
int j)
exists
protected boolean exists(int kas,
int kur)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
clone
public java.lang.Object clone()
- Overrides:
clone in class java.lang.Object
get
public int get(int i)
assign
public Result assign(Result r)
- Specified by:
assign in interface Result
toArray
public int[] toArray()