ROJTRRouter.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // The junction-percentage router
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 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:
00053     ROJTRRouter(RONet &net, bool unbuildIsWarningOnly,
00054                 bool acceptAllDestinations);
00055 
00057     ~ROJTRRouter();
00058 
00061     void compute(const ROEdge *from, const ROEdge *to, const ROVehicle * const vehicle,
00062                  SUMOTime time, std::vector<const ROEdge*> &into);
00063 
00064     SUMOReal recomputeCosts(const std::vector<const ROEdge*> &edges, const ROVehicle * const v, SUMOTime time) throw();
00065 
00066 
00067 private:
00069     RONet &myNet;
00070 
00072     int myMaxEdges;
00073 
00074     bool myUnbuildIsWarningOnly;
00075 
00076     bool myAcceptAllDestination;
00077 
00078     bool myIgnoreClasses;
00079 
00080 };
00081 
00082 
00083 #endif
00084 
00085 /****************************************************************************/
00086 

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