Eclipse SUMO - Simulation of Urban MObility
TraCIServerAPI_Vehicle.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-2019 German Aerospace Center (DLR) and others.
4
// This program and the accompanying materials
5
// are made available under the terms of the Eclipse Public License v2.0
6
// which accompanies this distribution, and is available at
7
// http://www.eclipse.org/legal/epl-v20.html
8
// SPDX-License-Identifier: EPL-2.0
9
/****************************************************************************/
16
// APIs for getting/setting vehicle values via TraCI
17
/****************************************************************************/
18
#ifndef TraCIServerAPI_Vehicle_h
19
#define TraCIServerAPI_Vehicle_h
20
21
22
// ===========================================================================
23
// included modules
24
// ===========================================================================
25
#include <
config.h
>
26
27
#include <
microsim/MSEdgeWeightsStorage.h
>
28
#include "
TraCIServer.h
"
29
#include <
foreign/tcpip/storage.h
>
30
31
32
// ===========================================================================
33
// class definitions
34
// ===========================================================================
39
class
TraCIServerAPI_Vehicle
{
40
public
:
47
static
bool
processGet
(
TraCIServer
& server,
tcpip::Storage
& inputStorage,
48
tcpip::Storage
& outputStorage);
49
50
57
static
bool
processSet
(
TraCIServer
& server,
tcpip::Storage
& inputStorage,
58
tcpip::Storage
& outputStorage);
59
60
61
private
:
63
TraCIServerAPI_Vehicle
(
const
TraCIServerAPI_Vehicle
& s);
64
66
TraCIServerAPI_Vehicle
&
operator=
(
const
TraCIServerAPI_Vehicle
& s);
67
68
69
};
70
71
72
#endif
73
74
/****************************************************************************/
TraCIServerAPI_Vehicle::processSet
static bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xc4: Change Vehicle State)
Definition:
TraCIServerAPI_Vehicle.cpp:295
TraCIServerAPI_Vehicle
APIs for getting/setting vehicle values via TraCI.
Definition:
TraCIServerAPI_Vehicle.h:39
TraCIServerAPI_Vehicle::TraCIServerAPI_Vehicle
TraCIServerAPI_Vehicle(const TraCIServerAPI_Vehicle &s)
invalidated copy constructor
TraCIServerAPI_Vehicle::processGet
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xa4: Get Vehicle Variable)
Definition:
TraCIServerAPI_Vehicle.cpp:59
MSEdgeWeightsStorage.h
storage.h
TraCIServer.h
config.h
TraCIServerAPI_Vehicle::operator=
TraCIServerAPI_Vehicle & operator=(const TraCIServerAPI_Vehicle &s)
invalidated assignment operator
TraCIServer
TraCI server used to control sumo by a remote TraCI client.
Definition:
TraCIServer.h:62
tcpip::Storage
Definition:
storage.h:36
src
traci-server
TraCIServerAPI_Vehicle.h
Generated on Wed Jan 15 2020 15:04:13 for Eclipse SUMO - Simulation of Urban MObility by
1.8.16