-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStopClass.h
55 lines (47 loc) · 1.15 KB
/
StopClass.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#pragma once
#include <iomanip>
#include <iostream>
#include <fstream>
#include <array>
#include <sstream>
#include <string>
#include <stdio.h>
#include <vector>
#include"Route.h"
#include "Trip.h"
#include <unordered_map>
using namespace std;
class Route;
class Trip;
class Stop{
private:
int ID;
string stopID;
double stopLat;
double stopLon;
vector<pair<Stop*, int>> connected_stops;
vector < Route* > connected_routes;
vector < pair<Stop*, Route*>> connected_routes_stops;
int transfer_stop;
public:
Stop(int, string, double, double);//, vector<Stop*>, vector<Route*>);
~Stop();
vector<double> stop_distance;
vector<pair<int, pair<Route*, Trip*>>> passing_trips;
int population;
unsigned int degree_centrality;
//geters
int getID() const;
string getstopID() const;
double getlat() const;
double getlon() const;
vector<pair<Stop*, int>> getConnectedStop() const;
vector<Route*> getConnectedroute() const;
vector < pair<Stop*, Route*>> getconnected_routes_stops() const;
int getTransfer() const;
//seters
void setConnectedStop(Stop*, int);
void setConnectedRoutes(Route*);
void setconnectedroutesstops(Stop*, Route*);
void settransfer();
};