-
Notifications
You must be signed in to change notification settings - Fork 0
/
ITaxiCompany.java
114 lines (98 loc) · 2.01 KB
/
ITaxiCompany.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/*
* ITaxiCompany.java
*
* @autor Claudio, Jerry, Francisco, Joe
* @since 5/6/2022
*/
package oober;
/**
* The Interface ITaxiCompany.
*/
public interface ITaxiCompany {
/**
* Gets the name.
*
* @return the name
*/
public String getName();
/**
* Gets the total services.
*
* @return the total services
*/
public int getTotalServices();
/**
* Request service.
*
* @param user the user
* @return true, if successful
*/
public boolean requestService(int user);
/**
* Arrived at pickup location.
*
* @param vehicle the vehicle
*/
public void arrivedAtPickupLocation(Vehicle vehicle);
/**
* Arrived at dropoff location.
*
* @param vehicle the vehicle
*/
public void arrivedAtDropoffLocation(Vehicle vehicle);
/**
* Adds the user.
*
* @param id the id
* @param firstName the first name
* @param lastName the last name
*/
public void addUser(int id, String firstName, String lastName);
/**
* Adds the application.
*
* @param application the application
*/
public void addApplication(ApplicationSimulator application);
/**
* Notify application.
*
* @param message the message
*/
public void notifyApplication(String message);
/**
* Gets the user.
*
* @param id the id
* @return the user
*/
public User getUser(int id);
/**
* Show.
*
* @return the string
*/
public String show();
/**
* Show statistics.
*
* @return the string
*/
public String showStatistics();
/**
* Update.
*/
public void update();
/**
* Arrived at pickup location.
*
* @param vehicle the vehicle
*/
void arrivedAtPickupLocation(RentalVehicle vehicle);
/**
* Arrived at dropoff location.
*
* @param vehicle the vehicle
*/
void arrivedAtDropoffLocation(RentalVehicle vehicle);
}