SUMO - Simulation of Urban MObility
Command_SaveTLSState.h
Go to the documentation of this file.
00001 /****************************************************************************/
00008 // Writes the state of the tls to a file (in each second)
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_SaveTLSState_h
00022 #define Command_SaveTLSState_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 <map>
00036 #include <utils/common/Command.h>
00037 #include <microsim/traffic_lights/MSTLLogicControl.h>
00038 
00039 
00040 // ===========================================================================
00041 // class declarations
00042 // ===========================================================================
00043 class MSTrafficLightLogic;
00044 class OutputDevice;
00045 
00046 
00047 // ===========================================================================
00048 // class definitions
00049 // ===========================================================================
00054 class Command_SaveTLSState : public Command {
00055 public:
00061     Command_SaveTLSState(const MSTLLogicControl::TLSLogicVariants& logics,
00062                          OutputDevice& od);
00063 
00064 
00066     ~Command_SaveTLSState();
00067 
00068 
00071 
00080     SUMOTime execute(SUMOTime currentTime);
00082 
00083 
00084 private:
00086     OutputDevice& myOutputDevice;
00087 
00089     const MSTLLogicControl::TLSLogicVariants& myLogics;
00090 
00091 
00092 private:
00094     Command_SaveTLSState(const Command_SaveTLSState&);
00095 
00097     Command_SaveTLSState& operator=(const Command_SaveTLSState&);
00098 
00099 };
00100 
00101 
00102 #endif
00103 
00104 /****************************************************************************/
00105 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines