sumolib.output.convert.phem | index /home/behr_mi/sumo/tools/sumolib/output/convert/phem.py

`@file phem.py
@author Daniel Krajzewicz
@date 2013-01-15
@version $Id: phem.py 13845 2013-05-02 13:53:19Z dkrajzew $
This module includes functions for converting SUMO's fcd-output into
data files read by PHEM.
SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
Copyright (C) 2013 DLR (http://www.dlr.de/) and contributors
All rights reserved`

Modules
`` |  |
math | sumolib |  |

Functions
`` |  | fcd2dri(inpFCD, outSTRM, ignored) `Reformats the contents of the given fcd-output file into a .dri file, readable by PHEM. The fcd-output "fcd" must be a valid file name of an fcd-output. The following may be a matter of changes: - the engine torque is not given` fcd2fzp(inpFCD, outSTRM, further) `Reformats the contents of the given fcd-output file into a .fzp file, readable by PHEM. The fcd-output "fcd" must be a valid file name of an fcd-output. The "sIDm" parameter must be a map from SUMO-edge ids to their numerical representation as generated by toSTR(inpNET, outSTRM). Returns two maps, the first from vehicle ids to a numerical representation, the second from vehicle type ids to a numerical representation.` net2str(net, outSTRM) `Writes the network object given as "inpNET" as a .str file readable by PHEM. Returns a map from the SUMO-road id to the generated numerical id used by PHEM. The following may be a matter of changes: - currently, only the positions of the start and the end nodes are written, the geometry of the edge as defined in the SUMO-network is not exported. A map between the edge id and a segment to a numerical id would be necessary` vehicleTypes2flt(outSTRM, vtIDm) `Currently, rather a stub than an implementation. Writes the vehicle ids stored in the given "vtIDm" map formatted as a .flt file readable by PHEM. The following may be a matter of changes: - A default map is assigned to all vehicle types with the same probability`