SUMO - Simulation of Urban MObility
TraCIServerAPI_Person.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // APIs for getting/setting person values via TraCI
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2001-2015 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software: you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation, either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef TraCIServerAPI_Person_h
21 #define TraCIServerAPI_Person_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #ifndef NO_TRACI
34 
35 #include <foreign/tcpip/storage.h>
36 
37 
38 // ===========================================================================
39 // class declarations
40 // ===========================================================================
41 class TraCIServer;
42 
43 
44 // ===========================================================================
45 // class definitions
46 // ===========================================================================
52 public:
59  static bool processGet(TraCIServer& server, tcpip::Storage& inputStorage,
60  tcpip::Storage& outputStorage);
61 
62 
69  static bool processSet(TraCIServer& server, tcpip::Storage& inputStorage,
70  tcpip::Storage& outputStorage);
71 
72 
78  static bool getPosition(const std::string& id, Position& p);
79 
80 private:
81  //static MSVehicleType& getSingularType(MSPerson* const person);
82 
83 private:
86 
89 
90 
91 };
92 
93 
94 #endif
95 
96 #endif
97 
98 /****************************************************************************/
APIs for getting/setting person values via TraCI.
TraCIServerAPI_Person & operator=(const TraCIServerAPI_Person &s)
invalidated assignment operator
static bool getPosition(const std::string &id, Position &p)
Returns the named persons&#39;s position.
static bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xce: Change Person State)
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:46
TraCI server used to control sumo by a remote TraCI client.
Definition: TraCIServer.h:74
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xae: Get Person Variable)
TraCIServerAPI_Person(const TraCIServerAPI_Person &s)
invalidated copy constructor