SUMO - Simulation of Urban MObility
ROJTRRouter.h
Go to the documentation of this file.
00001 /****************************************************************************/
00008 // Computes routes using junction turning percentages
00009 /****************************************************************************/
00010 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00011 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
00012 /****************************************************************************/
00013 //
00014 //   This file is part of SUMO.
00015 //   SUMO is free software: you can redistribute it and/or modify
00016 //   it under the terms of the GNU General Public License as published by
00017 //   the Free Software Foundation, either version 3 of the License, or
00018 //   (at your option) any later version.
00019 //
00020 /****************************************************************************/
00021 #ifndef ROJTRRouter_h
00022 #define ROJTRRouter_h
00023 
00024 
00025 // ===========================================================================
00026 // included modules
00027 // ===========================================================================
00028 #ifdef _MSC_VER
00029 #include <windows_config.h>
00030 #else
00031 #include <config.h>
00032 #endif
00033 
00034 #include <utils/common/SUMOAbstractRouter.h>
00035 
00036 
00037 // ===========================================================================
00038 // class declarations
00039 // ===========================================================================
00040 class RONet;
00041 class ROEdge;
00042 class ROJTREdge;
00043 
00044 
00045 // ===========================================================================
00046 // class definitions
00047 // ===========================================================================
00052 class ROJTRRouter : public SUMOAbstractRouter<ROEdge, ROVehicle> {
00053 public:
00062     ROJTRRouter(RONet& net, bool unbuildIsWarningOnly,
00063                 bool acceptAllDestinations, int maxEdges, bool ignoreClasses,
00064                 bool allowLoops);
00065 
00066 
00068     ~ROJTRRouter();
00069 
00070 
00071 
00074 
00084     void compute(const ROEdge* from, const ROEdge* to, const ROVehicle* const vehicle,
00085                  SUMOTime time, std::vector<const ROEdge*> &into);
00086 
00087 
00094     SUMOReal recomputeCosts(const std::vector<const ROEdge*> &edges, const ROVehicle* const v, SUMOTime time) const;
00096 
00097 
00098 private:
00100     RONet& myNet;
00101 
00103     int myMaxEdges;
00104 
00106     bool myUnbuildIsWarningOnly;
00107 
00109     bool myAcceptAllDestination;
00110 
00112     bool myIgnoreClasses;
00113 
00115     bool myAllowLoops;
00116 
00117 };
00118 
00119 
00120 #endif
00121 
00122 /****************************************************************************/
00123 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines