SUMO - Simulation of Urban MObility
NBPTStop.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // The representation of a single pt stop
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software: you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation, either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef SUMO_NBPTSTOP_H
21 #define SUMO_NBPTSTOP_H
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
32 #include <string>
33 #include <utils/geom/Position.h>
34 
35 
36 // ===========================================================================
37 // class declarations
38 // ===========================================================================
39 class OutputDevice;
40 
41 
42 // ===========================================================================
43 // class definitions
44 // ===========================================================================
49 class NBPTStop {
50 
51 public:
58  NBPTStop(std::string ptStopId, Position position, std::string edgeId, std::string origEdgeId, double length, std::string name);
59  std::string getID() const;
60 
61  const std::string getEdgeId();
62  const std::string getOrigEdgeId();
63  const std::string getName();
64  const Position& getPosition();
65  void computExtent(double center, double d);
66  void setLaneID(const std::string& laneId);
67  void write(OutputDevice& device);
68  void reshiftPostion(const double offsetX, const double offsetY);
69 
70 
71 private:
72  const std::string myPTStopId;
74  const std::string myEdgeId;
75  const std::string myOrigEdgeId;
76  const double myPTStopLength;
77  const std::string myName;
78  std::string myLaneId;
79 
80  double myFrom;
81  double myTo;
83 
84 
85 private:
87  NBPTStop& operator=(const NBPTStop&);
88 
89 
90 };
91 
92 #endif //SUMO_NBPTSTOP_H
const std::string getName()
Definition: NBPTStop.cpp:65
void write(OutputDevice &device)
Definition: NBPTStop.cpp:81
double myFrom
Definition: NBPTStop.h:80
const std::string myOrigEdgeId
Definition: NBPTStop.h:75
const std::string getEdgeId()
Definition: NBPTStop.cpp:60
NBPTStop & operator=(const NBPTStop &)
Invalidated assignment operator.
double myTo
Definition: NBPTStop.h:81
bool myFriendlyPos
Definition: NBPTStop.h:82
std::string getID() const
Definition: NBPTStop.cpp:50
The representation of a single pt stop.
Definition: NBPTStop.h:49
const std::string myName
Definition: NBPTStop.h:77
const double myPTStopLength
Definition: NBPTStop.h:76
const std::string myEdgeId
Definition: NBPTStop.h:74
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:46
void computExtent(double center, double d)
Definition: NBPTStop.cpp:71
void reshiftPostion(const double offsetX, const double offsetY)
Definition: NBPTStop.cpp:96
void setLaneID(const std::string &laneId)
Definition: NBPTStop.cpp:78
Position myPosition
Definition: NBPTStop.h:73
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:71
const Position & getPosition()
Definition: NBPTStop.cpp:68
std::string myLaneId
Definition: NBPTStop.h:78
const std::string getOrigEdgeId()
Definition: NBPTStop.cpp:55
NBPTStop(std::string ptStopId, Position position, std::string edgeId, std::string origEdgeId, double length, std::string name)
Constructor.
Definition: NBPTStop.cpp:38
const std::string myPTStopId
Definition: NBPTStop.h:72