eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.55k stars 1.43k forks source link

add attribute time loss to other outputs (trac #1396) #1396

Closed behrisch closed 3 years ago

behrisch commented 10 years ago

it's probably best to extend SUMOVehicle with a getTimeLoss() function

Migrated from http://sumo.dlr.de/ticket/1396

{
    "status": "new", 
    "changetime": "2017-02-27T06:59:32Z", 
    "description": "* TraCI (vehicle, edge, lane)\n* edgeData\n* ~~E2Detector~~\n* E3Detector\n\nit's probably best to extend SUMOVehicle with a getTimeLoss() function", 
    "reporter": "namdre", 
    "cc": "", 
    "resolution": "", 
    "_ts": "1488178772291484", 
    "component": "simulation data output", 
    "summary": "add attribute time loss to other outputs", 
    "priority": "major", 
    "keywords": "", 
    "time": "2014-08-04T14:25:53Z", 
    "milestone": "1.1.0", 
    "owner": "", 
    "type": "enhancement"
}
behrisch commented 10 years ago

Is this still up to date? The detectors would probably want to output the timeloss suffered during the vehicle's stay on the detector? So the proposal is to equip the vehicle with a method to query its rate of time loss?

  • TraCI (vehicle, edge, lane)
  • edgeData
  • E2Detector
  • E3Detector

it's probably best to extend SUMOVehicle with a getTimeLoss() function

to:

  • TraCI (vehicle, edge, lane)
  • edgeData
  • E2Detector
  • E3Detector

it's probably best to extend SUMOVehicle with a getTimeLoss() function

behrisch commented 10 years ago

@namdre commented:

Replying to [comment:1 leo]:

Is this still up to date? The detectors would probably want to output the timeloss suffered during the vehicle's stay on the detector? So the proposal is to equip the vehicle with a method to query its rate of time loss?

No. The proposal was to implement MSVehicle::getTimeLoss() which has already been done. This is to compare the time loss at the point of entering with the time loss at the time of leaving.

namdre commented 3 years ago

timeLoss retrieval for edge/lane should be handle via #9242