SUMO - Simulation of Urban MObility
Lane.cpp
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2017-2018 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 /****************************************************************************/
20 // C++ TraCI client API implementation
21 /****************************************************************************/
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #include <config.h>
28 
29 #include <microsim/MSNet.h>
30 #include <microsim/MSLane.h>
31 #include <microsim/MSEdge.h>
32 #include <microsim/MSVehicle.h>
34 #include "Lane.h"
35 
36 
37 namespace libsumo {
38 // ===========================================================================
39 // static member initializations
40 // ===========================================================================
43 
44 
45 // ===========================================================================
46 // static member definitions
47 // ===========================================================================
48 std::vector<std::string>
50  std::vector<std::string> ids;
51  MSLane::insertIDs(ids);
52  return ids;
53 }
54 
55 
56 int
58  return (int)getIDList().size();
59 }
60 
61 
62 std::string
63 Lane::getEdgeID(std::string laneID) {
64  return getLane(laneID)->getEdge().getID();
65 }
66 
67 
68 double
69 Lane::getLength(std::string laneID) {
70  return getLane(laneID)->getLength();
71 }
72 
73 
74 double
75 Lane::getMaxSpeed(std::string laneID) {
76  return getLane(laneID)->getSpeedLimit();
77 }
78 
79 
80 int
81 Lane::getLinkNumber(std::string laneID) {
82  return (int)getLane(laneID)->getLinkCont().size();
83 }
84 
85 
86 std::vector<TraCIConnection>
87 Lane::getLinks(std::string laneID) {
88  std::vector<TraCIConnection> v;
89  const MSLane* const lane = getLane(laneID);
90  const SUMOTime currTime = MSNet::getInstance()->getCurrentTimeStep();
91  for (const MSLink* const link : lane->getLinkCont()) {
92  const std::string approachedLane = link->getLane() != nullptr ? link->getLane()->getID() : "";
93  const bool hasPrio = link->havePriority();
94  const double speed = MIN2(lane->getSpeedLimit(), link->getLane()->getSpeedLimit());
95  const bool isOpen = link->opened(currTime, speed, speed, SUMOVTypeParameter::getDefault().length,
97  const bool hasFoe = link->hasApproachingFoe(currTime, currTime, 0, SUMOVTypeParameter::getDefaultDecel());
98  const std::string approachedInternal = link->getViaLane() != nullptr ? link->getViaLane()->getID() : "";
99  const std::string state = SUMOXMLDefinitions::LinkStates.getString(link->getState());
100  const std::string direction = SUMOXMLDefinitions::LinkDirections.getString(link->getDirection());
101  const double length = link->getLength();
102  v.push_back(TraCIConnection(approachedLane, hasPrio, isOpen, hasFoe, approachedInternal, state, direction, length));
103  }
104  return v;
105 }
106 
107 
108 std::vector<std::string>
109 Lane::getAllowed(std::string laneID) {
110  SVCPermissions permissions = getLane(laneID)->getPermissions();
111  if (permissions == SVCAll) { // special case: write nothing
112  permissions = 0;
113  }
114  return getVehicleClassNamesList(permissions);
115 }
116 
117 
118 std::vector<std::string>
119 Lane::getDisallowed(std::string laneID) {
120  return getVehicleClassNamesList(invertPermissions((getLane(laneID)->getPermissions()))); // negation yields disallowed
121 }
122 
123 
125 Lane::getShape(std::string laneID) {
127  const PositionVector& shp = getLane(laneID)->getShape();
128  for (PositionVector::const_iterator pi = shp.begin(); pi != shp.end(); ++pi) {
129  TraCIPosition p;
130  p.x = pi->x();
131  p.y = pi->y();
132  p.z = pi->z();
133  pv.push_back(p);
134  }
135  return pv;
136 }
137 
138 
139 double
140 Lane::getWidth(std::string laneID) {
141  return getLane(laneID)->getWidth();
142 }
143 
144 
145 double
146 Lane::getCO2Emission(std::string laneID) {
147  return getLane(laneID)->getCO2Emissions();
148 }
149 
150 
151 double
152 Lane::getCOEmission(std::string laneID) {
153  return getLane(laneID)->getCOEmissions();
154 }
155 
156 
157 double
158 Lane::getHCEmission(std::string laneID) {
159  return getLane(laneID)->getHCEmissions();
160 }
161 
162 
163 double
164 Lane::getPMxEmission(std::string laneID) {
165  return getLane(laneID)->getPMxEmissions();
166 }
167 
168 
169 double
170 Lane::getNOxEmission(std::string laneID) {
171  return getLane(laneID)->getNOxEmissions();
172 }
173 
174 double
175 Lane::getFuelConsumption(std::string laneID) {
176  return getLane(laneID)->getFuelConsumption();
177 }
178 
179 
180 double
181 Lane::getNoiseEmission(std::string laneID) {
182  return getLane(laneID)->getHarmonoise_NoiseEmissions();
183 }
184 
185 
186 double
187 Lane::getElectricityConsumption(std::string laneID) {
188  return getLane(laneID)->getElectricityConsumption();
189 }
190 
191 
192 double
193 Lane::getLastStepMeanSpeed(std::string laneID) {
194  return getLane(laneID)->getMeanSpeed();
195 }
196 
197 
198 double
199 Lane::getLastStepOccupancy(std::string laneID) {
200  return getLane(laneID)->getNettoOccupancy();
201 }
202 
203 
204 double
205 Lane::getLastStepLength(std::string laneID) {
206  const MSLane* lane = getLane(laneID);
207  double length = 0;
208  const MSLane::VehCont& vehs = lane->getVehiclesSecure();
209  for (MSLane::VehCont::const_iterator j = vehs.begin(); j != vehs.end(); ++j) {
210  length += (*j)->getVehicleType().getLength();
211  }
212  if (vehs.size() > 0) {
213  length = length / (double)vehs.size();
214  }
215  lane->releaseVehicles();
216  return length;
217 }
218 
219 
220 double
221 Lane::getWaitingTime(std::string laneID) {
222  return getLane(laneID)->getWaitingSeconds();
223 }
224 
225 
226 double
227 Lane::getTraveltime(std::string laneID) {
228  const MSLane* lane = getLane(laneID);
229  double meanSpeed = lane->getMeanSpeed();
230  if (meanSpeed != 0) {
231  return lane->getLength() / meanSpeed;
232  } else {
233  return 1000000.;
234  }
235 }
236 
237 
238 int
239 Lane::getLastStepVehicleNumber(std::string laneID) {
240  return (int)getLane(laneID)->getVehicleNumber();
241 }
242 
243 int
244 Lane::getLastStepHaltingNumber(std::string laneID) {
245  const MSLane* lane = getLane(laneID);
246  int halting = 0;
247  const MSLane::VehCont& vehs = lane->getVehiclesSecure();
248  for (MSLane::VehCont::const_iterator j = vehs.begin(); j != vehs.end(); ++j) {
249  if ((*j)->getSpeed() < SUMO_const_haltingSpeed) {
250  ++halting;
251  }
252  }
253  lane->releaseVehicles();
254  return halting;
255 }
256 
257 
258 std::vector<std::string>
259 Lane::getLastStepVehicleIDs(std::string laneID) {
260  const MSLane* lane = getLane(laneID);
261  std::vector<std::string> vehIDs;
262  const MSLane::VehCont& vehs = lane->getVehiclesSecure();
263  for (MSLane::VehCont::const_iterator j = vehs.begin(); j != vehs.end(); ++j) {
264  vehIDs.push_back((*j)->getID());
265  }
266  lane->releaseVehicles();
267  return vehIDs;
268 }
269 
270 
271 std::vector<std::string>
272 Lane::getFoes(const std::string& laneID, const std::string& toLaneID) {
273  std::vector<std::string> foeIDs;
274  const MSLane* from = getLane(laneID);
275  const MSLane* to = getLane(toLaneID);
276  const MSLink* link = MSLinkContHelper::getConnectingLink(*from, *to);
277  if (link == nullptr) {
278  throw TraCIException("No connection from lane '" + laneID + "' to lane '" + toLaneID + "'");
279  }
280  for (MSLink* foe : link->getFoeLinks()) {
281  foeIDs.push_back(foe->getLaneBefore()->getID());
282  }
283  return foeIDs;
284 }
285 
286 
287 std::vector<std::string>
288 Lane::getInternalFoes(const std::string& laneID) {
289  const MSLane* lane = getLane(laneID);
290  const std::vector<const MSLane*>* foeLanes;
291  std::vector<const MSLane*>::const_iterator it;
292  std::vector<std::string> foeIDs;
293 
294  if (lane->isInternal()) {
295  MSLink* link = lane->getLinkCont().front();
296  foeLanes = &link->getFoeLanes();
297 
298  for (it = foeLanes->begin(); foeLanes->end() != it; ++it) {
299  foeIDs.push_back((*it)->getID());
300  }
301  }
302  return foeIDs;
303 }
304 
305 
306 void
307 Lane::setAllowed(std::string laneID, std::vector<std::string> allowedClasses) {
308  MSLane* l = const_cast<MSLane*>(getLane(laneID));
311  for (MSEdge* const pred : l->getEdge().getPredecessors()) {
312  pred->rebuildAllowedTargets();
313  }
314 }
315 
316 
317 void
318 Lane::setDisallowed(std::string laneID, std::vector<std::string> disallowedClasses) {
319  MSLane* l = const_cast<MSLane*>(getLane(laneID));
320  l->setPermissions(invertPermissions(parseVehicleClasses(disallowedClasses)), MSLane::CHANGE_PERMISSIONS_PERMANENT); // negation yields allowed
322  for (MSEdge* const pred : l->getEdge().getPredecessors()) {
323  pred->rebuildAllowedTargets();
324  }
325 }
326 
327 
328 void
329 Lane::setMaxSpeed(std::string laneID, double speed) {
330  MSLane* l = const_cast<MSLane*>(getLane(laneID));
331  l->setMaxSpeed(speed);
332 }
333 
334 
335 void
336 Lane::setLength(std::string laneID, double length) {
337  MSLane* l = const_cast<MSLane*>(getLane(laneID));
338  l->setLength(length);
339 }
340 
341 
342 std::string
343 Lane::getParameter(const std::string& laneID, const std::string& param) {
344  return getLane(laneID)->getParameter(param, "");
345 }
346 
347 
348 void
349 Lane::setParameter(const std::string& laneID, const std::string& key, const std::string& value) {
350  MSLane* l = const_cast<MSLane*>(getLane(laneID));
351  l->setParameter(key, value);
352 }
353 
354 
356 
357 
358 const MSLane*
359 Lane::getLane(const std::string& id) {
360  const MSLane* r = MSLane::dictionary(id);
361  if (r == nullptr) {
362  throw TraCIException("Lane '" + id + "' is not known");
363  }
364  return r;
365 }
366 
367 
368 void
369 Lane::storeShape(const std::string& id, PositionVector& shape) {
370  shape = getLane(id)->getShape();
371 }
372 
373 
374 std::shared_ptr<VariableWrapper>
376  return std::make_shared<Helper::SubscriptionWrapper>(handleVariable, mySubscriptionResults, myContextSubscriptionResults);
377 }
378 
379 
380 bool
381 Lane::handleVariable(const std::string& objID, const int variable, VariableWrapper* wrapper) {
382  switch (variable) {
383  case TRACI_ID_LIST:
384  return wrapper->wrapStringList(objID, variable, getIDList());
385  case ID_COUNT:
386  return wrapper->wrapInt(objID, variable, getIDCount());
387  case LANE_LINK_NUMBER:
388  return wrapper->wrapInt(objID, variable, getLinkNumber(objID));
389  case LANE_EDGE_ID:
390  return wrapper->wrapString(objID, variable, getEdgeID(objID));
391  case VAR_LENGTH:
392  return wrapper->wrapDouble(objID, variable, getLength(objID));
393  case VAR_MAXSPEED:
394  return wrapper->wrapDouble(objID, variable, getMaxSpeed(objID));
395  case LANE_ALLOWED:
396  return wrapper->wrapStringList(objID, variable, getAllowed(objID));
397  case LANE_DISALLOWED:
398  return wrapper->wrapStringList(objID, variable, getDisallowed(objID));
399  case VAR_CO2EMISSION:
400  return wrapper->wrapDouble(objID, variable, getCO2Emission(objID));
401  case VAR_COEMISSION:
402  return wrapper->wrapDouble(objID, variable, getCOEmission(objID));
403  case VAR_HCEMISSION:
404  return wrapper->wrapDouble(objID, variable, getHCEmission(objID));
405  case VAR_PMXEMISSION:
406  return wrapper->wrapDouble(objID, variable, getPMxEmission(objID));
407  case VAR_NOXEMISSION:
408  return wrapper->wrapDouble(objID, variable, getNOxEmission(objID));
409  case VAR_FUELCONSUMPTION:
410  return wrapper->wrapDouble(objID, variable, getFuelConsumption(objID));
411  case VAR_NOISEEMISSION:
412  return wrapper->wrapDouble(objID, variable, getNoiseEmission(objID));
414  return wrapper->wrapDouble(objID, variable, getElectricityConsumption(objID));
416  return wrapper->wrapInt(objID, variable, getLastStepVehicleNumber(objID));
418  return wrapper->wrapDouble(objID, variable, getLastStepMeanSpeed(objID));
420  return wrapper->wrapStringList(objID, variable, getLastStepVehicleIDs(objID));
421  case LAST_STEP_OCCUPANCY:
422  return wrapper->wrapDouble(objID, variable, getLastStepOccupancy(objID));
424  return wrapper->wrapInt(objID, variable, getLastStepHaltingNumber(objID));
425  case LAST_STEP_LENGTH:
426  return wrapper->wrapDouble(objID, variable, getLastStepLength(objID));
427  case VAR_WAITING_TIME:
428  return wrapper->wrapDouble(objID, variable, getWaitingTime(objID));
430  return wrapper->wrapDouble(objID, variable, getTraveltime(objID));
431  case VAR_WIDTH:
432  return wrapper->wrapDouble(objID, variable, getWidth(objID));
433  default:
434  return false;
435  }
436 }
437 
438 
439 }
440 
441 
442 /****************************************************************************/
static double getCO2Emission(std::string laneID)
Definition: Lane.cpp:146
#define LAST_STEP_MEAN_SPEED
static double getLength(std::string laneID)
Definition: Lane.cpp:69
std::map< std::string, TraCIResults > SubscriptionResults
{object->{variable->value}}
Definition: TraCIDefs.h:199
static double getNOxEmission(std::string laneID)
Definition: Lane.cpp:170
static void setAllowed(std::string laneID, std::vector< std::string > allowedClasses)
Definition: Lane.cpp:307
static std::vector< std::string > getFoes(const std::string &laneID, const std::string &toLaneID)
Definition: Lane.cpp:272
static std::vector< TraCIConnection > getLinks(std::string laneID)
Definition: Lane.cpp:87
double getNOxEmissions() const
Returns the sum of last step NOx emissions.
Definition: MSLane.cpp:2626
MSEdge & getEdge() const
Returns the lane&#39;s edge.
Definition: MSLane.h:640
virtual bool wrapInt(const std::string &objID, const int variable, const int value)=0
long long int SUMOTime
Definition: SUMOTime.h:36
#define VAR_CO2EMISSION
static std::string getEdgeID(std::string laneID)
Definition: Lane.cpp:63
#define VAR_LENGTH
static void insertIDs(std::vector< std::string > &into)
Adds the ids of all stored lanes into the given vector.
Definition: MSLane.cpp:1762
#define VAR_CURRENT_TRAVELTIME
static LIBSUMO_SUBSCRIPTION_API void storeShape(const std::string &id, PositionVector &shape)
Saves the shape of the requested object in the given container.
Definition: Lane.cpp:369
double getFuelConsumption() const
Returns the sum of last step fuel consumption.
Definition: MSLane.cpp:2650
static void setParameter(const std::string &routeID, const std::string &key, const std::string &value)
Definition: Lane.cpp:349
#define LANE_EDGE_ID
#define LANE_LINK_NUMBER
void setMaxSpeed(double val)
Sets a new maximum speed for the lane (used by TraCI and MSCalibrator)
Definition: MSLane.cpp:2020
const MSEdgeVector & getPredecessors() const
Definition: MSEdge.h:338
const std::string & getString(const T key) const
int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
#define VAR_WAITING_TIME
std::vector< std::string > getVehicleClassNamesList(SVCPermissions permissions)
Returns the ids of the given classes, divided using a &#39; &#39;.
static std::vector< std::string > getAllowed(std::string laneID)
Definition: Lane.cpp:109
static std::shared_ptr< VariableWrapper > makeWrapper()
Definition: Lane.cpp:375
static std::vector< std::string > getInternalFoes(const std::string &laneID)
Definition: Lane.cpp:288
static double getElectricityConsumption(std::string laneID)
Definition: Lane.cpp:187
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
Definition: MSNet.cpp:165
static double getFuelConsumption(std::string laneID)
Definition: Lane.cpp:175
double getPMxEmissions() const
Returns the sum of last step PMx emissions.
Definition: MSLane.cpp:2614
double getLength() const
Returns the lane&#39;s length.
Definition: MSLane.h:514
virtual const VehCont & getVehiclesSecure() const
Returns the vehicles container; locks it for microsimulation.
Definition: MSLane.h:406
const PositionVector & getShape() const
Returns this lane&#39;s shape.
Definition: MSLane.h:456
static int getIDCount()
Definition: Lane.cpp:57
static int getLastStepHaltingNumber(std::string laneID)
Definition: Lane.cpp:244
std::map< std::string, SubscriptionResults > ContextSubscriptionResults
Definition: TraCIDefs.h:200
static double getWidth(std::string laneID)
Definition: Lane.cpp:140
static int getLastStepVehicleNumber(std::string laneID)
Definition: Lane.cpp:239
const std::string & getID() const
Returns the id.
Definition: Named.h:78
virtual bool wrapString(const std::string &objID, const int variable, const std::string &value)=0
static StringBijection< LinkState > LinkStates
link states
const SVCPermissions SVCAll
all VClasses are allowed
static double getMaxSpeed(std::string laneID)
Definition: Lane.cpp:75
#define VAR_NOISEEMISSION
#define VAR_FUELCONSUMPTION
double getWidth() const
Returns the lane&#39;s width.
Definition: MSLane.h:530
static double getPMxEmission(std::string laneID)
Definition: Lane.cpp:164
static ContextSubscriptionResults myContextSubscriptionResults
Definition: Lane.h:111
#define LAST_STEP_LENGTH
SVCPermissions invertPermissions(SVCPermissions permissions)
negate the given permissions and ensure that only relevant bits are set
#define VAR_NOXEMISSION
static StringBijection< LinkDirection > LinkDirections
link directions
bool isInternal() const
Definition: MSLane.cpp:1875
A road/street connecting two junctions.
Definition: MSEdge.h:75
static double getLastStepLength(std::string laneID)
Definition: Lane.cpp:205
#define LANE_ALLOWED
void rebuildAllowedLanes()
Definition: MSEdge.cpp:258
#define TRACI_ID_LIST
void setPermissions(SVCPermissions permissions, long long transientID)
Sets the permissions to the given value. If a transientID is given, the permissions are recored as te...
Definition: MSLane.cpp:3471
static double getHCEmission(std::string laneID)
Definition: Lane.cpp:158
double getCO2Emissions() const
Returns the sum of last step CO2 emissions.
Definition: MSLane.cpp:2590
void setLength(double val)
Sets a new length for the lane (used by TraCI only)
Definition: MSLane.cpp:2027
A list of positions.
static double getLastStepMeanSpeed(std::string laneID)
Definition: Lane.cpp:193
int getVehicleNumber() const
Returns the number of vehicles on this lane (for which this lane is responsible)
Definition: MSLane.h:379
SVCPermissions getPermissions() const
Returns the vehicle class permissions for this lane.
Definition: MSLane.h:522
static TraCIPositionVector getShape(std::string laneID)
Definition: Lane.cpp:125
double getSpeedLimit() const
Returns the lane&#39;s maximum allowed speed.
Definition: MSLane.h:506
#define VAR_PMXEMISSION
SUMOTime getCurrentTimeStep() const
Returns the current simulation step.
Definition: MSNet.h:263
static void setMaxSpeed(std::string laneID, double speed)
Definition: Lane.cpp:329
T MIN2(T a, T b)
Definition: StdDefs.h:70
void setParameter(const std::string &key, const std::string &value)
Sets a parameter.
static void setDisallowed(std::string laneID, std::vector< std::string > disallowedClasses)
Definition: Lane.cpp:318
static double getDefaultDecel(const SUMOVehicleClass vc=SVC_IGNORING)
Returns the default deceleration for the given vehicle class This needs to be a function because the ...
SVCPermissions parseVehicleClasses(const std::string &allowedS)
Parses the given definition of allowed vehicle classes into the given containers Deprecated classes g...
#define LIBSUMO_SUBSCRIPTION_IMPLEMENTATION(CLASS, DOMAIN)
Definition: TraCIDefs.h:52
double getHCEmissions() const
Returns the sum of last step HC emissions.
Definition: MSLane.cpp:2638
std::vector< MSVehicle * > VehCont
Container for vehicles.
Definition: MSLane.h:90
static const MSLane * getLane(const std::string &id)
Definition: Lane.cpp:359
Definition: Edge.cpp:30
virtual bool wrapDouble(const std::string &objID, const int variable, const double value)=0
static std::string getParameter(const std::string &laneID, const std::string &param)
Definition: Lane.cpp:343
#define LAST_STEP_VEHICLE_NUMBER
double getElectricityConsumption() const
Returns the sum of last step electricity consumption.
Definition: MSLane.cpp:2662
static bool dictionary(const std::string &id, MSLane *lane)
Static (sic!) container methods {.
Definition: MSLane.cpp:1730
#define VAR_COEMISSION
double getCOEmissions() const
Returns the sum of last step CO emissions.
Definition: MSLane.cpp:2602
#define LAST_STEP_VEHICLE_ID_LIST
#define LANE_DISALLOWED
static SubscriptionResults mySubscriptionResults
Definition: Lane.h:110
static std::vector< std::string > getLastStepVehicleIDs(std::string laneID)
Definition: Lane.cpp:259
#define VAR_ELECTRICITYCONSUMPTION
static double getWaitingTime(std::string laneID)
Definition: Lane.cpp:221
const std::string getParameter(const std::string &key, const std::string &defaultValue="") const
Returns the value for a given key.
double getHarmonoise_NoiseEmissions() const
Returns the sum of last step noise emissions.
Definition: MSLane.cpp:2674
static bool handleVariable(const std::string &objID, const int variable, VariableWrapper *wrapper)
Definition: Lane.cpp:381
const double SUMO_const_haltingSpeed
the speed threshold at which vehicles are considered as halting
Definition: StdDefs.h:60
static double getTraveltime(std::string laneID)
Definition: Lane.cpp:227
#define LAST_STEP_OCCUPANCY
static void setLength(std::string laneID, double length)
Definition: Lane.cpp:336
double getMeanSpeed() const
Returns the mean speed on this lane.
Definition: MSLane.cpp:2574
#define VAR_MAXSPEED
#define ID_COUNT
const MSLinkCont & getLinkCont() const
returns the container with all links !!!
Definition: MSLane.cpp:1975
virtual bool wrapStringList(const std::string &objID, const int variable, const std::vector< std::string > &value)=0
static const long CHANGE_PERMISSIONS_PERMANENT
Definition: MSLane.h:1140
static const SUMOVTypeParameter & getDefault()
return the default parameters, this is a function due to the http://www.parashift.com/c++-faq/static-init-order.html
A 3D-position.
Definition: TraCIDefs.h:107
virtual void releaseVehicles() const
Allows to use the container for microsimulation again.
Definition: MSLane.h:436
double getNettoOccupancy() const
Returns the netto (excluding minGaps) occupancy of this lane during the last step (including minGaps)...
Definition: MSLane.cpp:2546
Representation of a lane in the micro simulation.
Definition: MSLane.h:78
A list of positions.
double getWaitingSeconds() const
Returns the overall waiting time on this lane.
Definition: MSLane.cpp:2561
static double getNoiseEmission(std::string laneID)
Definition: Lane.cpp:181
#define LAST_STEP_VEHICLE_HALTING_NUMBER
#define VAR_HCEMISSION
static double getLastStepOccupancy(std::string laneID)
Definition: Lane.cpp:199
#define VAR_WIDTH
static std::vector< std::string > getDisallowed(std::string laneID)
Definition: Lane.cpp:119
static int getLinkNumber(std::string laneID)
Definition: Lane.cpp:81
static double getCOEmission(std::string laneID)
Definition: Lane.cpp:152
static std::vector< std::string > getIDList()
Definition: Lane.cpp:49