-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.java
38 lines (34 loc) · 1022 Bytes
/
app.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import src.Entity.Restaurant;
import src.Database.Database;
/**
* A Restaurant Reservation & Point of Sale System (RRPSS)
* Users can computerize the process of making reservations, order taking,
* and displaying of records. This system is intended to be used solely by restaurant staff only
*
* @author Ivan Pua
* @author Reeves Chiu
* @author Fabian
* @author Shreejaa
* @version 1.0
* @since 24/10/2021
*/
public class app {
/**
* Driver program to run the system
* @param args no args accepted
*/
public static void main(String[] args) {
String RESTAURANT_NAME = "McDonalds"; // TODO: think of a restaurant name
Database.restaurantName = RESTAURANT_NAME;
Restaurant awesomeRestaurant = new Restaurant(RESTAURANT_NAME);
initDB(); // initialize the database with items from csv files
awesomeRestaurant.run();
}
/**
* Initialises database with records form CSV files
*/
private static void initDB() {
Database.parseCSV("src/Database/csv");
// Database.printDatabase();
}
}