SUMO - Simulation of Urban MObility

ROAbstractRouteDefLoader.h

Go to the documentation of this file.
00001 /****************************************************************************/
00008 // The abstract base class for loading routes or route definitions
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 ROAbstractRouteDefLoader_h
00022 #define ROAbstractRouteDefLoader_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 <utils/common/SUMOTime.h>
00036 #include <utils/common/UtilExceptions.h>
00037 
00038 
00039 // ===========================================================================
00040 // class declarations
00041 // ===========================================================================
00042 class ROLoader;
00043 class RONet;
00044 class OptionsCont;
00045 
00046 
00047 // ===========================================================================
00048 // class definitions
00049 // ===========================================================================
00057 class ROAbstractRouteDefLoader {
00058 public:
00065     ROAbstractRouteDefLoader(RONet& net, SUMOTime begin, SUMOTime end) ;
00066 
00067 
00069     virtual ~ROAbstractRouteDefLoader() ;
00070 
00071 
00074 
00086     virtual bool readRoutesAtLeastUntil(SUMOTime time, bool skipping) = 0;
00087 
00088 
00093     virtual SUMOTime getLastReadTimeStep() const = 0;
00094 
00095 
00100     virtual bool ended() const = 0;
00102 
00103 
00104 protected:
00106     RONet& myNet;
00107 
00109     SUMOTime myBegin;
00110 
00112     SUMOTime myEnd;
00113 
00114 
00115 private:
00117     ROAbstractRouteDefLoader(const ROAbstractRouteDefLoader& src);
00118 
00120     ROAbstractRouteDefLoader& operator=(const ROAbstractRouteDefLoader& src);
00121 
00122 };
00123 
00124 
00125 #endif
00126 
00127 /****************************************************************************/
00128 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines