SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MSDevice_HBEFA.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // A device which collects vehicular emissions (using HBEFA-reformulation)
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
11 // Copyright (C) 2001-2013 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 MSDevice_HBEFA_h
22 #define MSDevice_HBEFA_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 <set>
35 #include <vector>
36 #include <map>
37 #include "MSDevice.h"
38 #include <utils/common/SUMOTime.h>
39 #include <microsim/MSVehicle.h>
41 
42 
43 // ===========================================================================
44 // class declarations
45 // ===========================================================================
46 class MSLane;
47 
48 
49 // ===========================================================================
50 // class definitions
51 // ===========================================================================
63 class MSDevice_HBEFA : public MSDevice {
64 public:
68  static void insertOptions(OptionsCont& oc);
69 
70 
83  static void buildVehicleDevices(SUMOVehicle& v, std::vector<MSDevice*>& into);
84 
85 
86 public:
89 
90 
91 
94 
109  bool notifyMove(SUMOVehicle& veh, SUMOReal oldPos, SUMOReal newPos, SUMOReal newSpeed);
111 
112 
113 
120  void generateOutput() const;
121 
122 
123 private:
129  MSDevice_HBEFA(SUMOVehicle& holder, const std::string& id);
130 
131 
132 private:
135 
138 
139 
140 private:
143 
146 
147 
148 };
149 
150 
151 #endif
152 
153 /****************************************************************************/
154 
static void insertOptions(OptionsCont &oc)
Inserts MSDevice_HBEFA-options.
MSDevice_HBEFA(SUMOVehicle &holder, const std::string &id)
Constructor.
~MSDevice_HBEFA()
Destructor.
MSDevice_HBEFA & operator=(const MSDevice_HBEFA &)
Invalidated assignment operator.
Representation of a vehicle.
Definition: SUMOVehicle.h:63
void generateOutput() const
Called on writing tripinfo output.
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSDevice * > &into)
Build devices for the given vehicle, if needed.
Abstract in-vehicle device.
Definition: MSDevice.h:68
A storage for options typed value containers)
Definition: OptionsCont.h:108
bool notifyMove(SUMOVehicle &veh, SUMOReal oldPos, SUMOReal newPos, SUMOReal newSpeed)
Computes current emission values and adds them to their sums.
#define SUMOReal
Definition: config.h:221
Representation of a lane in the micro simulation.
Definition: MSLane.h:73
A device which collects vehicular emissions (using HBEFA-reformulation)