SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ROLane.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // A single lane the router may use
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
11 // Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
12 /****************************************************************************/
13 //
14 // This file is part of SUMO.
15 // SUMO is free software: you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation, either version 3 of the License, or
18 // (at your option) any later version.
19 //
20 /****************************************************************************/
21 #ifndef ROLane_h
22 #define ROLane_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <vector>
35 #include <utils/common/Named.h>
37 
38 
39 // ===========================================================================
40 // class definitions
41 // ===========================================================================
51 class ROLane : public Named {
52 public:
60  ROLane(const std::string& id, SUMOReal length, SUMOReal maxSpeed, SVCPermissions permissions) :
61  Named(id), myLength(length), myMaxSpeed(maxSpeed), myPermissions(permissions)
62  {}
63 
64 
66  ~ROLane() { }
67 
68 
72  SUMOReal getLength() const {
73  return myLength;
74  }
75 
76 
80  SUMOReal getSpeed() const {
81  return myMaxSpeed;
82  }
83 
84 
89  return myPermissions;
90  }
91 
92 
93 private:
96 
99 
102 
103 
104 private:
106  ROLane(const ROLane& src);
107 
109  ROLane& operator=(const ROLane& src);
110 
111 };
112 
113 
114 #endif
115 
116 /****************************************************************************/
117