36typedef Domain<libsumo::CMD_GET_LANE_VARIABLE, libsumo::CMD_SET_LANE_VARIABLE>
Dom;
43std::vector<std::string>
56Lane::getEdgeID(
const std::string& laneID) {
62Lane::getLength(
const std::string& laneID) {
68Lane::getMaxSpeed(
const std::string& laneID) {
74Lane::getFriction(
const std::string& laneID) {
80Lane::getLinkNumber(
const std::string& laneID) {
85std::vector<libsumo::TraCIConnection>
86Lane::getLinks(
const std::string& laneID) {
88 std::vector<libsumo::TraCIConnection> ret;
94 for (
int i = 0; i < linkNo; ++i) {
100 std::string approachedLaneInternal = sto.
readString();
124 approachedLaneInternal,
134std::vector<std::string>
135Lane::getAllowed(
const std::string& laneID) {
140std::vector<std::string>
141Lane::getDisallowed(
const std::string& laneID) {
146std::vector<std::string>
147Lane::getChangePermissions(
const std::string& laneID,
const int direction) {
155Lane::getShape(
const std::string& laneID) {
161Lane::getWidth(
const std::string& laneID) {
167Lane::getCO2Emission(
const std::string& laneID) {
173Lane::getCOEmission(
const std::string& laneID) {
179Lane::getHCEmission(
const std::string& laneID) {
185Lane::getPMxEmission(
const std::string& laneID) {
191Lane::getNOxEmission(
const std::string& laneID) {
197Lane::getFuelConsumption(
const std::string& laneID) {
203Lane::getNoiseEmission(
const std::string& laneID) {
209Lane::getElectricityConsumption(
const std::string& laneID) {
215Lane::getLastStepMeanSpeed(
const std::string& laneID) {
221Lane::getLastStepOccupancy(
const std::string& laneID) {
227Lane::getLastStepLength(
const std::string& laneID) {
233Lane::getWaitingTime(
const std::string& laneID) {
239Lane::getTraveltime(
const std::string& laneID) {
245Lane::getLastStepVehicleNumber(
const std::string& laneID) {
251Lane::getLastStepHaltingNumber(
const std::string& laneID) {
256std::vector<std::string>
257Lane::getLastStepVehicleIDs(
const std::string& laneID) {
262std::vector<std::string>
263Lane::getFoes(
const std::string& laneID,
const std::string& toLaneID) {
272std::vector<std::string>
273Lane::getInternalFoes(
const std::string& laneID) {
278 return getFoes(laneID,
"");
283const std::vector<std::string>
284Lane::getPendingVehicles(
const std::string& laneID) {
290Lane::getAngle(
const std::string& laneID,
double relativePosition) {
298Lane::getBidiLane(
const std::string& laneID) {
303Lane::setAllowed(
const std::string& laneID, std::string allowedClass) {
304 setAllowed(laneID, std::vector<std::string>({allowedClass}));
309Lane::setAllowed(
const std::string& laneID, std::vector<std::string> allowedClasses) {
315Lane::setDisallowed(
const std::string& laneID, std::string disallowedClasses) {
316 setDisallowed(laneID, std::vector<std::string>({disallowedClasses}));
321Lane::setDisallowed(
const std::string& laneID, std::vector<std::string> disallowedClasses) {
327Lane::setChangePermissions(
const std::string& laneID, std::vector<std::string> allowedClasses,
const int direction) {
337Lane::setMaxSpeed(
const std::string& laneID,
double speed) {
343Lane::setFriction(
const std::string& laneID,
double friction) {
349Lane::setLength(
const std::string& laneID,
double length) {
#define LIBTRACI_SUBSCRIPTION_IMPLEMENTATION(CLASS, DOMAIN)
#define LIBTRACI_PARAMETER_IMPLEMENTATION(CLASS, DOMAIN)
C++ TraCI client API implementation.
static void writeCompound(tcpip::Storage &content, int size)
static void writeTypedStringList(tcpip::Storage &content, const std::vector< std::string > &value)
static void writeTypedByte(tcpip::Storage &content, int value)
static Connection & getActive()
std::mutex & getMutex() const
static void setDouble(int var, const std::string &id, double value)
static std::vector< std::string > getStringVector(int var, const std::string &id, tcpip::Storage *add=nullptr)
static void setStringVector(int var, const std::string &id, const std::vector< std::string > &value)
static std::string getString(int var, const std::string &id, tcpip::Storage *add=nullptr)
static int getInt(int var, const std::string &id, tcpip::Storage *add=nullptr)
static libsumo::TraCIPositionVector getPolygon(int var, const std::string &id, tcpip::Storage *add=nullptr)
static void set(int var, const std::string &id, tcpip::Storage *add)
static double getDouble(int var, const std::string &id, tcpip::Storage *add=nullptr)
static tcpip::Storage & get(int var, const std::string &id, tcpip::Storage *add=nullptr, int expectedType=libsumo::TYPE_COMPOUND)
virtual std::string readString()
virtual void writeString(const std::string &s)
virtual void writeDouble(double)
virtual int readUnsignedByte()
virtual void writeUnsignedByte(int)
virtual double readDouble()
TRACI_CONST int LAST_STEP_VEHICLE_ID_LIST
TRACI_CONST int LAST_STEP_VEHICLE_NUMBER
TRACI_CONST int VAR_NOXEMISSION
TRACI_CONST int LANE_LINKS
TRACI_CONST int TRACI_ID_LIST
TRACI_CONST int VAR_WAITING_TIME
TRACI_CONST int LANE_LINK_NUMBER
TRACI_CONST int LANE_CHANGES
TRACI_CONST int LAST_STEP_LENGTH
TRACI_CONST int VAR_ANGLE
TRACI_CONST int LANE_EDGE_ID
TRACI_CONST int VAR_PMXEMISSION
TRACI_CONST int VAR_COEMISSION
TRACI_CONST int VAR_WIDTH
TRACI_CONST int VAR_MAXSPEED
TRACI_CONST int LAST_STEP_MEAN_SPEED
TRACI_CONST int VAR_CO2EMISSION
TRACI_CONST int VAR_PENDING_VEHICLES
TRACI_CONST int VAR_FUELCONSUMPTION
TRACI_CONST int VAR_SHAPE
TRACI_CONST int LAST_STEP_VEHICLE_HALTING_NUMBER
TRACI_CONST int VAR_LENGTH
TRACI_CONST int VAR_HCEMISSION
TRACI_CONST int LAST_STEP_OCCUPANCY
TRACI_CONST int VAR_NOISEEMISSION
TRACI_CONST int LANE_DISALLOWED
TRACI_CONST int VAR_FRICTION
TRACI_CONST int TYPE_DOUBLE
TRACI_CONST int VAR_CURRENT_TRAVELTIME
TRACI_CONST int LANE_ALLOWED
TRACI_CONST int VAR_ELECTRICITYCONSUMPTION
TRACI_CONST int TYPE_STRING
Domain< libsumo::CMD_GET_BUSSTOP_VARIABLE, libsumo::CMD_SET_BUSSTOP_VARIABLE > Dom