Changeset 15106 in osm for applications/editors/josm/plugins
- Timestamp:
- 2009-05-19T01:21:12+02:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/routing/src/com/innovant/josm/jrt/core
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/routing/src/com/innovant/josm/jrt/core/RoutingGraph.java
r14760 r15106 89 89 * <code>false</code> Graph not created. 90 90 */ 91 public boolean graphState;91 // public boolean graphState; 92 92 93 93 /** … … 108 108 */ 109 109 public RoutingGraph(DataSet data) { 110 this.graphState = false;110 // this.graphState = false; 111 111 this.graph = null; 112 this.data = data;112 // this.data = data; 113 113 routeType=RouteType.SHORTEST; 114 114 routingProfile=new RoutingProfile("default"); … … 147 147 } 148 148 } 149 graph.vertexSet().size();149 // graph.vertexSet().size(); 150 150 logger.debug("End Create Graph"); 151 151 logger.debug("Vertex: "+graph.vertexSet().size()); … … 167 167 // weight = getWeight(way); 168 168 double weight = getWeight(way, length); 169 getWeight(edge, length);169 setWeight(edge, length); 170 170 logger.debug("edge for way " + way.id 171 171 + "(from node " + from.id + " to node " … … 176 176 177 177 /** 178 * Returnsthe weight for the given segment depending on the highway type178 * Set the weight for the given segment depending on the highway type 179 179 * and the length of the segment. The higher the value, the less it is used 180 180 * in routing. … … 184 184 * @return 185 185 */ 186 private void getWeight(OsmEdge osmedge, double length) {186 private void setWeight(OsmEdge osmedge, double length) { 187 187 188 188 osmedge.setLength(length);
Note:
See TracChangeset
for help on using the changeset viewer.