CSCI 3081 - Drone Delivery System
drone.h
Go to the documentation of this file.
1 
7 #ifndef INC_DRONE_H_
8 #define INC_DRONE_H_
9 
10 /*******************************************************************************
11  * Includes
12  ******************************************************************************/
13 #include "entity_base.h"
14 //#include <vector> // Used for vector like vector3D and vector2D
15 #include <iostream>
16 #include <string>
17 #include <vector> // Used for vector like vector3D and vector2D
18 
19 #include "battery.h"
20 #include "carrier.h"
21 #include "entity_base.h"
22 #include "package.h"
23 #include "vector.h"
24 // #include "route_strategy.h"
25 #include "beeline_route.h"
26 #include "parabolic_route.h"
27 #include "smart_route.h"
28 
29 namespace csci3081 {
30 /*******************************************************************************
31  * Class Definitions
32  ******************************************************************************/
38 class Drone : public csci3081::Carrier {
39  public:
46  Drone(const picojson::object& val);
47 
54  Drone(Drone&);
55 
56  // /**
57  // * @brief Destructor.
58  // * This destructor is used to delete the routeStrategy pointer attribute when a Drone obj goes out of scope.
59  // */
60  // ~Drone();
61  // /**
62  // * @brief This is an inherited method from EntityBase to use for DeliverySimulation.
63  // * This updates the position of the drone on the simulation if the position changes
64  // * and its dynamic is set to true. In addition, this function also checks if the
65  // * drone is in within distance with the package to pick it up, or within distance
66  // * with the customer to drop off the package
67  // */
68  // void Update(float dt);
69 };
70 
71 } // namespace csci3081
72 
73 #endif /* INC_DRONE_H_ */
Definition: asubject.cc:3
Drone(const picojson::object &val)
Definition: drone.cc:10
A representation of a drone It stores the drone&#39;s name, ID, version, position, direction, speed, and dynamic mode.
Definition: drone.h:38
A representation of a carrier An abstract base class for delivery transportation clases like Drone or...
Definition: carrier.h:31