SUMO - Simulation of Urban MObility
TraCIServerAPI_Simulation.h
Go to the documentation of this file.
00001 /****************************************************************************/
00008 // APIs for getting/setting edge values via TraCI
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 TraCIServerAPI_Simulation_h
00022 #define TraCIServerAPI_Simulation_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 #ifndef NO_TRACI
00035 
00036 #include <string>
00037 #include <map>
00038 #include <vector>
00039 #include "TraCIException.h"
00040 #include "TraCIServer.h"
00041 #include <foreign/tcpip/storage.h>
00042 
00043 
00044 // ===========================================================================
00045 // class definitions
00046 // ===========================================================================
00051 class TraCIServerAPI_Simulation {
00052 public:
00059     static bool processGet(traci::TraCIServer& server, tcpip::Storage& inputStorage,
00060                            tcpip::Storage& outputStorage);
00061 
00068     static std::pair<MSLane*, SUMOReal> convertCartesianToRoadMap(Position pos);
00069 
00076     static const MSLane* getLaneChecking(std::string roadID, int laneIndex, SUMOReal pos);
00077 
00078     static bool commandPositionConversion(traci::TraCIServer& server, tcpip::Storage& inputStorage,
00079                                           tcpip::Storage& outputStorage, int commandId);
00080 
00081     static bool commandDistanceRequest(traci::TraCIServer& server, tcpip::Storage& inputStorage,
00082                                        tcpip::Storage& outputStorage, int commandId);
00083 
00084 private:
00086     TraCIServerAPI_Simulation(const TraCIServerAPI_Simulation& s);
00087 
00089     TraCIServerAPI_Simulation& operator=(const TraCIServerAPI_Simulation& s);
00090 
00091 
00092 };
00093 
00094 
00095 #endif
00096 
00097 #endif
00098 
00099 /****************************************************************************/
00100 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines