(self, vdict: dict, vid: str)
| 85 | jl.switchTime = switchTime |
| 86 | |
| 87 | def addVeh(self, vdict: dict, vid: str) -> None: |
| 88 | if vdict and vid in vdict.keys(): |
| 89 | return |
| 90 | else: |
| 91 | vehIns = Vehicle(vid) |
| 92 | vdict[vid] = vehIns |
| 93 | |
| 94 | # getSurroundVeh will update all vehicle's attributes |
| 95 | # so don't update again in other steps |
no test coverage detected