MCPcopy Create free account
hub / github.com/PJLab-ADG/OASim / __init__

Method __init__

limsim/simModel/fixedScene/localScene.py:16–22  ·  view source on GitHub ↗
(self, netInfo: NetworkBuild, localPos: DummyVehicle)

Source from the content-addressed store, hash-verified

14
15class LocalScene:
16 def __init__(self, netInfo: NetworkBuild, localPos: DummyVehicle) -> None:
17 self.netInfo = netInfo
18 self.localPos = localPos
19 self.edges, self.junctions = self.getRoadGraph()
20 self.currVehicles: dict[str, Vehicle] = {}
21 self.vehINAoI: dict[str, Vehicle] = {}
22 self.outOfAoI: dict[str, Vehicle] = {}
23
24 def getRoadGraph(self) -> tuple[set[str]]:
25 ex, ey = self.localPos.x, self.localPos.y

Callers

nothing calls this directly

Calls 1

getRoadGraphMethod · 0.95

Tested by

no test coverage detected