SUMO - Simulation of Urban MObility
GUIVehicleControl.h
Go to the documentation of this file.
00001 /****************************************************************************/
00008 // The class responsible for building and deletion of vehicles (gui-version)
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 GUIVehicleControl_h
00022 #define GUIVehicleControl_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 <vector>
00035 #include <microsim/MSVehicleControl.h>
00036 #include <utils/gui/globjects/GUIGlObject.h>
00037 
00038 
00039 // ===========================================================================
00040 // class declarations
00041 // ===========================================================================
00042 class MFXMutex;
00043 
00044 
00045 // ===========================================================================
00046 // class definitions
00047 // ===========================================================================
00058 class GUIVehicleControl : public MSVehicleControl {
00059 public:
00061     GUIVehicleControl() ;
00062 
00063 
00065     ~GUIVehicleControl() ;
00066 
00067 
00070 
00084     SUMOVehicle* buildVehicle(SUMOVehicleParameter* defs,
00085                               const MSRoute* route, const MSVehicleType* type) ;
00087 
00088 
00097     bool addVehicle(const std::string& id, SUMOVehicle* v) ;
00098 
00099 
00107     void deleteVehicle(SUMOVehicle* v, bool discard=false);
00108 
00109 
00114     void insertVehicleIDs(std::vector<GUIGlID> &into) ;
00115 
00116 
00117 private:
00119     mutable MFXMutex myLock;
00120 
00121 
00122 private:
00124     GUIVehicleControl(const GUIVehicleControl& s);
00125 
00127     GUIVehicleControl& operator=(const GUIVehicleControl& s);
00128 
00129 
00130 };
00131 
00132 
00133 #endif
00134 
00135 /****************************************************************************/
00136 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines