SUMO - Simulation of Urban MObility
TraCIServerAPI_Junction.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
18 // APIs for getting/setting junction values via TraCI
19 /****************************************************************************/
20 #ifndef TraCIServerAPI_Junction_h
21 #define TraCIServerAPI_Junction_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 class Position;
43 class NamedRTree;
44 
45 
46 // ===========================================================================
47 // class definitions
48 // ===========================================================================
54 public:
61  static bool processGet(TraCIServer& server, tcpip::Storage& inputStorage,
62  tcpip::Storage& outputStorage);
63 
64 
70  static bool getPosition(const std::string& id, Position& p);
71 
72 
73 private:
76 
79 
80 
81 };
82 
83 
84 #endif
85 
86 #endif
87 
88 /****************************************************************************/
89 
APIs for getting/setting junction values via TraCI.
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xa9: Get Junction Variable)
A RT-tree for efficient storing of SUMO&#39;s Named objects.
Definition: NamedRTree.h:71
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:45
TraCI server used to control sumo by a remote TraCI client.
Definition: TraCIServer.h:69
TraCIServerAPI_Junction & operator=(const TraCIServerAPI_Junction &s)
invalidated assignment operator
static bool getPosition(const std::string &id, Position &p)
Returns the named junction&#39;s position.
TraCIServerAPI_Junction(const TraCIServerAPI_Junction &s)
invalidated copy constructor