SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RORouteDef_Complete.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // A complete route definition (with all passed edges being known)
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 RORouteDef_Complete_h
22 #define RORouteDef_Complete_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 
34 #include <string>
35 #include "RORouteDef.h"
36 #include <utils/common/RGBColor.h>
37 
38 
39 // ===========================================================================
40 // class declarations
41 // ===========================================================================
42 class ROEdge;
43 class RORoute;
44 class ROVehicle;
45 class OutputDevice;
46 
47 
48 // ===========================================================================
49 // class definitions
50 // ===========================================================================
56  public RORouteDef {
57 public:
59  RORouteDef_Complete(const std::string& id, const RGBColor* const color,
60  const std::vector<const ROEdge*> &edges,
61  bool tryRepair) ;
62 
64  virtual ~RORouteDef_Complete() ;
65 
68  const ROVehicle& veh) const;
69 
75  const ROVehicle* const, RORoute* current, SUMOTime begin);
76 
78  RORouteDef* copy(const std::string& id) const;
79 
81  OutputDevice& dev, const ROVehicle* const veh, bool asAlternatives, bool withExitTimes) const;
82 
83  /* @brief Returns destination of this route definition */
84  const ROEdge* getDestination() const;
85 
86 protected:
88  mutable std::vector<const ROEdge*> myEdges;
89 
92 
94 
95 
96 private:
99 
102 
103 };
104 
105 
106 #endif
107 
108 /****************************************************************************/
109