Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## cz.pcland.tsp
Class TSPInstance

    java.lang.Object
      cz.pcland.tsp.TSPInstance

All Implemented Interfaces:
  Loadable

    public class TSPInstance

extends java.lang.Object
implements Loadable

Field Summary
`LengthMatrix` | `lmatrix`

Constructor Summary
`TSPInstance()` Creates a new instance of TSPInstance

Method Summary
`void` | `addCity(City city)`
`void` | `computeMatrix()`
`void` | `deleteAll()`
`java.awt.Point` | `getCoordinates(int index)`
`static java.awt.Point` | `getCoordinates(java.util.Vector pos, int index)`
`int` | `getCount()`
`LengthMatrix` | `getLengthMatrix()`
`java.lang.String` | `getString()`
`void` | `loadFromString(java.lang.String str)`
`void` | `makeRandom(int cities, int maxX, int maxY)`
`void` | `removeCity(City city)`
`void` | `setGaInfo(GenerationInfo info)`
`java.lang.String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### lmatrix

    public LengthMatrix lmatrix

Constructor Detail

### TSPInstance

    public TSPInstance()

  Creates a new instance of TSPInstance

Method Detail

### getLengthMatrix

    public LengthMatrix getLengthMatrix()

### computeMatrix

    public void computeMatrix()

### setGaInfo

    public void setGaInfo(GenerationInfo info)

### addCity

    public void addCity(City city)

### removeCity

    public void removeCity(City city)

### getString

    public java.lang.String getString()

### loadFromString

    public void loadFromString(java.lang.String str)

  Specified by:
    `loadFromString` in interface `Loadable`

### deleteAll

    public void deleteAll()

### getCount

    public int getCount()

### makeRandom

    public void makeRandom(int cities,
                           int maxX,
                           int maxY)

### getCoordinates

    public java.awt.Point getCoordinates(int index)

### getCoordinates

    public static java.awt.Point getCoordinates(java.util.Vector pos,
                                                int index)

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD