Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
TraCIDefs.h File Reference
#include <libsumo/TraCIConstants.h>
#include <vector>
#include <limits>
#include <map>
#include <string>
#include <stdexcept>
#include <sstream>
#include <memory>
#include <cstring>
Include dependency graph for TraCIDefs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  libsumo::FatalTraCIError
 An error which is not recoverable. More...
 
struct  libsumo::TraCIBestLanesData
 
struct  libsumo::TraCICollision
 
struct  libsumo::TraCIColor
 A color. More...
 
class  libsumo::TraCIConnection
 
struct  libsumo::TraCIDouble
 
struct  libsumo::TraCIDoubleList
 
class  libsumo::TraCIException
 An error which allows to continue. More...
 
struct  libsumo::TraCIInt
 
struct  libsumo::TraCIJunctionFoe
 
class  libsumo::TraCILink
 
class  libsumo::TraCILogic
 
struct  libsumo::TraCINextStopData
 
struct  libsumo::TraCINextStopDataVector
 A list of vehicle stops. More...
 
struct  libsumo::TraCINextTLSData
 
class  libsumo::TraCIPhase
 
struct  libsumo::TraCIPosition
 A 2D or 3D-position, for 2D positions z == INVALID_DOUBLE_VALUE. More...
 
struct  libsumo::TraCIPositionVector
 A list of positions. More...
 
class  libsumo::TraCIReservation
 
struct  libsumo::TraCIResult
 
struct  libsumo::TraCIRoadPosition
 An edgeId, position and laneIndex. More...
 
struct  libsumo::TraCISignalConstraint
 
class  libsumo::TraCIStage
 
struct  libsumo::TraCIString
 
struct  libsumo::TraCIStringList
 
struct  libsumo::TraCIVehicleData
 mirrors MSInductLoop::VehicleData More...
 

Namespaces

namespace  libsumo
 
namespace  tcpip
 

Macros

#define LIBSUMO_GET_PARAMETER_WITH_KEY_IMPLEMENTATION(CLASS)
 
#define LIBSUMO_ID_PARAMETER_API
 
#define LIBSUMO_NAMESPACE   libsumo
 
#define LIBSUMO_SUBSCRIPTION_API
 
#define LIBSUMO_SUBSCRIPTION_IMPLEMENTATION(CLASS, DOM)
 
#define SWIGJAVA_CAST(CLASS)
 

Typedefs

Structures definitions
typedef std::map< std::string, libsumo::SubscriptionResultslibsumo::ContextSubscriptionResults
 
typedef std::map< std::string, libsumo::TraCIResultslibsumo::SubscriptionResults
 {object->{variable->value}}
 
typedef std::map< int, std::shared_ptr< libsumo::TraCIResult > > libsumo::TraCIResults
 {variable->value}
 

Detailed Description

Author
Daniel Krajzewicz
Mario Krumnow
Michael Behrisch
Robert Hilbrich
Date
30.05.2012

Definition in file TraCIDefs.h.

Macro Definition Documentation

◆ LIBSUMO_GET_PARAMETER_WITH_KEY_IMPLEMENTATION

#define LIBSUMO_GET_PARAMETER_WITH_KEY_IMPLEMENTATION (   CLASS)
Value:
const std::pair<std::string, std::string> \
CLASS::getParameterWithKey(const std::string& objectID, const std::string& key) { \
return std::make_pair(key, getParameter(objectID, key)); \
}

Definition at line 123 of file TraCIDefs.h.

◆ LIBSUMO_ID_PARAMETER_API

#define LIBSUMO_ID_PARAMETER_API
Value:
static std::vector<std::string> getIDList(); \
static int getIDCount(); \
static std::string getParameter(const std::string& objectID, const std::string& key); \
static const std::pair<std::string, std::string> getParameterWithKey(const std::string& objectID, const std::string& key); \
static void setParameter(const std::string& objectID, const std::string& key, const std::string& value);

Definition at line 116 of file TraCIDefs.h.

◆ LIBSUMO_NAMESPACE

#define LIBSUMO_NAMESPACE   libsumo

Definition at line 59 of file TraCIDefs.h.

◆ LIBSUMO_SUBSCRIPTION_API

#define LIBSUMO_SUBSCRIPTION_API
Value:
static void subscribe(const std::string& objectID, const std::vector<int>& varIDs = std::vector<int>({-1}), \
static void unsubscribe(const std::string& objectID); \
static void subscribeContext(const std::string& objectID, int domain, double dist, const std::vector<int>& varIDs = std::vector<int>({-1}), \
static void unsubscribeContext(const std::string& objectID, int domain, double dist); \
static const libsumo::SubscriptionResults getAllSubscriptionResults(); \
static const libsumo::TraCIResults getSubscriptionResults(const std::string& objectID); \
static const libsumo::ContextSubscriptionResults getAllContextSubscriptionResults(); \
static const libsumo::SubscriptionResults getContextSubscriptionResults(const std::string& objectID); \
static void subscribeParameterWithKey(const std::string& objectID, const std::string& key, double beginTime = libsumo::INVALID_DOUBLE_VALUE, double endTime = libsumo::INVALID_DOUBLE_VALUE); \
static const int DOMAIN_ID;
TRACI_CONST double INVALID_DOUBLE_VALUE
std::map< std::string, libsumo::SubscriptionResults > ContextSubscriptionResults
Definition TraCIDefs.h:338
std::map< std::string, libsumo::TraCIResults > SubscriptionResults
{object->{variable->value}}
Definition TraCIDefs.h:337
std::map< int, std::shared_ptr< libsumo::TraCIResult > > TraCIResults
{variable->value}
Definition TraCIDefs.h:335

Definition at line 62 of file TraCIDefs.h.

◆ LIBSUMO_SUBSCRIPTION_IMPLEMENTATION

#define LIBSUMO_SUBSCRIPTION_IMPLEMENTATION (   CLASS,
  DOM 
)

Definition at line 76 of file TraCIDefs.h.

◆ SWIGJAVA_CAST

#define SWIGJAVA_CAST (   CLASS)
Value:
static std::shared_ptr<CLASS> cast(std::shared_ptr<TraCIResult> res) { \
return std::dynamic_pointer_cast<CLASS>(res); \
}

Definition at line 130 of file TraCIDefs.h.