SUMO - Simulation of Urban MObility

MSDevice_HBEFA.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // A device which collects vehicular emissions (using HBEFA-reformulation)
00008 /****************************************************************************/
00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00010 // Copyright (C) 2001-2011 DLR (http://www.dlr.de/) and contributors
00011 /****************************************************************************/
00012 //
00013 //   This program is free software; you can redistribute it and/or modify
00014 //   it under the terms of the GNU General Public License as published by
00015 //   the Free Software Foundation; either version 2 of the License, or
00016 //   (at your option) any later version.
00017 //
00018 /****************************************************************************/
00019 #ifndef MSDevice_HBEFA_h
00020 #define MSDevice_HBEFA_h
00021 
00022 
00023 // ===========================================================================
00024 // included modules
00025 // ===========================================================================
00026 #ifdef _MSC_VER
00027 #include <windows_config.h>
00028 #else
00029 #include <config.h>
00030 #endif
00031 
00032 #include <set>
00033 #include <vector>
00034 #include <map>
00035 #include "MSDevice.h"
00036 #include <utils/common/SUMOTime.h>
00037 #include <microsim/MSVehicle.h>
00038 #include <utils/common/WrappingCommand.h>
00039 
00040 
00041 // ===========================================================================
00042 // class declarations
00043 // ===========================================================================
00044 class MSLane;
00045 
00046 
00047 // ===========================================================================
00048 // class definitions
00049 // ===========================================================================
00061 class MSDevice_HBEFA : public MSDevice {
00062 public:
00065     static void insertOptions() throw();
00066 
00067 
00080     static void buildVehicleDevices(SUMOVehicle& v, std::vector<MSDevice*> &into) throw();
00081 
00082 
00083 public:
00086 
00101     bool notifyMove(SUMOVehicle& veh, SUMOReal oldPos, SUMOReal newPos, SUMOReal newSpeed) throw();
00103 
00104 
00111     void generateOutput() const throw(IOError);
00112 
00113 
00115     ~MSDevice_HBEFA() throw();
00116 
00117 
00118 private:
00124     MSDevice_HBEFA(SUMOVehicle& holder, const std::string& id) throw();
00125 
00126 
00127 private:
00130 
00131     SUMOReal myCO2, myCO, myHC, myPMx, myNOx, myFuel;
00132 
00134 
00135 
00136 private:
00138     MSDevice_HBEFA(const MSDevice_HBEFA&);
00139 
00141     MSDevice_HBEFA& operator=(const MSDevice_HBEFA&);
00142 
00143 
00144 };
00145 
00146 
00147 #endif
00148 
00149 /****************************************************************************/
00150 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines