Skip to content

Commit

Permalink
update test ref #21 #13294
Browse files Browse the repository at this point in the history
Signed-off-by: m-kro <[email protected]>
  • Loading branch information
m-kro committed Dec 6, 2024
1 parent 2399515 commit 08b31ee
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
30 changes: 15 additions & 15 deletions tests/complex/traci/vehicle/stationfinder/output.complex
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
5.00 batteryNeed="2628.10" chargingStation="" chargePower="0.00" usedAverage=""
6.00 batteryNeed="2517.28" chargingStation="chargingStation1" chargePower="0.00" usedAverage=""
7.00 batteryNeed="2519.66" chargingStation="chargingStation1" chargePower="0.00" usedAverage=""
8.00 batteryNeed="2525.94" chargingStation="chargingStation1" chargePower="0.00" usedAverage=""
9.00 batteryNeed="2533.51" chargingStation="chargingStation1" chargePower="0.00" usedAverage=""
10.00 batteryNeed="2541.91" chargingStation="chargingStation1" chargePower="0.00" usedAverage=""
11.00 batteryNeed="2533.45" chargingStation="chargingStation1" chargePower="0.00" usedAverage=""
12.00 batteryNeed="2519.31" chargingStation="chargingStation1" chargePower="0.00" usedAverage=""
13.00 batteryNeed="2515.84" chargingStation="chargingStation1" chargePower="0.00" usedAverage=""
14.00 batteryNeed="2508.60" chargingStation="chargingStation1" chargePower="20900.00" usedAverage=""
15.00 batteryNeed="2797.13" chargingStation="chargingStation1" chargePower="20900.00" usedAverage=""
16.00 batteryNeed="2758.09" chargingStation="chargingStation1" chargePower="20900.00" usedAverage=""
17.00 batteryNeed="2723.97" chargingStation="chargingStation1" chargePower="20900.00" usedAverage=""
18.00 batteryNeed="2693.87" chargingStation="chargingStation1" chargePower="20900.00" usedAverage=""
19.00 batteryNeed="2666.93" chargingStation="chargingStation1" chargePower="20900.00" usedAverage=""
5.00 batteryNeed="2628.10" chargingStation="" chargePower="0.00" usedAverage="0.00"
6.00 batteryNeed="2517.28" chargingStation="chargingStation1" chargePower="0.00" usedAverage="1223.97"
7.00 batteryNeed="2519.66" chargingStation="chargingStation1" chargePower="0.00" usedAverage="4171.07"
8.00 batteryNeed="2525.94" chargingStation="chargingStation1" chargePower="0.00" usedAverage="8861.31"
9.00 batteryNeed="2533.51" chargingStation="chargingStation1" chargePower="0.00" usedAverage="12552.06"
10.00 batteryNeed="2541.91" chargingStation="chargingStation1" chargePower="0.00" usedAverage="15475.67"
11.00 batteryNeed="2533.45" chargingStation="chargingStation1" chargePower="0.00" usedAverage="13264.86"
12.00 batteryNeed="2519.31" chargingStation="chargingStation1" chargePower="0.00" usedAverage="11606.76"
13.00 batteryNeed="2515.84" chargingStation="chargingStation1" chargePower="0.00" usedAverage="10317.12"
14.00 batteryNeed="2508.60" chargingStation="chargingStation1" chargePower="20900.00" usedAverage="9285.40"
15.00 batteryNeed="2797.13" chargingStation="chargingStation1" chargePower="20900.00" usedAverage="8441.28"
16.00 batteryNeed="2758.09" chargingStation="chargingStation1" chargePower="20900.00" usedAverage="7737.84"
17.00 batteryNeed="2723.97" chargingStation="chargingStation1" chargePower="20900.00" usedAverage="7142.62"
18.00 batteryNeed="2693.87" chargingStation="chargingStation1" chargePower="20900.00" usedAverage="6632.43"
19.00 batteryNeed="2666.93" chargingStation="chargingStation1" chargePower="20900.00" usedAverage="6190.27"
5 changes: 3 additions & 2 deletions tests/complex/traci/vehicle/stationfinder/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ def step():
s = step()
for i in range(20):
if "el" in traci.vehicle.getIDList():
print(('%.2f batteryNeed="%s" chargingStation="%s" chargePower="%s" usedAverage=""') % (
print(('%.2f batteryNeed="%s" chargingStation="%s" chargePower="%s" usedAverage="%s"') % (
s, traci.vehicle.getParameter(vehID, "device.stationfinder.batteryNeed"),
traci.vehicle.getParameter(vehID, "device.stationfinder.chargingStation"),
traci.vehicle.getParameter(vehID, "device.battery.chargePower")
traci.vehicle.getParameter(vehID, "device.battery.chargePower"),
traci.vehicle.getParameter(vehID, "device.battery.usedAverage"),
))
s = step()

Expand Down

0 comments on commit 08b31ee

Please sign in to comment.