SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ROJTRRouter.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // Computes routes using junction turning percentages
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
11 // Copyright (C) 2001-2012 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 ROJTRRouter_h
22 #define ROJTRRouter_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 
35 
36 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
40 class RONet;
41 class ROEdge;
42 class ROJTREdge;
43 
44 
45 // ===========================================================================
46 // class definitions
47 // ===========================================================================
52 class ROJTRRouter : public SUMOAbstractRouter<ROEdge, ROVehicle> {
53 public:
62  ROJTRRouter(RONet& net, bool unbuildIsWarningOnly,
63  bool acceptAllDestinations, int maxEdges, bool ignoreClasses,
64  bool allowLoops);
65 
66 
68  ~ROJTRRouter();
69 
70 
71 
74 
84  void compute(const ROEdge* from, const ROEdge* to, const ROVehicle* const vehicle,
85  SUMOTime time, std::vector<const ROEdge*> &into);
86 
87 
94  SUMOReal recomputeCosts(const std::vector<const ROEdge*> &edges, const ROVehicle* const v, SUMOTime time) const;
96 
97 
98 private:
101 
104 
107 
110 
113 
116 
117 };
118 
119 
120 #endif
121 
122 /****************************************************************************/
123