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

Method __init__

limsim/simModel/common/networkBuild.py:35–50  ·  view source on GitHub ↗
(self,
                 dataBase: str,
                 networkFile: str,
                 obsFile: str = None
                 )

Source from the content-addressed store, hash-verified

33
34class NetworkBuild:
35 def __init__(self,
36 dataBase: str,
37 networkFile: str,
38 obsFile: str = None
39 ) -> None:
40 self.dataBase = dataBase
41 self.networkFile = networkFile
42 self.obsFile = obsFile
43 self.edges: dict[str, Edge] = {}
44 self.lanes: dict[str, NormalLane] = {}
45 self.junctions: dict[str, Junction] = {}
46 self.junctionLanes: dict[str, JunctionLane] = {}
47 self.tlLogics: dict[str, TlLogic] = {}
48 # self.obstacles: dict[str, circleObs | rectangleObs] = {}
49 self.dataQue = Queue()
50 self.geoHashes: dict[tuple[int], geoHash] = {}
51
52 def getEdge(self, eid: str) -> Edge:
53 try:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected