Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Generic Parameters Attached to Stop Tag

Hi,

I'm trying to attach a generic parameter to a waiting stage while using persons to simulate. I have something that looks like:
<person id="1" depart="0">
    <ride from="A" to="B" lines="vehicle_id" />
    <stop lane="B_0" until="1:00:00">
        <param key="reason" value="shopping" >
    </stop>
    <ride to="C" lines="vehicle_id2" />
</person>

How can I extract the generic parameter associated with a stop tag here using traci? SUMO runs without problem when this is passed in, but I can't seem to find a way to extract this information.

I somehow need to encode metadata information (in this toy example, explaining why the stop is occurring - because the person is shopping) on the stop tags. I've managed to encode metadata information in the vehicles associated with the <ride> tags, so that isn't a problem. But I can't seem to find a way to do this in SUMO/TraCI.... any suggestions?

Thanks!

Virus-free.www.avg.com

Back to the top