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 2001-2010 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 
00085     static void buildVehicleDevices(MSVehicle &v, std::vector<MSDevice*> &into) throw();
00086 
00087 
00088 public:
00091 
00103     void enterLaneAtEmit(MSLane* enteredLane, const MSVehicle::State &state);
00105 
00106 
00113     void tripInfoOutput(OutputDevice &os) const throw(IOError);
00114 
00115 
00131     SUMOTime wrappedComputeCommandExecute(SUMOTime currentTime) throw(ProcessError);
00132 
00133 
00134 
00135 private:
00141     MSDevice_HBEFA(MSVehicle &holder, const std::string &id) throw();
00142 
00143 
00145     ~MSDevice_HBEFA() throw();
00146 
00147 
00148 private:
00150     static int myVehicleIndex;
00151 
00153     WrappingCommand< MSDevice_HBEFA >* myComputeAndCollectCommand;
00154 
00157 
00158     SUMOReal myCO2, myCO, myHC, myPMx, myNOx, myFuel;
00159 
00161 
00162 
00163 private:
00165     MSDevice_HBEFA(const MSDevice_HBEFA&);
00166 
00168     MSDevice_HBEFA& operator=(const MSDevice_HBEFA&);
00169 
00170 
00171 };
00172 
00173 
00174 #endif
00175 
00176 /****************************************************************************/
00177 

Generated on Wed May 5 00:06:31 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6