generate-shapes/src/pfaedle/netgraph/NodePL.h

40 lines
931 B
C
Raw Normal View History

2018-06-09 17:14:08 +02:00
// Copyright 2018, University of Freiburg,
// Chair of Algorithms and Data Structures.
// Authors: Patrick Brosi <brosi@informatik.uni-freiburg.de>
#ifndef PFAEDLE_NETGRAPH_NODEPL_H_
#define PFAEDLE_NETGRAPH_NODEPL_H_
#include <map>
#include <string>
#include "ad/cppgtfs/gtfs/Feed.h"
#include "util/geo/GeoGraph.h"
using util::geograph::GeoNodePL;
2018-08-10 15:21:27 +02:00
using util::geo::DPoint;
2018-06-09 17:14:08 +02:00
namespace pfaedle {
namespace netgraph {
/*
* A payload class for edges on a network graph - that is a graph
* that exactly represents a physical public transit network
*/
2018-08-10 15:21:27 +02:00
class NodePL : public GeoNodePL<double> {
2018-06-09 17:14:08 +02:00
public:
NodePL() {}
2018-08-10 15:21:27 +02:00
NodePL(const util::geo::DPoint& geom) { _geom = geom; } // NOLINT
2018-06-09 17:14:08 +02:00
2018-08-10 15:21:27 +02:00
const DPoint* getGeom() const { return &_geom; }
2018-08-01 14:25:54 +02:00
util::json::Dict getAttrs() const {
return util::json::Dict();
2018-06-09 17:14:08 +02:00
}
private:
2018-08-10 15:21:27 +02:00
DPoint _geom;
2018-06-09 17:14:08 +02:00
};
} // namespace netgraph
} // namespace pfaedle
#endif // PFAEDLE_NETGRAPH_NODEPL_H_