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

This is the Route Strategy class where we can use the interface to decide which type of route behaviour to implement using a strategy pattern. More...

#include <route_strategy.h>

Inheritance diagram for csci3081::RouteStrategy:
Inheritance graph

Public Member Functions

virtual std::vector< std::vector< float > > GetRoute (const IGraph *graph, std::vector< float > location, std::vector< float > dest)=0
 Pure virtual function that will be overridden in derived classes. This function allows the moving item to get the desired route. More...
 

Detailed Description

This is the Route Strategy class where we can use the interface to decide which type of route behaviour to implement using a strategy pattern.

Member Function Documentation

◆ GetRoute()

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

Pure virtual function that will be overridden in derived classes. This function allows the moving item to get the desired route.

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

Implemented in csci3081::BeelineRoute, csci3081::ParabolicRoute, and csci3081::SmartRoute.


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