Package | Description |
---|---|
be.ac.ulb.infof307.g02.controllers | |
be.ac.ulb.infof307.g02.database | |
be.ac.ulb.infof307.g02.models | |
be.ac.ulb.infof307.g02.views |
Modifier and Type | Field and Description |
---|---|
private GroceryList |
ShowResultController.groceryList
The grocery list that contains all the products that need to be sold by the shops
|
private GroceryList |
GroceryListController.groceryList |
Modifier and Type | Method and Description |
---|---|
private GroceryList |
RecipeController.getGroceryListFromView()
Creates a GroceryList bases on the content of the recipe view
|
Modifier and Type | Method and Description |
---|---|
void |
MapController.findBestRoute(GroceryList groceryList)
Finds the best route from the start position to the end position to buy all the
products in the grocery list, then shows it.
|
void |
ControllerMaster.onBestRouteAlgoReady(GroceryList list)
Shows the best route.
|
private void |
GroceryListController.saveListInDB(GroceryList listToSave)
Saves the GroceryList in the database.
|
private void |
RecipeController.saveOrOverWriteGroceryListInDb(GroceryList groceryList)
Saves the grocery list to the database.
|
void |
ControllerMaster.showResultsScreen(GroceryList groceryList,
Position position)
Shows the result view
|
Constructor and Description |
---|
ShowResultController(ControllerMaster master,
GroceryList groceryList)
Class Constructor
|
Modifier and Type | Method and Description |
---|---|
GroceryList |
GroceryListDB.getGroceryList(User listOwner,
java.lang.String listName)
Get a GroceryList from the database
|
Modifier and Type | Method and Description |
---|---|
void |
GroceryListDB.addGroceryList(User listOwner,
GroceryList list)
Insert a new GroceryList in the database
|
Modifier and Type | Field and Description |
---|---|
private GroceryList |
BestTourFinder.groceryList |
Modifier and Type | Field and Description |
---|---|
private java.util.List<GroceryList> |
BestTour.groceryLists
The grocery lists needed for the best tour, which contain what should be bought at each store
|
Modifier and Type | Method and Description |
---|---|
java.util.List<GroceryList> |
BestTour.getGroceryLists() |
Modifier and Type | Method and Description |
---|---|
double |
Shop.getPriceOfList(GroceryList groceryList) |
Constructor and Description |
---|
BestTourFinder(Position startPos,
Position endPos,
java.util.List<Shop> shops,
GroceryList groceryList)
Constructor that finds the best tour to buy all the products in the grocery list
among the given shops that starts at the startPos and ends at endPos.
|
GroceryList(GroceryList groceryList) |
Constructor and Description |
---|
BestTour(java.util.List<GroceryList> groceryLists,
java.util.List<Position> tour) |
Modifier and Type | Method and Description |
---|---|
private void |
MapView.showBestTourPane(java.util.List<GroceryList> groceryLists)
Creates the pane used to show the user which article of a grocery list
he has to buy in each shop
|
Constructor and Description |
---|
GroceryListView(GroceryListController controller,
javafx.scene.Scene scene,
GroceryList groceryList,
java.util.List<Product> allProductsList) |