CSCI 3081 - Drone Delivery System
All Classes Files Functions Variables Friends Pages
Public Member Functions | List of all members
csci3081::ParabolicRoute Class Reference

This is the Parabolic Route class where we can use the strategy pattern to implement a parabolic route. More...

#include <parabolic_route.h>

Inheritance diagram for csci3081::ParabolicRoute:
Inheritance graph

Public Member Functions

std::vector< std::vector< float > > GetRoute (const IGraph *graph, std::vector< float > location, std::vector< float > dest)
 This function allows the moving item to get the desired route. In this class, the function will return a route that follows the parabolic path. However a pure parabolic path will make the drone clips the building at the end. What we did is raise the drone to a certain height first,then do parabolic in the air and descend veritcally. More...
 

Detailed Description

This is the Parabolic Route class where we can use the strategy pattern to implement a parabolic route.

Member Function Documentation

◆ GetRoute()

std::vector< std::vector< float > > csci3081::ParabolicRoute::GetRoute ( const IGraph graph,
std::vector< float >  location,
std::vector< float >  dest 
)
virtual

This function allows the moving item to get the desired route. In this class, the function will return a route that follows the parabolic path. However a pure parabolic path will make the drone clips the building at the end. What we did is raise the drone to a certain height first,then do parabolic in the air and descend veritcally.

Parameters
constIGraph* graph
std::vector<float>location
std::vector<float>dest
Returns
std::vector <std::vector<float>>

Implements csci3081::RouteStrategy.


The documentation for this class was generated from the following files: