61#define DEBUG_COND(obj) (obj->isSelected())
91FXMutex MSRoutingEngine::myRouteCacheMutex;
111 if (myAdaptationWeight < 1. && myAdaptationInterval > 0) {
113 if (lastAdaptation >= 0) {
118 }
else if (period > 0) {
119 WRITE_WARNING(
TL(
"Rerouting is useless if the edge weights do not get updated!"));
137 if (lastAdaption >= 0) {
149 if (oc.
getFloat(
"weights.priority-factor") != 0) {
152 throw ProcessError(
TL(
"weights.priority-factor cannot be negative."));
155 double maxEdgePriority = -std::numeric_limits<double>::max();
157 maxEdgePriority =
MAX2(maxEdgePriority, (
double)edge->getPriority());
162 WRITE_WARNING(
TL(
"Option weights.priority-factor does not take effect because all edges have the same priority"));
173 if (edgeSpeeds.empty()) {
175 const bool useLoaded = oc.
getBool(
"device.rerouting.init-with-loaded-weights");
176 const double currentSecond =
SIMTIME;
178 while (edge->getNumericalID() >= (int)edgeSpeeds.size()) {
179 edgeSpeeds.push_back(0);
181 pastEdgeSpeeds.push_back(std::vector<double>());
188 edgeSpeeds[edge->getNumericalID()] = edge->getLength() /
MSNet::getTravelTime(edge,
nullptr, currentSecond);
190 edgeSpeeds[edge->getNumericalID()] = edge->getMeanSpeed();
193 pastEdgeSpeeds[edge->getNumericalID()] = std::vector<double>(
myAdaptationSteps, edgeSpeeds[edge->getNumericalID()]);
248 FXMutexLock lock(myRouteCacheMutex);
254 bool cchEdgeMoved =
false;
255 for (
const MSEdge*
const e : edges) {
256 if (e->isDelayed()) {
257 const int id = e->getNumericalID();
258 double currSpeed = e->getMeanSpeed();
262#ifdef DEBUG_SEPARATE_TURNS
264 std::cout <<
SIMTIME <<
" edge=" << e->getID()
265 <<
" meanSpeed=" << e->getMeanSpeed()
266 <<
" currSpeed=" << currSpeed
278 const double currBikeSpeed = e->getMeanSpeedBike();
288 const double currBikeSpeed = e->getMeanSpeedBike();
322 for (
const MSEdge* e : edges) {
359 std::vector<std::string> vtypeIDs;
361 for (
const std::string&
id : vtypeIDs) {
382 oc.
getFloat(
"device.rerouting.cch-update-threshold.factor"),
385 oc.
getInt(
"device.rerouting.cch-ensemble"));
414 pars->
id =
"cchRef:" + type->
getID() + (slot == 0 ?
"" :
":" +
toString(slot));
415 const MSEdge* refEdge =
nullptr;
417 if (!e->isInternal() && !e->isTazConnector()) {
459 if (veh ==
nullptr ||
myCCHLive ==
nullptr) {
475 if (veh ==
nullptr) {
513 if (pair.second ==
nullptr) {
518 const double avgSpeed = length /
STEPS2TIME(tc.first / tc.second);
519 maxSpeed =
MAX2(avgSpeed, maxSpeed);
526 if (pair.second ==
nullptr) {
529 const int iid = pair.second->getNumericalID();
532 const double avgSpeed = length /
STEPS2TIME(tc.first / tc.second);
533 if (avgSpeed < correctedSpeed) {
534 double internalTT = pair.second->getLength() / pair.second->getSpeedLimit();
537 const double newInternalSpeed = pair.second->getLength() / internalTT;
549#ifdef DEBUG_SEPARATE_TURNS
551 std::cout <<
SIMTIME <<
" edge=" << edge->
getID() <<
" to=" << pair.first->getID() <<
" via=" << pair.second->getID()
552 <<
" origSpeed=" << currSpeed
553 <<
" maxSpeed=" << maxSpeed
554 <<
" correctedSpeed=" << correctedSpeed
555 <<
" avgSpeed=" << avgSpeed
556 <<
" internalTT=" << internalTT
557 <<
" internalSpeed=" << origInternalSpeed
558 <<
" newInternalSpeed=" << newInternalSpeed
559 <<
" virtualSpeed=" << virtualSpeed
570 return correctedSpeed;
580 FXMutexLock lock(myRouteCacheMutex);
584 return routeIt->second;
593 const std::string routingAlgorithm = oc.
getString(
"routing-algorithm");
599 if (routingAlgorithm ==
"dijkstra") {
601 }
else if (routingAlgorithm ==
"astar") {
603 std::shared_ptr<const AStar::LookupTable> lookup =
nullptr;
604 if (oc.
isSet(
"astar.all-distances")) {
606 }
else if (oc.
isSet(
"astar.landmark-distances") && vehicle !=
nullptr) {
618 }
else if (routingAlgorithm ==
"CH" && !hasPermissions) {
622 }
else if (routingAlgorithm ==
"CHWrapper" || routingAlgorithm ==
"CH") {
628 }
else if (routingAlgorithm ==
"CCH") {
645 throw ProcessError(
TLF(
"Unknown routing algorithm '%'!", routingAlgorithm));
651 oc.
getFloat(
"railway.max-train-length"),
652 oc.
getFloat(
"weights.reversal-penalty"));
661 if (threadPool.
size() > 0) {
662 const std::vector<MFXWorkerThread*>& threads = threadPool.
getWorkers();
663 if (
static_cast<MSEdgeControl::WorkerThread*
>(threads.front())->setRouterProvider(
myRouterProvider)) {
664 for (std::vector<MFXWorkerThread*>::const_iterator t = threads.begin() + 1; t != threads.end(); ++t) {
676 const bool onInit,
const bool silent,
const Prohibitions& prohibited) {
688 if (threadPool.
size() > 0) {
689 threadPool.
add(
new RoutingTask(vehicle, currentTime, info, onInit, silent, prohibited));
694 if (!prohibited.empty()) {
695 router.prohibit(prohibited);
701 if (!prohibited.empty()) {
707 if (!prohibited.empty()) {
715 const bool onInit,
const bool silent,
const Prohibitions& prohibited) {
720 if (threadPool.
size() > 0) {
726 if (!prohibited.empty()) {
733 if (!prohibited.empty()) {
739 if (!prohibited.empty()) {
753 tc.first += travelTime;
773 if (threadPool.
size() > 0) {
775 router.prohibit(prohibited);
801 if (threadPool.
size() > 0) {
803 router.prohibit(prohibited);
847 FXMutexLock lock(myRouteCacheMutex);
878 for (
const MSEdge*
const e : edges) {
879 if (e->isDelayed()) {
880 const int id = e->getNumericalID();
895 if (!std::isnan(applied)) {
908 return a->getID() < b->getID();
912 std::vector<int> arcs;
913 std::vector<int> weights;
935 bool checkedSteps =
false;
936 bool checkedBikeSpeeds =
false;
943 }
else if (!checkedBikeSpeeds) {
944 checkedBikeSpeeds =
true;
955 }
else if (!checkedSteps) {
957 WRITE_WARNING(
"Number of adaptation speeds in loaded state doesn't match option --device.rerouting.adaptation-steps");
982MSRoutingEngine::waitForAll() {
985 if (threadPool.
size() > 0) {
998 if (!myProhibited.empty()) {
1002 myVehicle.reroute(myTime, myInfo, router, myOnInit, myWithTaz, mySilent);
1005 if (!myProhibited.empty()) {
1011 if (!myProhibited.empty()) {
1014 const MSEdge* source = *myVehicle.getRoute().begin();
1015 const MSEdge* dest = myVehicle.getRoute().getLastEdge();
1017 const std::pair<const MSEdge*, const MSEdge*>
key = std::make_pair(source, dest);
1018 FXMutexLock lock(myRouteCacheMutex);
std::vector< const MSEdge * > ConstMSEdgeVector
std::vector< MSEdge * > MSEdgeVector
CCHMetricFamily< MSEdge, SUMOVehicle, MSVehicleType > MSCCHMetricFamily
the per-vehicle-type CCH metric store (utils/router/CCHMetricFamily.h)
RouterProvider< MSEdge, MSLane, MSJunction, SUMOVehicle > MSRouterProvider
IntermodalRouter< MSEdge, MSLane, MSJunction, SUMOVehicle > MSTransportableRouter
CCHGraph< MSEdge, SUMOVehicle > MSCCHGraph
the MSEdge instantiation of the CCH graph mapping (utils/router/CCHGraph.h)
#define WRITE_WARNING(msg)
std::shared_ptr< const MSRoute > ConstMSRoutePtr
SUMOTime string2time(const std::string &r)
convert string to SUMOTime
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
@ SVC_PASSENGER
vehicle is a passenger car (a "normal" car)
@ SVC_BICYCLE
vehicle is a bicycle
@ SVC_PEDESTRIAN
pedestrian
std::vector< SUMOVehicleParameter::Stop > StopParVector
@ SUMO_TAG_INTERVAL
an aggreagated-output interval
@ SUMO_TAG_CCH_METRIC
the arcs of a CCH metric that lag behind the edge speeds
@ SUMO_TAG_ROUTINGENGINE
the internal state for MSRoutingEngine
@ SUMO_TAG_EDGE
begin/end of the description of an edge
@ SUMO_ATTR_BEGIN
weights: time range begin
@ SUMO_ATTR_PASTBIKESPEED
@ SUMO_ATTR_END
weights: time range end
double gWeightsRandomFactor
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
Computes the shortest path through a network using the A* algorithm.
Metric-independent RoutingKit CCH topology over the PURE road graph.
void invalidateClassMasks() const
Drop every primed connection mask so the next fill re-primes from the CURRENT successor lists.
per-vehicle-type CCH metric store over a shared CCHGraph
MetricPtr get(const K *key, SUMOVehicleClass vClass, SUMOTime time, const V *veh)
the metric for (type key, period of time), built on the first query of the pair; nullptr before init....
void seedKey(const K *key)
allocate the metric state (all ensemble slots) for one type; call only while no query is in flight (s...
bool hasDeadband() const
whether the deadband can keep the metrics behind the efforts (then its state and the lagging arcs bel...
void loadMetric(const K *key, int slot, double now, const std::vector< int > &arcs, const std::vector< int > &weights)
publish the metric of a type and ensemble slot as a fresh fill at now with the given arcs overwritten...
void atBarrier(double now, bool effortsMoved)
the owner's customization barrier: bump the speed epoch when an effort moved and re-customize when it...
void customize(double now)
refill + customize + publish every type's metric from the live efforts and permissions....
void getLaggingArcs(const K *key, int slot, double now, std::vector< int > &arcs, std::vector< int > &weights) const
the arcs of the published metric of a type and ensemble slot whose weight differs from a fresh fill a...
int getEnsembleSize() const
the number of metrics per type
void invalidateEdge(const E *e)
a runtime permission change (closure / re-opening) hit this edge: queue it bypassing the deadband and...
double getAppliedEffort(const E *e) const
the gate effort the edge was last applied with (NaN = never)
std::vector< const K * > getKeys() const
the type keys with metric state
bool isPending(const E *e) const
whether the edge waits for the deadband
void loadEdge(const E *e, double appliedEffort, bool pending)
restore the deadband state of an edge (state loading)
MetricPtr published(const K *key, const std::string &vehID)
the published metric for a type key and querying vehicle id (the id picks the ensemble slot – see the...
void flagPermissionsStale()
flagStale() under the simulation's name for the permission case
void markDirty(const E *e)
queue an edge whose gate effort changed (the deadband applies later, at the customize barrier)
Contraction-hierarchy router over the edge graph mapped by GRAPH.
Computes the shortest path through a contracted network.
Computes the shortest path through a contracted network.
Base (microsim) event class.
Computes the shortest path through a network using the Dijkstra algorithm.
double getParameter(const int index) const
Returns the nth parameter of this distribution.
void prohibit(const _Prohibitions &toProhibit)
A vehicle from the mesoscopic point of view.
A pool of worker threads which distributes the tasks and collects the results.
void waitAll(const bool deleteFinished=true)
waits for all tasks to be finished
void add(Task *const t, int index=-1)
Gives a number to the given task and assigns it to the worker with the given index....
const std::vector< MFXWorkerThread * > & getWorkers()
int size() const
Returns the number of threads in the pool.
A thread repeatingly calculating incoming tasks.
const MSEdgeWeightsStorage & getWeightsStorage() const
Returns the vehicle's internal edge travel times/efforts container.
static bool hasFleet()
returns whether taxis have been loaded
const MSEdgeVector & getEdges() const
Returns loaded edges.
A road/street connecting two junctions.
static const MSEdgeVector & getAllEdges()
Returns all edges with a numerical id.
const MSConstEdgePairVector & getViaSuccessors(SUMOVehicleClass vClass=SVC_IGNORING, bool ignoreTransientPermissions=false) const
Returns the following edges with internal vias, restricted by vClass.
double getLength() const
return the length of the edge
bool isTazConnector() const
double getMinimumTravelTime(const SUMOVehicle *const veh) const
returns the minimum travel time for the given vehicle
int getNumericalID() const
Returns the numerical id of the edge.
static bool dictionary(const std::string &id, MSEdge *edge)
Inserts edge into the static dictionary Returns true if the key id isn't already in the dictionary....
bool empty() const
Returns whether neither travel times nor efforts are stored.
virtual void addEvent(Command *operation, SUMOTime execTimeStep=-1)
Adds an Event.
static double gWeightsSeparateTurns
Whether turning specific weights are estimated (and how much)
static int gNumThreads
how many threads to use
MSMapMatcher * getMapMatcher() const
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
MSEventControl * getEndOfTimestepEvents()
Returns the event control for events executed at the end of a time step.
SUMOTime getCurrentTimeStep() const
Returns the current simulation step.
static double getTravelTime(const MSEdge *const e, const SUMOVehicle *const v, double t)
Returns the travel time to pass an edge.
MSEdgeWeightsStorage & getWeightsStorage()
Returns the net's internal edge travel times/efforts container.
bool hasPermissions() const
Returns whether the network has specific vehicle class permissions.
MSVehicleControl & getVehicleControl()
Returns the vehicle control.
MSEdgeControl & getEdgeControl()
Returns the edge control.
static void adaptIntermodalRouter(MSTransportableRouter &router)
static void saveState(OutputDevice &out)
Saves the state (i.e. recorded speeds)
static SUMOTime myAdaptationInterval
At which time interval the edge weights get updated.
static void initEdgeWeights(SUMOVehicleClass svc, SUMOTime lastAdaption=-1, int index=-1)
initialize the edge weights if not done before
static double myAdaptationWeight
Information which weight prior edge efforts have.
static int myAdaptationStepsIndex
The current index in the pastEdgeSpeed ring-buffer.
static double myMinEdgePriority
Minimum priority for all edges.
static std::vector< TimeAndCount > myEdgeTravelTimes
Sum of travel times experienced by equipped vehicles for each edge.
static double getEffortBike(const MSEdge *const e, const SUMOVehicle *const v, double t)
static SUMOVehicle * buildCCHRefVehicle(const MSVehicleType *type, int slot)
construct the unregistered effort-reference vehicle for a type: never counted, inserted or given devi...
static MSCCHGraph * myCCHGraph
the immutable shared CCH topology (built once), or nullptr if inactive
static MSCCHGraph * ensureCCHGraph()
the shared CCH topology, built on first demand (used by MSNet::getRouterTT to construct its CCH route...
static void setEdgeTravelTime(const MSEdge *const edge, const double travelTime)
adapt the known travel time for an edge
static double myEdgePriorityRange
the difference between maximum and minimum priority for all edges
static double myPriorityFactor
Coefficient for factoring edge priority into routing weight.
static void cleanupCCH()
tears down the CCH state (myCCHLive/myCCHFreeflow/myCCHGraph) only – the ref vehicles owned by the CC...
static std::map< std::pair< const MSEdge *, const MSEdge * >, ConstMSRoutePtr > myCachedRoutes
The container of pre-calculated routes.
static MSCCHMetricFamily * getLoadedCCH()
the live family restored from a state, built on first use
static SUMOTime adaptEdgeEfforts(SUMOTime currentTime)
Adapt edge efforts by the current edge states.
static bool myBikeSpeeds
whether separate speeds for bicycles shall be tracked
static MSCCHMetricFamily * myCCHLive
the rerouting device's LIVE metric family over the adaptive speed tables (see utils/router/CCHMetricF...
static void _initEdgeWeights(std::vector< double > &edgeSpeeds, std::vector< std::vector< double > > &pastEdgeSpeeds)
initialized edge speed storage into the given containers
static void initCCH()
build the shared CCH + the live family with one metric per loaded type, publish initial metrics
static bool myWithTaz
whether taz shall be used at initial rerouting
static std::vector< std::vector< double > > myPastEdgeBikeSpeeds
static std::vector< double > myEdgeSpeeds
The container of edge speeds.
std::pair< SUMOTime, int > TimeAndCount
static const RoutingKit::CustomizableContractionHierarchyMetric * getPublishedCCHMetric(SUMOVehicleClass vClass, SUMOTime time, const SUMOVehicle *veh)
the currently published (customized) CCH metric FOR A GIVEN vehicle class, or nullptr if that class h...
static bool myHaveExtras
whether extra routing cost modifications are configured
SUMOAbstractRouter< MSEdge, SUMOVehicle >::Prohibitions Prohibitions
static void addEdgeTravelTime(const MSEdge &edge, const SUMOTime travelTime)
record actual travel time for an edge
static void applyExtras(const MSEdge *const e, const SUMOVehicle *const v, SUMOTime step, double &effort)
apply cost modifications from randomness, priorityFactor and preferences
static bool myDynamicRandomness
whether randomness varies over time
static std::mutex myRouterInitLock
serialises building the routers when the first queries come from several threads
static std::atomic< bool > myRouterReady
whether the routers of all threads are built
static SUMOTime myLastAdaptation
Information when the last edge weight adaptation occurred.
static void buildCCHLive()
build the live family without metrics
static void cleanup()
deletes the router instance
static MSCCHMetricFamily * myCCHFreeflow
the STATIC free-flow metric family behind MSNet's routers (TraCI / triggers / GUI,...
static void initRouter(SUMOVehicle *vehicle=nullptr)
static SUMOAbstractRouter< MSEdge, SUMOVehicle >::Operation myEffortFunc
static void invalidateCCHEdge(const MSEdge *e)
a runtime permission change (closure / re-opening) hit this edge: invalidate the graph's primed conne...
static void loadCCHMetric(const SUMOSAXAttributes &attrs)
Loads the arcs of a CCH metric that lag behind the speeds.
static ConstMSRoutePtr getCachedRoute(const std::pair< const MSEdge *, const MSEdge * > &key)
return the cached route or nullptr on miss
static int myAdaptationSteps
The number of steps for averaging edge speeds (ring-buffer)
static MSRouterProvider * myRouterProvider
The router to use.
static Command * myEdgeWeightSettingCommand
The weights adaptation/overwriting command.
static std::vector< std::vector< double > > myPastEdgeSpeeds
The container of past edge speeds (when using a simple moving average)
static void initWeightUpdate(SUMOTime lastAdaption=- 1)
intialize period edge weight update
static void reroute(SUMOVehicle &vehicle, const SUMOTime currentTime, const std::string &info, const bool onInit=false, const bool silent=false, const Prohibitions &prohibited={})
initiate the rerouting, create router / thread pool on first use
static double getEffort(const MSEdge *const e, const SUMOVehicle *const v, double t)
Returns the effort to pass an edge.
static double getAssumedSpeed(const MSEdge *edge, const SUMOVehicle *veh)
return current travel speed assumption
static void loadState(const SUMOSAXAttributes &attrs)
Loads the state.
static const RoutingKit::CustomizableContractionHierarchyMetric * getFreeflowCCHMetric(SUMOVehicleClass vClass, SUMOTime time, const SUMOVehicle *veh)
the free-flow CCH metric for MSNet's routers (TraCI / triggers / GUI), keyed by vehicle type and fill...
static double patchSpeedForTurns(const MSEdge *edge, double currSpeed)
static MSVehicleRouter & getRouterTT(const int rngIndex, SUMOVehicleClass svc, const Prohibitions &prohibited={})
return the vehicle router instance
static double getEffortExtra(const MSEdge *const e, const SUMOVehicle *const v, double t)
static MSTransportableRouter & getIntermodalRouterTT(const int rngIndex, const Prohibitions &prohibited={})
return the person router instance
static std::vector< double > myEdgeBikeSpeeds
static void initWeightConstants(const OptionsCont &oc)
initialize constants for using myPriorityFactor
int getRNGIndex() const override
returns the index of the associated RNG
bool reroute(SUMOTime t, const std::string &info, MSTransportableRouter &router, const bool onInit=false, const bool withTaz=false, const bool silent=false, const MSEdge *sink=nullptr)
bool hasVTypeDistribution(const std::string &id) const
Asks for a vehicle type distribution.
MSVehicleType * getVType(const std::string &id=DEFAULT_VTYPE_ID, SumoRNG *rng=nullptr, bool readOnly=false)
Returns the named vehicle type or a sample from the named distribution.
void insertVTypeIDs(std::vector< std::string > &into) const
Inserts ids of all known vehicle types and vehicle type distributions to the given vector.
Representation of a vehicle in the micro simulation.
The car-following model and parameter.
SUMOVehicleClass getVehicleClass() const
Get this vehicle type's vehicle class.
const std::string & getID() const
Returns the name of the vehicle type.
const Distribution_Parameterized & getSpeedFactor() const
Returns this type's speed factor.
bool isVehicleSpecific() const
Returns whether this type belongs to a single vehicle only (was modified)
const std::string & getID() const
Returns the id.
A storage for options typed value containers)
bool isSet(const std::string &name, bool failOnNonExistant=true) const
Returns the information whether the named option is set.
double getFloat(const std::string &name) const
Returns the double-value of the named option (only for Option_Float)
int getInt(const std::string &name) const
Returns the int-value of the named option (only for Option_Integer)
static OutputDevice & getDeviceByOption(const std::string &name)
Returns the device described by the option.
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
bool isDefault(const std::string &name) const
Returns the information whether the named option has still the default value.
static bool createDeviceByOption(const std::string &optionName, const std::string &rootElement="", const std::string &schemaFile="", const int maximumDepth=2)
Creates the device using the output definition stored in the named option.
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
static OptionsCont & getOptions()
Retrieves the options.
Static storage of an output device and its base (abstract) implementation.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
OutputDevice & writeAttr(const ATTR_TYPE &attr, const T &val, const bool isNull=false, const bool escape=false)
writes a named attribute
bool closeTag(const std::string &comment="")
Closes the most recently opened tag and optionally adds a comment.
SUMOAbstractRouter< E, V > & getVehicleRouter(SUMOVehicleClass svc) const
IntermodalRouter< E, L, N, V > & getIntermodalRouter() const
virtual void prohibit(const Prohibitions &toProhibit)
Encapsulated SAX-Attributes.
virtual std::string getString(int id, bool *isPresent=nullptr) const =0
Returns the string-value of the named (by its enum-value) attribute.
T getOpt(int attr, const char *objectid, bool &ok, T defaultValue=T(), bool report=true) const
Tries to read given attribute assuming it is an int.
T get(int attr, const char *objectid, bool &ok, bool report=true) const
Tries to read given attribute assuming it is an int.
virtual bool hasAttribute(int id) const =0
Returns the information whether the named (by its enum-value) attribute is within the current list.
int getInt(int id) const
Returns the int-value of the named (by its enum-value) attribute.
virtual const MSVehicleType & getVehicleType() const =0
Returns the object's "vehicle" type.
virtual double getChosenSpeedFactor() const =0
virtual SUMOVehicleClass getVClass() const =0
Returns the object's access class.
virtual int getRoutingMode() const =0
return routing mode (configures router choice but also handling of transient permission changes)
Representation of a vehicle.
virtual bool reroute(SUMOTime t, const std::string &info, SUMOAbstractRouter< MSEdge, SUMOVehicle > &router, const bool onInit=false, const bool withTaz=false, const bool silent=false, const MSEdge *sink=nullptr)=0
Performs a rerouting using the given router.
virtual void setChosenSpeedFactor(const double factor)=0
Structure representing possible vehicle parameter.
std::string id
The vehicle's id.
static int parseCarWalkTransfer(const OptionsCont &oc, const bool hasTaxi)
A wrapper for a Command function.
const CustomizableContractionHierarchy * cch
#define UNUSED_PARAMETER(x)
@ key
the parser read a key of a value in an object
TRACI_CONST int ROUTING_MODE_DEFAULT