SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MSDevice_BTsender.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // A BT sender
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
10 // Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software: you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation, either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef MSDevice_BTsender_h
21 #define MSDevice_BTsender_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include "MSDevice.h"
34 #include <utils/common/SUMOTime.h>
35 
36 // ===========================================================================
37 // class declarations
38 // ===========================================================================
39 class SUMOVehicle;
40 
41 // ===========================================================================
42 // class definitions
43 // ===========================================================================
50 class MSDevice_BTsender : public MSDevice {
51 public:
54  static void insertOptions(OptionsCont& oc);
55 
56 
67  static void buildVehicleDevices(SUMOVehicle& v, std::vector<MSDevice*>& into);
68 
69 
70 public:
77  void generateOutput() const;
78 
79 
82 
83 
86  void reportRoute() {
87  myReportRoute = true;
88  }
89 
90 
91 private:
97  MSDevice_BTsender(SUMOVehicle& holder, const std::string& id);
98 
99 
100 private:
103 
104 
105 private:
108 
111 
112 
113 };
114 
115 
116 #endif
117 
118 /****************************************************************************/
119 
void generateOutput() const
Called on writing tripinfo output.
~MSDevice_BTsender()
Destructor.
MSDevice_BTsender & operator=(const MSDevice_BTsender &)
Invalidated assignment operator.
void reportRoute()
Says the device the holder shall report his route.
Representation of a vehicle.
Definition: SUMOVehicle.h:63
MSDevice_BTsender(SUMOVehicle &holder, const std::string &id)
Constructor.
static void insertOptions(OptionsCont &oc)
Inserts MSDevice_BTsender-options.
Abstract in-vehicle device.
Definition: MSDevice.h:68
A storage for options typed value containers)
Definition: OptionsCont.h:108
bool myReportRoute
Whether the vehicle shall report it&#39;s route.
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSDevice * > &into)
Build devices for the given vehicle, if needed.