SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RORouteDef_OrigDest.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // A route where only the origin and the destination edges are 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_OrigDest_h
22 #define RORouteDef_OrigDest_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 
45 
46 // ===========================================================================
47 // class definitions
48 // ===========================================================================
54  : public RORouteDef {
55 public:
57  RORouteDef_OrigDest(const std::string& id, const RGBColor* const color,
58  const ROEdge* from, const ROEdge* to, bool removeFirst = false) ;
59 
61  virtual ~RORouteDef_OrigDest() ;
62 
65  const ROVehicle& veh) const;
66 
71  const ROVehicle* const, RORoute* current, SUMOTime begin);
72 
74  RORouteDef* copy(const std::string& id) const;
75 
77  OutputDevice& dev, const ROVehicle* const veh, bool asAlternatives, bool withExitTimes) const;
78 
79 
80  /* @brief Returns destination of this route definition */
81  const ROEdge* getDestination() const;
82 
83 protected:
85  const ROEdge* myFrom, *myTo;
86 
89 
92 
96 
97 
98 private:
101 
104 
105 };
106 
107 
108 #endif
109 
110 /****************************************************************************/
111