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