public class MyFoodora
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
COURIER |
static int |
CUSTOMER |
static int |
MANAGER |
static int |
RESTAURANT |
static int |
UNKNOWN |
Constructor and Description |
---|
MyFoodora()
CONSTRUCTOR
|
public static final int UNKNOWN
public static final int COURIER
public static final int RESTAURANT
public static final int CUSTOMER
public static final int MANAGER
public MyFoodora()
ExceptionUnknownStartegyType
public User getUserByLogin(java.lang.String usernameTest, java.lang.String passwordTest)
public User getUserByUsername(java.lang.String username)
public User getUserByName(java.lang.String username, java.lang.String name)
public void addUser(User u)
public void addCustomer(Customer c)
public void addRestaurant(Restaurant r)
public void addCourier(Courier c)
public void addManager(Manager m)
public void removeWithID(int typeOfUser, long id)
public double getServiceFee()
public void setListRestaurant(ListUser<Restaurant> listRestaurant)
public ListUser<Restaurant> getListRestaurant()
public HistoricOrder getGlobalHistoric()
public ContextTargetProfitStrategy getContextTargetProfitStrategy()
public ContextDeliveryStrategy getContextDeliveryPolicy()
public void setContextTargetProfitStrategy(ContextTargetProfitStrategy contextTargetProfitStrategy)
public void setContextDeliveryPolicy(ContextDeliveryStrategy contextDeliveryPolicy)
public void setServiceFee(double serviceFee)
public double getMarkupPercentage()
public void setMarkupPercentage(double markupPercentage)
public double getDeliveryCost()
public void setDeliveryCost(double deliveryCost)
public double getLastMonthIncome()
public java.util.ArrayList<Order> getOrderPendingList()
public Order getPendingOrderByName(java.lang.String string)
public int getNumberOfOrderLastMonth()
public double getGlobalProfit()