SUMO - Simulation of Urban MObility
GNEClosingReroute.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 GNEClosingReroute_h
21 #define GNEClosingReroute_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>
37 
38 // ===========================================================================
39 // class declarations
40 // ===========================================================================
41 
42 class GNEEdge;
44 
45 // ===========================================================================
46 // class definitions
47 // ===========================================================================
54 public:
56  GNEClosingReroute(GNERerouterInterval& rerouterIntervalParent, GNEEdge* closedEdge,
57  SVCPermissions allowedVehicles = SVC_IGNORING, SVCPermissions disallowedVehicles = SVC_IGNORING);
58 
61 
64 
67 
69  void setAllowedVehicles(SVCPermissions allowed);
70 
72  void setDisallowedVehicles(SVCPermissions disallowed);
73 
75  GNEEdge* getClosedEdge() const;
76 
78  void setClosedEdge(GNEEdge* edge);
79 
81  SumoXMLTag getTag() const;
82 
85 
87  bool operator==(const GNEClosingReroute& closingReroute) const;
88 
89 protected:
92 
95 
98 
101 
104 };
105 
106 #endif
107 
108 /****************************************************************************/
SumoXMLTag
Numbers representing SUMO-XML - element names.
int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
SVCPermissions myAllowedVehicles
codified allowed vehicles
SVCPermissions myDisallowedVehicles
codified disallowed vehicles
GNERerouterInterval * myRerouterIntervalParent
reference to rerouter interval parent
GNEEdge * getClosedEdge() const
get closed edge
SumoXMLTag myTag
XML Tag of closing reroute.
void setClosedEdge(GNEEdge *edge)
set closed edge
~GNEClosingReroute()
destructor
GNEClosingReroute(GNERerouterInterval &rerouterIntervalParent, GNEEdge *closedEdge, SVCPermissions allowedVehicles=SVC_IGNORING, SVCPermissions disallowedVehicles=SVC_IGNORING)
constructor
SumoXMLTag getTag() const
get tag
GNEEdge * myClosedEdge
closed edge
bool operator==(const GNEClosingReroute &closingReroute) const
overload operator ==
SVCPermissions getDisallowedVehicles() const
get disallowed vehicles
A road/street connecting two junctions (netedit-version)
Definition: GNEEdge.h:57
const GNERerouterInterval & getRerouterIntervalParent() const
get rerouter interval parent
SVCPermissions getAllowedVehicles() const
get allowed vehicles
void setDisallowedVehicles(SVCPermissions disallowed)
set disallowed vehicles
void setAllowedVehicles(SVCPermissions allowed)
set allowed vehicles
vehicles ignoring classes