Skip to content

Commit

Permalink
test for checking valid phemlight parameters in a given vtype file; #…
Browse files Browse the repository at this point in the history
  • Loading branch information
yunpangfloetteroed committed Feb 2, 2024
1 parent 1038af0 commit 22866b4
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 0 deletions.
Empty file.
12 changes: 12 additions & 0 deletions tests/sumo/devices/emissions/phemlight_vtype/input_routes.rou.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vType id="PHEMlight5_veh" emissionClass="PHEMlight5/PC_BEV_GEN1" vClass="passenger" speedDev="0" sigma="0">
<param key="constantPowerIntake" value="360"/>
<param key="airDragCoefficient" value="0.28"/>
<param key="frontSurfaceArea" value="2.54"/>
<param key="vehicleMass" value="2124"/>
</vType>
<vType id="PHEMlight5_orig" emissionClass="PHEMlight5/PC_BEV_GEN1" vClass="passenger" speedDev="0" sigma="0"/>
<route id="route0" edges="beg middle end rend"/>
<vehicle id="0" type="PHEMlight5_veh" route="route0" depart="0.0" color="red" departSpeed="max"/>
<vehicle id="1" type="PHEMlight5_orig" route="route0" depart="36.0" color="green" departSpeed="max"/>
</routes>
2 changes: 2 additions & 0 deletions tests/sumo/devices/emissions/phemlight_vtype/options.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--device.battery.probability=1 --device.emissions.probability=1 --no-step-log -b 0 --no-duration-log --net-file=three_split.net.xml -a=input_routes.rou.xml --tripinfo-output=tripinfos.xml
--emission-output.precision 3
Empty file.
53 changes: 53 additions & 0 deletions tests/sumo/devices/emissions/phemlight_vtype/tripinfos.sumo
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-02-02 10:39:17 by Eclipse SUMO sumo Version v1_19_0+0736-52a79b7ff36
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
This file may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the Eclipse
Public License 2.0 are satisfied: GNU General Public License, version 2
or later which is available at
https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">
<input>
<net-file value="three_split.net.xml"/>
<additional-files value="input_routes.rou.xml"/>
</input>
<output>
<write-license value="true"/>
<emission-output.precision value="3"/>
<tripinfo-output value="tripinfos.xml"/>
</output>
<time>
<begin value="0"/>
</time>
<processing>
<default.speeddev value="0"/>
</processing>
<report>
<xml-validation value="never"/>
<duration-log.disable value="true"/>
<no-step-log value="true"/>
</report>
<emissions>
<device.emissions.probability value="1"/>
</emissions>
<battery>
<device.battery.probability value="1"/>
</battery>
</configuration>
-->

<tripinfos xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/tripinfo_file.xsd">
</tripinfos>

0 comments on commit 22866b4

Please sign in to comment.