CSCI 3081 - Drone Delivery System
include
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_ */
carrier.h
entity_base.h
csci3081
Definition:
asubject.cc:3
csci3081::Drone::Drone
Drone(const picojson::object &val)
Definition:
drone.cc:10
csci3081::Drone
A representation of a drone It stores the drone's name, ID, version, position, direction, speed, and dynamic mode.
Definition:
drone.h:38
vector.h
csci3081::Carrier
A representation of a carrier An abstract base class for delivery transportation clases like Drone or...
Definition:
carrier.h:31
Generated by
1.8.13