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, double probability);
56 
59 
61  std::string getNewRouteId() const;
62 
64  void setNewRouteId(std::string newRouteId);
65 
67  double getProbability() const;
68 
70  bool setProbability(double probability);
71 
73  SumoXMLTag getTag() const;
74 
77 
79  bool operator==(const GNERouteProbReroute& routeProbReroute) const;
80 
81 protected:
84 
87  std::string myNewRouteId;
88 
90  double myProbability;
91 
94 };
95 
96 #endif
97 
98 /****************************************************************************/
bool operator==(const GNERouteProbReroute &routeProbReroute) const
overload == operator
SumoXMLTag
Numbers representing SUMO-XML - element names.
const GNERerouterInterval & getRerouterIntervalParent() const
get rerouter interval parent
std::string getNewRouteId() const
get new route id
std::string myNewRouteId
id of new route
double myProbability
probability with which a vehicle will use the given edge as destination
SumoXMLTag myTag
XML Tag of route probability reroute.
GNERouteProbReroute(GNERerouterInterval &rerouterIntervalParent, std::string newRouteId, double probability)
constructor
double getProbability() const
get probability
bool setProbability(double probability)
set probability, if the new probability is valid
~GNERouteProbReroute()
destructor
void setNewRouteId(std::string newRouteId)
set new route id
GNERerouterInterval * myRerouterIntervalParent
reference to rerouter interval parent
SumoXMLTag getTag() const
get tag
A road/street connecting two junctions (netedit-version)
Definition: GNEEdge.h:57