Open mjcortejo opened 1 year ago
I was thinking of modifying this part
self.edges = {i: {'cars_occupied': [], 'has_accident': False, 'road_speed': 50, 'one_way': False} for i in self.edge_list}
Inside cars_occupied there will be a multidimensional array containing an empty sequence for n-lanes.
cars_occupied
Something like:
cars_occupied: [[],[]] -> Where each element is an array of an individual lane.
dev note: Was thinking of converting this into a dictionary to indicate Left or Right Lanes {"L":[], "R":[]}
{"L":[], "R":[]}
I was thinking of modifying this part
self.edges = {i: {'cars_occupied': [], 'has_accident': False, 'road_speed': 50, 'one_way': False} for i in self.edge_list}
Inside
cars_occupied
there will be a multidimensional array containing an empty sequence for n-lanes.Something like:
cars_occupied
: [[],[]] -> Where each element is an array of an individual lane.dev note: Was thinking of converting this into a dictionary to indicate Left or Right Lanes
{"L":[], "R":[]}