ROLane.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // A single lane the router may use
00008 /****************************************************************************/
00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00010 // Copyright 2001-2010 DLR (http://www.dlr.de/) and contributors
00011 /****************************************************************************/
00012 //
00013 //   This program is free software; you can redistribute it and/or modify
00014 //   it under the terms of the GNU General Public License as published by
00015 //   the Free Software Foundation; either version 2 of the License, or
00016 //   (at your option) any later version.
00017 //
00018 /****************************************************************************/
00019 #ifndef ROLane_h
00020 #define ROLane_h
00021 
00022 
00023 // ===========================================================================
00024 // included modules
00025 // ===========================================================================
00026 #ifdef _MSC_VER
00027 #include <windows_config.h>
00028 #else
00029 #include <config.h>
00030 #endif
00031 
00032 #include <vector>
00033 #include <utils/common/Named.h>
00034 #include <utils/common/SUMOVehicleClass.h>
00035 
00036 
00037 // ===========================================================================
00038 // class definitions
00039 // ===========================================================================
00049 class ROLane : public Named {
00050 public:
00059     ROLane(const std::string &id, SUMOReal length, SUMOReal maxSpeed,
00060            const std::vector<SUMOVehicleClass> &allowed,
00061            const std::vector<SUMOVehicleClass> &disallowed) throw()
00062             : Named(id), myLength(length), myMaxSpeed(maxSpeed),
00063             myAllowedClasses(allowed), myNotAllowedClasses(disallowed) {
00064     }
00065 
00066 
00068     ~ROLane() throw() { }
00069 
00070 
00074     SUMOReal getLength() const throw() {
00075         return myLength;
00076     }
00077 
00078 
00082     SUMOReal getSpeed() const throw() {
00083         return myMaxSpeed;
00084     }
00085 
00086 
00090     const std::vector<SUMOVehicleClass> &getAllowedClasses() const throw() {
00091         return myAllowedClasses;
00092     }
00093 
00094 
00098     const std::vector<SUMOVehicleClass> &getNotAllowedClasses() const throw() {
00099         return myNotAllowedClasses;
00100     }
00101 
00102 
00103 private:
00105     SUMOReal myLength;
00106 
00108     SUMOReal myMaxSpeed;
00109 
00111     std::vector<SUMOVehicleClass> myAllowedClasses;
00112 
00114     std::vector<SUMOVehicleClass> myNotAllowedClasses;
00115 
00116 
00117 private:
00119     ROLane(const ROLane &src);
00120 
00122     ROLane &operator=(const ROLane &src);
00123 
00124 };
00125 
00126 
00127 #endif
00128 
00129 /****************************************************************************/
00130 

Generated on Wed May 5 00:06:36 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6