SUMO - Simulation of Urban MObility
Command_SaveTLCoupledDet.h
Go to the documentation of this file.
00001 /****************************************************************************/
00008 // Writes e2 state on each tls switch
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 Command_SaveTLCoupledDet_h
00022 #define Command_SaveTLCoupledDet_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 <string>
00035 #include <microsim/MSNet.h>
00036 #include <microsim/traffic_lights/MSTLLogicControl.h>
00037 
00038 
00039 // ===========================================================================
00040 // class declarations
00041 // ===========================================================================
00042 class MSNet;
00043 class MSTrafficLightLogic;
00044 class MSDetectorFileOutput;
00045 class OutputDevice;
00046 
00047 
00048 // ===========================================================================
00049 // class definitions
00050 // ===========================================================================
00057 class Command_SaveTLCoupledDet : public MSTLLogicControl::OnSwitchAction {
00058 public:
00066     Command_SaveTLCoupledDet(MSTLLogicControl::TLSLogicVariants& tlls,
00067                              MSDetectorFileOutput* dtf, unsigned int begin, OutputDevice& device);
00068 
00069 
00071     virtual ~Command_SaveTLCoupledDet();
00072 
00073 
00082     virtual void execute();
00083 
00084 
00085 protected:
00087     OutputDevice& myDevice;
00088 
00090     const MSTLLogicControl::TLSLogicVariants& myLogics;
00091 
00093     MSDetectorFileOutput* myDetector;
00094 
00096     SUMOTime myStartTime;
00097 
00098 
00099 private:
00101     Command_SaveTLCoupledDet(const Command_SaveTLCoupledDet&);
00102 
00104     Command_SaveTLCoupledDet& operator=(const Command_SaveTLCoupledDet&);
00105 
00106 };
00107 
00108 
00109 #endif
00110 
00111 /****************************************************************************/
00112 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines