Skip to content

Commit

Permalink
added test refs #4600
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Sep 14, 2018
1 parent d3a9bc1 commit 6b61eac
Show file tree
Hide file tree
Showing 8 changed files with 221 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/od2trips/timelines/testsuite.od2trips
Expand Up @@ -24,3 +24,6 @@ hours_split_after12_uniform

# real timeseries with 12 districts and v matrix
timeline_v

# timeseries with 3 districts and v matrix
timeline_flows
Empty file.
21 changes: 21 additions & 0 deletions tests/od2trips/timelines/timeline_flows/input_od_v.fma
@@ -0,0 +1,21 @@
$VR;D2
* Von Bis
0.00 24.00
* Faktor
1.00
*
* Deutsches Zentrum fuer Luft- und Raumfahrt e.V.
* 06.02.08
* Anzahl Bezirke
3
*
0 1 2
*
* Bez 0 Summe = 130.00
0.00 5.00 5.00
* Bez 1 Summe = 130.00
5.00 0.00 5.00
* Bez 2 Summe = 130.00
5.00 5.00 0.00


16 changes: 16 additions & 0 deletions tests/od2trips/timelines/timeline_flows/input_taz.taz.xml
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<tazs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/taz_file.xsd">
<taz id="0">
<tazSource id="top0to2/0" weight="100"/>
<tazSink id="2/0totop0" weight="100"/>
</taz>
<taz id="1">
<tazSource id="top1to2/1" weight="100"/>
<tazSink id="2/1totop1" weight="100"/>
</taz>
<taz id="2">
<tazSource id="top2to2/2" weight="100"/>
<tazSink id="2/2totop2" weight="100"/>
</taz>
</tazs>

4 changes: 4 additions & 0 deletions tests/od2trips/timelines/timeline_flows/options.od2trips
@@ -0,0 +1,4 @@
--timeline.day-in-hours --timeline 0.9,0.5,0.2,0.2,0.5,1.3,7.0,9.3,6.7,4.2,4.0,3.8,4.1,4.6,5.0,6.7,9.6,9.2,7.1,4.8,3.5,2.7,2.2,1.9 -n input_taz.taz.xml -d input_od_v.fma
-o trips.trips.xml
--flow-output routes.rou.xml
--flow-output.probability
1 change: 1 addition & 0 deletions tests/od2trips/timelines/timeline_flows/output.od2trips
@@ -0,0 +1 @@
Success.
111 changes: 111 additions & 0 deletions tests/od2trips/timelines/timeline_flows/routes.od2trips
@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Fri Sep 14 23:29:01 2018 by Eclipse SUMO od2trips Version v1_0_0+0207-d3a9bc1
This data file and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
SPDX-License-Identifier: EPL-2.0
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/od2tripsConfiguration.xsd">
<input>
<taz-files value="input_taz.taz.xml"/>
<od-matrix-files value="input_od_v.fma"/>
</input>
<output>
<write-license value="true"/>
<output-file value="trips.trips.xml"/>
<flow-output value="routes.rou.xml"/>
<flow-output.probability value="true"/>
</output>
<processing>
<timeline value="0.9,0.5,0.2,0.2,0.5,1.3,7.0,9.3,6.7,4.2,4.0,3.8,4.1,4.6,5.0,6.7,9.6,9.2,7.1,4.8,3.5,2.7,2.2,1.9"/>
<timeline.day-in-hours value="true"/>
<no-step-log value="true"/>
</processing>
<report>
<xml-validation value="never"/>
</report>
</configuration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<flow id="0" begin="0.00" end="3600.00" probability="0.000013" fromTaz="0" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="1" begin="0.00" end="3600.00" probability="0.000013" fromTaz="0" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="2" begin="0.00" end="3600.00" probability="0.000013" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="3" begin="0.00" end="3600.00" probability="0.000013" fromTaz="1" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="4" begin="0.00" end="3600.00" probability="0.000013" fromTaz="2" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="5" begin="0.00" end="3600.00" probability="0.000013" fromTaz="2" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="6" begin="3600.00" end="7200.00" probability="0.000019" fromTaz="0" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="7" begin="3600.00" end="7200.00" probability="0.000019" fromTaz="0" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="8" begin="3600.00" end="7200.00" probability="0.000019" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="9" begin="3600.00" end="7200.00" probability="0.000019" fromTaz="1" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="10" begin="3600.00" end="7200.00" probability="0.000019" fromTaz="2" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="11" begin="7200.00" end="10800.00" probability="0.000022" fromTaz="0" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="12" begin="7200.00" end="10800.00" probability="0.000022" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="13" begin="7200.00" end="10800.00" probability="0.000022" fromTaz="1" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="14" begin="10800.00" end="14400.00" probability="0.000025" fromTaz="0" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="15" begin="10800.00" end="14400.00" probability="0.000025" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="16" begin="10800.00" end="14400.00" probability="0.000025" fromTaz="1" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="17" begin="14400.00" end="18000.00" probability="0.000032" fromTaz="0" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="18" begin="14400.00" end="18000.00" probability="0.000032" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="19" begin="18000.00" end="21600.00" probability="0.000050" fromTaz="0" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="20" begin="18000.00" end="21600.00" probability="0.000050" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="21" begin="21600.00" end="25200.00" probability="0.000147" fromTaz="0" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="22" begin="25200.00" end="28800.00" probability="0.000276" fromTaz="0" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="23" begin="28800.00" end="32400.00" probability="0.000092" fromTaz="0" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="24" begin="28800.00" end="32400.00" probability="0.000092" fromTaz="0" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="25" begin="28800.00" end="32400.00" probability="0.000092" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="26" begin="28800.00" end="32400.00" probability="0.000092" fromTaz="1" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="27" begin="28800.00" end="32400.00" probability="0.000092" fromTaz="2" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="28" begin="28800.00" end="32400.00" probability="0.000092" fromTaz="2" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="29" begin="32400.00" end="36000.00" probability="0.000150" fromTaz="0" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="30" begin="32400.00" end="36000.00" probability="0.000150" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="31" begin="36000.00" end="39600.00" probability="0.000206" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="32" begin="39600.00" end="43200.00" probability="0.000258" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="33" begin="43200.00" end="46800.00" probability="0.000038" fromTaz="0" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="34" begin="43200.00" end="46800.00" probability="0.000038" fromTaz="0" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="35" begin="43200.00" end="46800.00" probability="0.000038" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="36" begin="43200.00" end="46800.00" probability="0.000038" fromTaz="1" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="37" begin="43200.00" end="46800.00" probability="0.000038" fromTaz="2" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="38" begin="43200.00" end="46800.00" probability="0.000038" fromTaz="2" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="39" begin="46800.00" end="50400.00" probability="0.000101" fromTaz="0" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="40" begin="46800.00" end="50400.00" probability="0.000101" fromTaz="0" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="41" begin="46800.00" end="50400.00" probability="0.000101" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="42" begin="46800.00" end="50400.00" probability="0.000101" fromTaz="1" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="43" begin="46800.00" end="50400.00" probability="0.000101" fromTaz="2" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="44" begin="50400.00" end="54000.00" probability="0.000171" fromTaz="0" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="45" begin="50400.00" end="54000.00" probability="0.000171" fromTaz="0" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="46" begin="50400.00" end="54000.00" probability="0.000171" fromTaz="1" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="47" begin="54000.00" end="57600.00" probability="0.000264" fromTaz="1" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="48" begin="57600.00" end="61200.00" probability="0.000119" fromTaz="0" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="49" begin="57600.00" end="61200.00" probability="0.000119" fromTaz="0" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="50" begin="57600.00" end="61200.00" probability="0.000119" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="51" begin="57600.00" end="61200.00" probability="0.000119" fromTaz="1" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="52" begin="57600.00" end="61200.00" probability="0.000119" fromTaz="2" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="53" begin="57600.00" end="61200.00" probability="0.000119" fromTaz="2" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="54" begin="61200.00" end="64800.00" probability="0.000247" fromTaz="0" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="55" begin="61200.00" end="64800.00" probability="0.000247" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="56" begin="61200.00" end="64800.00" probability="0.000247" fromTaz="2" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="57" begin="64800.00" end="68400.00" probability="0.000068" fromTaz="0" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="58" begin="64800.00" end="68400.00" probability="0.000068" fromTaz="0" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="59" begin="64800.00" end="68400.00" probability="0.000068" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="60" begin="64800.00" end="68400.00" probability="0.000068" fromTaz="1" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="61" begin="64800.00" end="68400.00" probability="0.000068" fromTaz="2" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="62" begin="64800.00" end="68400.00" probability="0.000068" fromTaz="2" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="63" begin="68400.00" end="72000.00" probability="0.000135" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="64" begin="68400.00" end="72000.00" probability="0.000135" fromTaz="1" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="65" begin="68400.00" end="72000.00" probability="0.000135" fromTaz="2" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="66" begin="72000.00" end="75600.00" probability="0.000183" fromTaz="1" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="67" begin="72000.00" end="75600.00" probability="0.000183" fromTaz="2" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="68" begin="82800.00" end="86400.00" probability="0.000000" fromTaz="0" toTaz="1" departLane="free" departSpeed="max"/>
<flow id="69" begin="82800.00" end="86400.00" probability="0.000000" fromTaz="0" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="70" begin="82800.00" end="86400.00" probability="0.000000" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="71" begin="82800.00" end="86400.00" probability="0.000000" fromTaz="1" toTaz="2" departLane="free" departSpeed="max"/>
<flow id="72" begin="82800.00" end="86400.00" probability="0.000000" fromTaz="2" toTaz="0" departLane="free" departSpeed="max"/>
<flow id="73" begin="82800.00" end="86400.00" probability="0.000000" fromTaz="2" toTaz="1" departLane="free" departSpeed="max"/>
</routes>
65 changes: 65 additions & 0 deletions tests/od2trips/timelines/timeline_flows/trips.od2trips
@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on Fri Sep 14 23:08:17 2018 by Eclipse SUMO od2trips Version v1_0_0+0207-d3a9bc1
This data file and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
SPDX-License-Identifier: EPL-2.0
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/od2tripsConfiguration.xsd">
<input>
<taz-files value="input_taz.taz.xml"/>
<od-matrix-files value="input_od_v.fma"/>
</input>
<output>
<write-license value="true"/>
<output-file value="trips.trips.xml"/>
</output>
<processing>
<timeline value="0.9,0.5,0.2,0.2,0.5,1.3,7.0,9.3,6.7,4.2,4.0,3.8,4.1,4.6,5.0,6.7,9.6,9.2,7.1,4.8,3.5,2.7,2.2,1.9"/>
<timeline.day-in-hours value="true"/>
<no-step-log value="true"/>
</processing>
<report>
<xml-validation value="never"/>
</report>
</configuration>
-->

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<trip id="0" depart="400.80" from="top2to2/2" to="2/1totop1" fromTaz="2" toTaz="1" departLane="free" departSpeed="max"/>
<trip id="1" depart="4254.29" from="top0to2/0" to="2/2totop2" fromTaz="0" toTaz="2" departLane="free" departSpeed="max"/>
<trip id="2" depart="6107.60" from="top2to2/2" to="2/0totop0" fromTaz="2" toTaz="0" departLane="free" departSpeed="max"/>
<trip id="3" depart="10818.39" from="top1to2/1" to="2/2totop2" fromTaz="1" toTaz="2" departLane="free" departSpeed="max"/>
<trip id="4" depart="19372.68" from="top1to2/1" to="2/0totop0" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<trip id="5" depart="27048.48" from="top0to2/0" to="2/1totop1" fromTaz="0" toTaz="1" departLane="free" departSpeed="max"/>
<trip id="8" depart="29642.52" from="top2to2/2" to="2/0totop0" fromTaz="2" toTaz="0" departLane="free" departSpeed="max"/>
<trip id="6" depart="29946.71" from="top0to2/0" to="2/2totop2" fromTaz="0" toTaz="2" departLane="free" departSpeed="max"/>
<trip id="9" depart="30383.17" from="top2to2/2" to="2/1totop1" fromTaz="2" toTaz="1" departLane="free" departSpeed="max"/>
<trip id="7" depart="31981.59" from="top1to2/1" to="2/2totop2" fromTaz="1" toTaz="2" departLane="free" departSpeed="max"/>
<trip id="10" depart="33846.55" from="top0to2/0" to="2/1totop1" fromTaz="0" toTaz="1" departLane="free" departSpeed="max"/>
<trip id="11" depart="42963.45" from="top1to2/1" to="2/0totop0" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<trip id="12" depart="44854.56" from="top2to2/2" to="2/1totop1" fromTaz="2" toTaz="1" departLane="free" departSpeed="max"/>
<trip id="13" depart="46958.69" from="top1to2/1" to="2/0totop0" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<trip id="14" depart="47357.09" from="top2to2/2" to="2/0totop0" fromTaz="2" toTaz="0" departLane="free" departSpeed="max"/>
<trip id="16" depart="51848.42" from="top0to2/0" to="2/2totop2" fromTaz="0" toTaz="2" departLane="free" departSpeed="max"/>
<trip id="15" depart="52759.25" from="top0to2/0" to="2/1totop1" fromTaz="0" toTaz="1" departLane="free" departSpeed="max"/>
<trip id="17" depart="56198.82" from="top1to2/1" to="2/2totop2" fromTaz="1" toTaz="2" departLane="free" departSpeed="max"/>
<trip id="19" depart="57963.29" from="top1to2/1" to="2/2totop2" fromTaz="1" toTaz="2" departLane="free" departSpeed="max"/>
<trip id="18" depart="59422.07" from="top0to2/0" to="2/1totop1" fromTaz="0" toTaz="1" departLane="free" departSpeed="max"/>
<trip id="20" depart="60407.46" from="top2to2/2" to="2/0totop0" fromTaz="2" toTaz="0" departLane="free" departSpeed="max"/>
<trip id="22" depart="61990.89" from="top1to2/1" to="2/0totop0" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<trip id="23" depart="63184.70" from="top2to2/2" to="2/1totop1" fromTaz="2" toTaz="1" departLane="free" departSpeed="max"/>
<trip id="21" depart="64625.09" from="top0to2/0" to="2/2totop2" fromTaz="0" toTaz="2" departLane="free" departSpeed="max"/>
<trip id="24" depart="65001.67" from="top0to2/0" to="2/1totop1" fromTaz="0" toTaz="1" departLane="free" departSpeed="max"/>
<trip id="26" depart="65387.90" from="top2to2/2" to="2/0totop0" fromTaz="2" toTaz="0" departLane="free" departSpeed="max"/>
<trip id="25" depart="67424.03" from="top0to2/0" to="2/2totop2" fromTaz="0" toTaz="2" departLane="free" departSpeed="max"/>
<trip id="27" depart="70973.19" from="top1to2/1" to="2/0totop0" fromTaz="1" toTaz="0" departLane="free" departSpeed="max"/>
<trip id="28" depart="72447.19" from="top1to2/1" to="2/2totop2" fromTaz="1" toTaz="2" departLane="free" departSpeed="max"/>
<trip id="29" depart="72702.02" from="top2to2/2" to="2/1totop1" fromTaz="2" toTaz="1" departLane="free" departSpeed="max"/>
</routes>

0 comments on commit 6b61eac

Please sign in to comment.