eaLib API Docs
Last Modified : January 7 2002

mss.ea.ex.salesman
Class SalesmanMatrix

java.lang.Object
  |
  +--mss.ea.ex.salesman.SalesmanMatrix

public class SalesmanMatrix
extends java.lang.Object


Field Summary
protected  int[] bestRoute
           
protected  int bestValue
           
protected  java.lang.String comment
           
protected  int[][] dist
           
protected  java.util.ArrayList fileBuffer
           
 
Constructor Summary
SalesmanMatrix(java.lang.String matrix)
           
 
Method Summary
 int[] bestRoute()
           
 int bestValue()
           
 java.lang.String getComment()
           
 int getDistance(int[] sequence)
           
 int getDistance(int x, int y)
           
protected  void process(java.util.ArrayList buffer)
           
protected  java.util.ArrayList read(java.lang.String file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

comment

protected java.lang.String comment

bestRoute

protected int[] bestRoute

bestValue

protected int bestValue

fileBuffer

protected java.util.ArrayList fileBuffer

dist

protected int[][] dist
Constructor Detail

SalesmanMatrix

public SalesmanMatrix(java.lang.String matrix)
Method Detail

read

protected java.util.ArrayList read(java.lang.String file)

process

protected void process(java.util.ArrayList buffer)

getComment

public java.lang.String getComment()

bestRoute

public int[] bestRoute()

bestValue

public int bestValue()

getDistance

public int getDistance(int x,
                       int y)

getDistance

public int getDistance(int[] sequence)

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS