SUMO - Simulation of Urban MObility
GNEDestProbReroute.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 GNEDestProbReroute_h
21 #define GNEDestProbReroute_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 // ===========================================================================
52 public:
54  GNEDestProbReroute(GNERerouterInterval& rerouterIntervalParent, GNEEdge* newEdgeDestination, SUMOReal probability);
55 
58 
60  GNEEdge* getNewDestination() const;
61 
63  void setNewDestination(GNEEdge* edge);
64 
66  SUMOReal getProbability() const;
67 
69  bool setProbability(SUMOReal probability);
70 
72  SumoXMLTag getTag() const;
73 
76 
78  bool operator==(const GNEDestProbReroute& destProbReroute);
79 
80 protected:
83 
86 
89 
92 };
93 
94 #endif
95 
96 /****************************************************************************/
SumoXMLTag
Numbers representing SUMO-XML - element names.
SumoXMLTag myTag
XML Tag of destiny probability reroute.
GNEEdge * myNewEdgeDestination
id of new edge destination
SUMOReal myProbability
probability with which a vehicle will use the given edge as destination
GNERerouterInterval * myRerouterIntervalParent
reference to rerouter interval parent
bool operator==(const GNEDestProbReroute &destProbReroute)
overload operator ==
void setNewDestination(GNEEdge *edge)
set edge destination
SumoXMLTag getTag() const
get tag
GNEEdge * getNewDestination() const
get edge destination
~GNEDestProbReroute()
destructor
bool setProbability(SUMOReal probability)
set probability, if new probability is valid
A road/street connecting two junctions (netedit-version)
Definition: GNEEdge.h:54
SUMOReal getProbability() const
get probability
#define SUMOReal
Definition: config.h:208
const GNERerouterInterval & getRerouterIntervalParent() const
get rerouter interval parent
GNEDestProbReroute(GNERerouterInterval &rerouterIntervalParent, GNEEdge *newEdgeDestination, SUMOReal probability)
constructor