SUMO - Simulation of Urban MObility

RORouteDef_Complete.h

Go to the documentation of this file.
00001 /****************************************************************************/
00008 // A complete route definition (with all passed edges being known)
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 RORouteDef_Complete_h
00022 #define RORouteDef_Complete_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 <string>
00035 #include "RORouteDef.h"
00036 #include <utils/common/RGBColor.h>
00037 
00038 
00039 // ===========================================================================
00040 // class declarations
00041 // ===========================================================================
00042 class ROEdge;
00043 class RORoute;
00044 class ROVehicle;
00045 class OutputDevice;
00046 
00047 
00048 // ===========================================================================
00049 // class definitions
00050 // ===========================================================================
00055 class RORouteDef_Complete :
00056     public RORouteDef {
00057 public:
00059     RORouteDef_Complete(const std::string& id, const RGBColor* const color,
00060                         const std::vector<const ROEdge*> &edges,
00061                         bool tryRepair) ;
00062 
00064     virtual ~RORouteDef_Complete() ;
00065 
00067     RORoute* buildCurrentRoute(SUMOAbstractRouter<ROEdge, ROVehicle> &router, SUMOTime begin,
00068                                const ROVehicle& veh) const;
00069 
00074     void addAlternative(SUMOAbstractRouter<ROEdge, ROVehicle> &router,
00075                         const ROVehicle* const, RORoute* current, SUMOTime begin);
00076 
00078     RORouteDef* copy(const std::string& id) const;
00079 
00080     virtual OutputDevice& writeXMLDefinition(SUMOAbstractRouter<ROEdge, ROVehicle> &router,
00081             OutputDevice& dev, const ROVehicle* const veh, bool asAlternatives, bool withExitTimes) const;
00082 
00083 protected:
00085     mutable std::vector<const ROEdge*> myEdges;
00086 
00088     SUMOTime myStartTime;
00089 
00090     bool myTryRepair;
00091 
00092 
00093 private:
00095     RORouteDef_Complete(const RORouteDef_Complete& src);
00096 
00098     RORouteDef_Complete& operator=(const RORouteDef_Complete& src);
00099 
00100 };
00101 
00102 
00103 #endif
00104 
00105 /****************************************************************************/
00106 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines