SUMO - Simulation of Urban MObility
TraCIServerAPI_Vehicle.h
Go to the documentation of this file.
00001 /****************************************************************************/
00008 // APIs for getting/setting vehicle 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_Vehicle_h
00022 #define TraCIServerAPI_Vehicle_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 "TraCIException.h"
00037 #include <microsim/MSEdgeWeightsStorage.h>
00038 #include "TraCIServer.h"
00039 #include <foreign/tcpip/storage.h>
00040 
00041 
00042 // ===========================================================================
00043 // class definitions
00044 // ===========================================================================
00049 class TraCIServerAPI_Vehicle {
00050 public:
00057     static bool processGet(traci::TraCIServer& server, tcpip::Storage& inputStorage,
00058                            tcpip::Storage& outputStorage);
00059 
00060 
00067     static bool processSet(traci::TraCIServer& server, tcpip::Storage& inputStorage,
00068                            tcpip::Storage& outputStorage);
00069 
00070 
00071 private:
00072     static bool commandDistanceRequest(traci::TraCIServer& server, tcpip::Storage& inputStorage,
00073                                        tcpip::Storage& outputStorage, const MSVehicle* v);
00074 
00075     static MSVehicleType& getSingularType(SUMOVehicle* const veh) ;
00076 
00077 
00078 private:
00080     TraCIServerAPI_Vehicle(const TraCIServerAPI_Vehicle& s);
00081 
00083     TraCIServerAPI_Vehicle& operator=(const TraCIServerAPI_Vehicle& s);
00084 
00085 
00086 };
00087 
00088 
00089 #endif
00090 
00091 #endif
00092 
00093 /****************************************************************************/
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines