CSCI 3081 - Drone Delivery System
customer.h
1 
7 #ifndef CUSTOMER_H_
8 #define CUSTOMER_H_
9 
10 /*******************************************************************************
11  * Includes
12  ******************************************************************************/
13 #include "entity_base.h"
14 #include <vector> // Used for vector like vector3D and vector2D
15 #include <string>
16 
17 namespace csci3081 {
18 /*******************************************************************************
19  * Class Definitions
20  ******************************************************************************/
26  public:
31  Customer(const picojson::object& val);
32 
39  Customer(Customer& customer);
40 
44  int GetNumPackageTotal() const;
45 
49  int GetNumDeliverPackage() const;
50 
57  void AddPackage(int packageID);
58 
64  bool PackageDeliver(int packageID);
65 
69  int GetNumUndeliverPackage() const;
70 
71  private:
72  std::vector<int> packageIDVector;
73  std::vector<bool> deliveredPackage;
74  int numPackageTotal;
75  int numDeliveredPackage;
76 };
77 
78 }
79 
80 #endif /* INC_Customer_H_ */
Customer(const picojson::object &val)
Definition: customer.cc:9
int GetNumUndeliverPackage() const
This return the number of undelivered packages the customer has.
Definition: customer.cc:55
A representation of a Customer, inherited from EntityBase It stores the Customer&#39;s name...
Definition: customer.h:25
int GetNumDeliverPackage() const
This return the number of packages the customer has in total.
Definition: customer.cc:51
bool PackageDeliver(int packageID)
This returns TRUE if the package with the ID passed in has already been delivered; FALSE otherwise...
Definition: customer.cc:59
Definition: asubject.cc:3
void AddPackage(int packageID)
This adds a package ID into the customer&#39;s tracked packageID vector if the package has not already be...
Definition: customer.cc:41
int GetNumPackageTotal() const
This return the number of packages the customer has in total.
Definition: customer.cc:47
The base class for creating entities.
Definition: entity_base.h:27