SUMO - Simulation of Urban MObility
GNERouteProbReroute.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 GNERouteProbReroute_h
21 #define GNERouteProbReroute_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 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
40 
41 class GNEEdge;
43 
44 // ===========================================================================
45 // class definitions
46 // ===========================================================================
47 
53 public:
55  GNERouteProbReroute(GNERerouterInterval& rerouterIntervalParent, std::string newRouteId, SUMOReal probability);
56 
59 
61  std::string getNewRouteId() const;
62 
64  void setNewRouteId(std::string newRouteId);
65 
67  SUMOReal getProbability() const;
68 
70  bool setProbability(SUMOReal probability);
71 
73  SumoXMLTag getTag() const;
74 
77 
79  bool operator==(const GNERouteProbReroute& routeProbReroute);
80 
81 protected:
84 
87  std::string myNewRouteId;
88 
91 
94 };
95 
96 #endif
97 
98 /****************************************************************************/
SumoXMLTag
Numbers representing SUMO-XML - element names.
std::string getNewRouteId() const
get new route id
GNERouteProbReroute(GNERerouterInterval &rerouterIntervalParent, std::string newRouteId, SUMOReal probability)
constructor
bool setProbability(SUMOReal probability)
set probability, if the new probability is valid
std::string myNewRouteId
id of new route
SumoXMLTag myTag
XML Tag of route probability reroute.
SUMOReal getProbability() const
get probability
SumoXMLTag getTag() const
get tag
~GNERouteProbReroute()
destructor
void setNewRouteId(std::string newRouteId)
set new route id
GNERerouterInterval * myRerouterIntervalParent
reference to rerouter interval parent
const GNERerouterInterval & getRerouterIntervalParent() const
get rerouter interval parent
A road/street connecting two junctions (netedit-version)
Definition: GNEEdge.h:54
SUMOReal myProbability
probability with which a vehicle will use the given edge as destination
#define SUMOReal
Definition: config.h:208
bool operator==(const GNERouteProbReroute &routeProbReroute)
overload == operator