agents4its / agentpolis

GNU General Public License v3.0
3 stars 1 forks source link

Discover where the bug with laneCounts = 1 came from #23

Closed F-I-D-O closed 7 years ago

F-I-D-O commented 7 years ago

ComplexGraphBuilder

zdebou commented 7 years ago

Extract way tag (cz.agents.gtdgraphimporter.osm.WayTagExtractor.java) + http://wiki.openstreetmap.org/wiki/Lanes

zdebou commented 7 years ago

In cz.agents.agentpolis.simmodel.environment.model.citymodel.transportnetwork.elements.SimulationEdge.java

method: private void initLaneCounts(Set<ModeOfTransport> permittedModes) { permittedModes.stream().forEach( modeOfTransport -> addLaneCount(ModeOfTransportToGraphTypeConverter.convert(modeOfTransport), 1)); } and public SimulationEdgeBuilder addLaneCount(GraphType type, int laneCount) { laneCounts.put(type, laneCount); return this; } So it´s permanently set. It wil need edit of the gtdgraphimporter and SimulationEdge

zdebou commented 7 years ago

30