SUMO - Simulation of Urban MObility
GNEClosingLaneReroute.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 GNEClosingLaneReroute_h
21 #define GNEClosingLaneReroute_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 GNELane;
44 
45 // ===========================================================================
46 // class definitions
47 // ===========================================================================
53 public:
55  GNEClosingLaneReroute(GNERerouterInterval& rerouterIntervalParent, GNELane* closedLane,
56  SVCPermissions allowedVehicles = SVC_IGNORING, SVCPermissions disallowedVehicles = SVC_IGNORING);
57 
60 
63 
66 
68  void setAllowedVehicles(SVCPermissions allowed);
69 
71  void setDisallowedVehicles(SVCPermissions disallowed);
72 
74  GNELane* getClosedLane() const;
75 
77  void setClosedLane(GNELane* lane);
78 
80  SumoXMLTag getTag() const;
81 
84 
86  bool operator==(const GNEClosingLaneReroute& closingLaneReroute) const;
87 
88 protected:
91 
94 
97 
100 
103 };
104 
105 #endif
106 
107 /****************************************************************************/
SumoXMLTag
Numbers representing SUMO-XML - element names.
SVCPermissions myDisallowedVehicles
codified disallowed vehicles
SumoXMLTag getTag() const
get tag
SVCPermissions getDisallowedVehicles() const
get disallowed vehicles
int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
Definition: GNELane.h:54
void setClosedLane(GNELane *lane)
set closed lane Id
SVCPermissions getAllowedVehicles() const
get allowed vehicles
void setAllowedVehicles(SVCPermissions allowed)
set allowed vehicles
SVCPermissions myAllowedVehicles
codified allowed vehicles
bool operator==(const GNEClosingLaneReroute &closingLaneReroute) const
overload operator ==
GNELane * myClosedLane
closed lane
SumoXMLTag myTag
XML Tag of closing lane reroute.
void setDisallowedVehicles(SVCPermissions disallowed)
set disallowed vehicles
GNEClosingLaneReroute(GNERerouterInterval &rerouterIntervalParent, GNELane *closedLane, SVCPermissions allowedVehicles=SVC_IGNORING, SVCPermissions disallowedVehicles=SVC_IGNORING)
constructor
GNELane * getClosedLane() const
get closed lane Id
GNERerouterInterval * myRerouterIntervalParent
reference to rerouter interval parent
const GNERerouterInterval & getRerouterIntervalParent() const
get rerouter interval parent
vehicles ignoring classes