sumolib.output.convert.phem
index
/home/delphi/gcc/sumo/tools/sumolib/output/convert/phem.py

This module includes functions for converting SUMO's fcd-output into
data files read by PHEM.

 
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

 
Data
        absolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 262144)
print_function = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 1048576)