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
           
 
Constructor Summary
protected SolutionVector(int size)
           
  SolutionVector(int from, int size, boolean random)
           
 
Method Summary
 Result assign(Result r)
           
 java.lang.Object clone()
           
protected  boolean exists(int kas, int kur)
           
 int get(int i)
           
 SolutionVector getAdjacent(int i, int j)
           
 int size()
           
 int[] toArray()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

vektorius

protected int[] vektorius

rand

protected static final java.util.Random rand
Constructor Detail

SolutionVector

public SolutionVector(int from,
                      int size,
                      boolean random)

SolutionVector

protected SolutionVector(int size)
Method Detail

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()