SUMO - Simulation of Urban MObility
GNERerouterInterval.h
Go to the documentation of this file.
1 /****************************************************************************/
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 GNERerouterInterval_h
21 #define GNERerouterInterval_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <vector>
36 #include "GNERerouter.h"
37 
38 #include "GNEClosingLaneReroute.h"
39 #include "GNEClosingReroute.h"
40 #include "GNEDestProbReroute.h"
41 #include "GNERouteProbReroute.h"
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
51 public:
53  GNERerouterInterval(GNERerouter* rerouterParent, SUMOReal begin, SUMOReal end);
54 
57 
62 
67 
72 
77 
82 
87 
92 
97 
100 
102  SumoXMLTag getTag() const;
103 
105  SUMOReal getBegin() const;
106 
108  SUMOReal getEnd() const;
109 
111  void setBegin(SUMOReal begin);
112 
114  void setEnd(SUMOReal end);
115 
117  const std::vector<GNEClosingLaneReroute>& getClosingLaneReroutes() const;
118 
120  const std::vector<GNEClosingReroute>& getClosingReroutes() const;
121 
123  const std::vector<GNEDestProbReroute>& getDestProbReroutes() const;
124 
126  const std::vector<GNERouteProbReroute>& getRouteProbReroutes() const;
127 
129  void setClosingLaneReroutes(const std::vector<GNEClosingLaneReroute>& closingLaneReroutes);
130 
132  void setClosingReroutes(const std::vector<GNEClosingReroute>& closingReroutes);
133 
135  void setDestProbReroutes(const std::vector<GNEDestProbReroute>& destProbReroutes);
136 
138  void setRouteProbReroutes(const std::vector<GNERouteProbReroute>& rerouteProbabilityReroutes);
139 
141  GNERerouterInterval& operator=(const GNERerouterInterval& rerouterInterval);
142 
143 protected:
146 
149 
152 
155 
157  std::vector<GNEClosingLaneReroute> myClosingLaneReroutes;
158 
160  std::vector<GNEClosingReroute> myClosingReroutes;
161 
163  std::vector<GNEDestProbReroute> myDestProbReroutes;
164 
166  std::vector<GNERouteProbReroute> myRouteProbReroutes;
167 };
168 
169 #endif
170 
171 /****************************************************************************/
SumoXMLTag
Numbers representing SUMO-XML - element names.
GNERerouter * getRerouterParent() const
get rerouter parent
const std::vector< GNEClosingLaneReroute > & getClosingLaneReroutes() const
get closing reroutes
void setEnd(SUMOReal end)
set end time
std::vector< GNEClosingReroute > myClosingReroutes
vector with the closingReroutes
std::vector< GNEClosingLaneReroute > myClosingLaneReroutes
vector with the closingLaneReroutes
void setBegin(SUMOReal begin)
set begin time
void setClosingLaneReroutes(const std::vector< GNEClosingLaneReroute > &closingLaneReroutes)
set closing reroutes
const std::vector< GNEClosingReroute > & getClosingReroutes() const
get closing reroutes
bool removeClosingLaneReroutes(const GNEClosingLaneReroute &clr)
remove a previously inserted closing reroute
GNERerouterInterval & operator=(const GNERerouterInterval &rerouterInterval)
overload operator =
SUMOReal getEnd() const
get end time
bool removeClosingReroutes(const GNEClosingReroute &cr)
remove a previously inserted closing reroute
bool insertDestProbReroutes(const GNEDestProbReroute &dpr)
insert destiny probability reroute
SUMOReal myEnd
end timeStep
bool insertClosinLanegReroutes(const GNEClosingLaneReroute &clr)
insert a new closing lane reroute
bool insertClosingReroutes(const GNEClosingReroute &cr)
insert a new closing lane reroute
void setRouteProbReroutes(const std::vector< GNERouteProbReroute > &rerouteProbabilityReroutes)
set reoute probability reroutes
GNERerouterInterval(GNERerouter *rerouterParent, SUMOReal begin, SUMOReal end)
constructor
std::vector< GNEDestProbReroute > myDestProbReroutes
vector with the destProbReroutes
SumoXMLTag getTag() const
get tag
const std::vector< GNERouteProbReroute > & getRouteProbReroutes() const
get reoute probability reroutes
std::vector< GNERouteProbReroute > myRouteProbReroutes
vector with the routeProbReroutes
bool removeRouteProbReroute(const GNERouteProbReroute &rpr)
remove a previously inserted route probability reroute
SUMOReal getBegin() const
get begin time
GNERerouter * myRerouterParent
pointer to rerouter parent
const std::vector< GNEDestProbReroute > & getDestProbReroutes() const
get destiny probability reroutes
bool removeDestProbReroutes(const GNEDestProbReroute &dpr)
remove a previously inserted destiny probability reroute
#define SUMOReal
Definition: config.h:208
SumoXMLTag myTag
XML Tag of a rerouter interval.
SUMOReal myBegin
begin timeStep
bool insertRouteProbReroute(const GNERouteProbReroute &rpr)
insert route probability reroute
~GNERerouterInterval()
destructor
void setClosingReroutes(const std::vector< GNEClosingReroute > &closingReroutes)
set closing reroutes
void setDestProbReroutes(const std::vector< GNEDestProbReroute > &destProbReroutes)
set destiny probability reroutes