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