SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00009 // Class responsible for loading of routes from some files 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 MSRouteLoaderControl_h 00023 #define MSRouteLoaderControl_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 <vector> 00036 #include "MSVehicleContainer.h" 00037 #include "MSNet.h" 00038 00039 00040 // =========================================================================== 00041 // class declarations 00042 // =========================================================================== 00043 class MSRouteLoader; 00044 00045 00046 // =========================================================================== 00047 // class definitions 00048 // =========================================================================== 00058 class MSRouteLoaderControl { 00059 public: 00061 typedef std::vector<MSRouteLoader*> LoaderVector; 00062 00063 public: 00065 MSRouteLoaderControl(MSNet& net, SUMOTime inAdvanceStepNo, 00066 LoaderVector loader); 00067 00069 ~MSRouteLoaderControl(); 00070 00072 void loadNext(SUMOTime step); 00073 00074 private: 00076 SUMOTime myLastLoadTime; 00077 00079 SUMOTime myInAdvanceStepNo; 00080 00082 LoaderVector myRouteLoaders; 00083 00086 bool myLoadAll, myAllLoaded; 00087 }; 00088 00089 00090 #endif 00091 00092 /****************************************************************************/ 00093