public class BestTour
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<GroceryList> |
groceryLists
The grocery lists needed for the best tour, which contain what should be bought at each store
|
private java.util.List<Position> |
tour
The list of positions for the best tour: the starting position, the position of each shop in the best tour
and the ending position.
|
Constructor and Description |
---|
BestTour(java.util.List<GroceryList> groceryLists,
java.util.List<Position> tour) |
Modifier and Type | Method and Description |
---|---|
java.util.List<GroceryList> |
getGroceryLists() |
java.util.List<Position> |
getTour()
Gets the besTour found buy the algorithm
|
private final java.util.List<GroceryList> groceryLists
private final java.util.List<Position> tour
public BestTour(java.util.List<GroceryList> groceryLists, java.util.List<Position> tour)
public java.util.List<GroceryList> getGroceryLists()
public java.util.List<Position> getTour()