samples.tutorials.to_sort.tsp
Class Generator

java.lang.Object
  extended by samples.tutorials.to_sort.tsp.Generator

public class Generator
extends Object


Field Summary
protected  int[][] dist
           
protected  int[] hamPath
           
protected static Logger LOGGER
           
protected  int maxDist
           
protected  int n
           
protected  Random rand
           
 
Constructor Summary
Generator(Random rand, int n, int maxDist)
           
 
Method Summary
 int[][] generateMatrix()
           
 String showHamPath()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

protected static final Logger LOGGER

rand

protected Random rand

n

protected int n

maxDist

protected int maxDist

dist

protected int[][] dist

hamPath

protected int[] hamPath
Constructor Detail

Generator

public Generator(Random rand,
                 int n,
                 int maxDist)
Method Detail

generateMatrix

public int[][] generateMatrix()

showHamPath

public String showHamPath()


Copyright © 2012. All Rights Reserved.