|
SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00007 // Computes routes using junction turning percentages 00008 /****************************************************************************/ 00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/ 00010 // Copyright (C) 2001-2011 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 ROJTRRouter_h 00020 #define ROJTRRouter_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 <utils/common/SUMOAbstractRouter.h> 00033 00034 00035 // =========================================================================== 00036 // class declarations 00037 // =========================================================================== 00038 class RONet; 00039 class ROEdge; 00040 class ROJTREdge; 00041 00042 00043 // =========================================================================== 00044 // class definitions 00045 // =========================================================================== 00050 class ROJTRRouter : public SUMOAbstractRouter<ROEdge,ROVehicle> { 00051 public: 00060 ROJTRRouter(RONet& net, bool unbuildIsWarningOnly, 00061 bool acceptAllDestinations, int maxEdges, bool ignoreClasses, 00062 bool allowLoops); 00063 00064 00066 ~ROJTRRouter(); 00067 00068 00069 00072 00082 void compute(const ROEdge* from, const ROEdge* to, const ROVehicle* const vehicle, 00083 SUMOTime time, std::vector<const ROEdge*> &into); 00084 00085 00092 SUMOReal recomputeCosts(const std::vector<const ROEdge*> &edges, const ROVehicle* const v, SUMOTime time) throw(); 00094 00095 00096 private: 00098 RONet& myNet; 00099 00101 int myMaxEdges; 00102 00104 bool myUnbuildIsWarningOnly; 00105 00107 bool myAcceptAllDestination; 00108 00110 bool myIgnoreClasses; 00111 00113 bool myAllowLoops; 00114 00115 }; 00116 00117 00118 #endif 00119 00120 /****************************************************************************/ 00121