Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Use predefined routes in route distribution
  • From: <Maria.Armellini@xxxxxx>
  • Date: Mon, 9 Nov 2020 14:56:03 +0000
  • Accept-language: de-DE, en-US
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • Ironport-phdr: 9a23:uf2N/x8CQNAALf9uRHKM819IXTAuvvDOBiVQ1KB+0+wTIJqq85mqBkHD//Il1AaPAdyErasd1qGJ6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglVhjexe65+IAi2oAnetMQanZZpJ7osxBfOvnZGYfldy3lyJVKUkRb858Ow84Bm/i9Npf8v9NNOXLvjcaggQrNWEDopM2Yu5M32rhbDVheA5mEdUmoNjBVFBRXO4QzgUZfwtiv6sfd92DWfMMbrQ704RSiu4qF2QxLulSwJNSM28HvPh8JwkqxVvQ6hqRJ8zY7aYo6VNeZxcazGcNwAWWZBXNxcWzBdDo6+aYYEEuoPPfxfr4n4v1YDqhywChO2BOPu0DBEnGP73bc/0+s/FQHG2A0gH9QPsHnPsdr1ML0SXfqow6bW1DjOae5d1jjh5obSaB8hve2MUqxqccrX0UQiCh7Ig1qRpIHnMT6Y2OsDvWaU4uRvW++jlXArpx1srjWuxskhlIjEi4IVxF7E6Sh3z4Y7KNK7RUB1YdCqEJhduieHPIV4RcMiRntnuCc8yrAepJG7eDIKxI46yBHBc/CIbZSH4hbiVOaJOjd3mmhpeLWlhxa990Wr1+7yVtGs3VpXsiZJiMTAu3MC2hDJ98SKRPhw8l2/1TqSzwzf9+NJLV4umabFNpIt2KM8m5gSvEjZAyP7nlj9grWMeUU+4Oeo7vzqYrDhppCBKYB5khr+MqEymsynBuQ4LxQOU3Cb+eui0L3j+lX0TrtMgPM4nafXsJDUK8MYqKC+GQFZzJsv5Rm+ADq4ytgYnH8HLE5feB2dlYTmJlXOIOriAfiinVugiDZrx/bYMb39GpjBM2TPnK38cbt+5ENQ0hc/wN5c6p5OFL0NPer/Wkrru9zZCh85PRa0w+HiCNhl0Y0RQ3iPAq6DP6/IrVKI/OcvLPeIZI8RuTb9Lfkl6uXzgn89g18RZ7Sm0oUPZHCiAvtmO1mZYWbrgtoZCmcKow8+TOvzhF2fSj5ceWyyUrki6T4nDIKmDJ/DRpuzj7Cb2ye7BJJWNSh7DEuRGyLoa5mcQKVLLz2NPYlsmTgFTaOsDYg72larvQ7+zrNhae7V4TEZs5zkk8No4uqWiAo/729JCd+A2UGRSmUhnn8UXyRkm+dgvlM7x1yH0LBjjrpfD9MU4vpIVgIzM9nYzvdmCtb8XUXaY9KODUu9T8/1PDcqU9gNzs8SNkZhB8253FeEwDW1RbIek72TH5Fy9bjTmH34JsJ4wnCB0Kg6k1ggTMwILnCjgeti7AXJVLLOxhGCiqOtMLkH0TTl+WyHzHKVsQdfSgEmAovfWnVKMm7ft9XwoGrYSrKqDbUhMyNNzdTEJqYcOY6htklPWPq2YIeWWGm2gWrlXRs=
  • Ironport-sdr: eowMCWuaiKl+kwslzOKJR5F1pzZQg08bPdh9P6UH8orxexjj3UAzJb+XGIiHdfBpTEqhlj0cRg wgiNZUbV9hig==
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHWtpVWkPJUALgW5EqThaUfr9pnH6m/1U+w///w6QCAABpdQA==
  • Thread-topic: [sumo-user] Use predefined routes in route distribution

Hi,

 

no, it is not the same. Your second option is not right. If you already defined a route, then you only need to add the “route” attribute to your vehicle element.

<routes>

    <route id="route0" color="1,1,0" edges="beg middle end rend"/>

    <vehicle id="0" route="route0" depart="0" color="1,0,0"/>

</routes>

 

Your second example would be possible, if you are defining a new route as a child of your vehicle, like this:

<routes>

    <vehicle id="0" depart="0" color="1,0,0">

       <route edges="beg middle end rend"/>

    </vehicle>

</routes>

 

See https://sumo.dlr.de/docs/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#vehicles_and_routes

 

With routeDistribution, the definition of the routes according to the docu would be:

 

<routes>

    <routeDistribution id="routedist1">

         <route id="route_0" edges="beg middle end rend" probability="0.1" />

         <route id="route_1" edges="beg middle2 end rend" probability="0.9" />

    </routeDistribution>

    <vehicle id="0" depart="0" route="routedist1"/>

</routes>

 

Regards,

Giuliana

 

Von: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> Im Auftrag von Theophile Cabannes
Gesendet: Montag, 9. November 2020 15:10
An: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Betreff: Re: [sumo-user] Use predefined routes in route distribution

 

Thank you Giuliana,

However https://sumo.dlr.de/docs/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#route_distributions is a little bit different as the routes in the route distributions in the example is not predefined outside the route distribution itself (i.e. the routes contain the attribute edges).

 

If I can do what I have suggested, then I guess that the two following route files will be understand the same way:

<routes>

    <route id="route0" color="1,1,0" edges="beg middle end rend"/>

    <vehicle id="0" route="route0" depart="0" color="1,0,0"/>

</routes>

 

end

 

<routes>

    <route id="route0" color="1,1,0" edges="beg middle end rend"/>

    <vehicle id="0" depart="0" color="1,0,0">

       <route id="route0" />

    </vehicle>

</routes>

 

Is this correct?

 

Thank you a lot!

 

On Mon, Nov 9, 2020 at 3:05 PM <Maria.Armellini@xxxxxx> wrote:

Hi Theo,

 

Yes it is possible, see https://sumo.dlr.de/docs/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#route_distributions.

 

Regards,

Giuliana

Von: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> Im Auftrag von Theophile Cabannes
Gesendet: Montag, 9. November 2020 13:39
An: sumo-user@xxxxxxxxxxx
Betreff: [sumo-user] Use predefined routes in route distribution

 

Hi,

I would like to use route distribution using routes that have been already defined in the route file. Is this possible?
I was thinking about writting something like:
 <routes>
   <route id="route_0" edges="beg middle end rend" />
   <route id="route_1" edges="beg middle2 end rend" />
   <vehicle id="0" type="type1" depart="0">
      <routeDistribution>
        <route id="route_0" probability="0.1" />
        <route id="route_1" probability="0.9" />
      </routeDistribution>
</routes>
Would that work?

Thank you a lot!
Theo

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user


Back to the top