SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00009 // Writes positions of vehicles that have a certain (named) type 00010 /****************************************************************************/ 00011 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/ 00012 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors 00013 /****************************************************************************/ 00014 // 00015 // This file is part of SUMO. 00016 // SUMO is free software: you can redistribute it and/or modify 00017 // it under the terms of the GNU General Public License as published by 00018 // the Free Software Foundation, either version 3 of the License, or 00019 // (at your option) any later version. 00020 // 00021 /****************************************************************************/ 00022 #ifndef MSVTypeProbe_h 00023 #define MSVTypeProbe_h 00024 00025 00026 // =========================================================================== 00027 // included modules 00028 // =========================================================================== 00029 #ifdef _MSC_VER 00030 #include <windows_config.h> 00031 #else 00032 #include <config.h> 00033 #endif 00034 00035 #include <string> 00036 #include <utils/common/Command.h> 00037 #include <utils/iodevices/OutputDevice.h> 00038 #include <utils/common/Named.h> 00039 #include <utils/common/SUMOTime.h> 00040 00041 00042 // =========================================================================== 00043 // class definitions 00044 // =========================================================================== 00060 class MSVTypeProbe : public Named, public Command { 00061 public: 00069 MSVTypeProbe(const std::string& id, const std::string& vType, 00070 OutputDevice& od, SUMOTime frequency); 00071 00072 00074 virtual ~MSVTypeProbe(); 00075 00076 00077 00080 00091 SUMOTime execute(SUMOTime currentTime); 00093 00094 00095 private: 00097 std::string myVType; 00098 00100 OutputDevice& myOutputDevice; 00101 00103 SUMOTime myFrequency; 00104 00105 00106 private: 00108 MSVTypeProbe(const MSVTypeProbe&); 00109 00111 MSVTypeProbe& operator=(const MSVTypeProbe&); 00112 00113 00114 }; 00115 00116 #endif 00117 00118 /****************************************************************************/ 00119