Changeset 23189 in osm for applications/editors/josm/plugins/routing/src/com/innovant
- Timestamp:
- 2010-09-15T18:53:09+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/routing/src/com/innovant/josm/jrt
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/routing/src/com/innovant/josm/jrt/core/EdgeIterator.java
r15707 r23189 4 4 5 5 public boolean hasNext(); 6 6 7 7 public RoutingEdge next(); 8 8 -
applications/editors/josm/plugins/routing/src/com/innovant/josm/jrt/core/RoutingEdge.java
r15707 r23189 8 8 9 9 public LatLon toLatLon(); 10 10 11 11 public Object fromV(); 12 12 … … 14 14 15 15 public double getLength(); 16 16 17 17 public void setLength(double length); 18 18 19 19 public double getSpeed(); 20 20 21 21 public void setSpeed(double speed); 22 22 23 23 public boolean isOneway(); 24 24 25 25 public void setOneway(boolean isOneway); 26 26 -
applications/editors/josm/plugins/routing/src/com/innovant/josm/jrt/core/RoutingGraphDelegator.java
r15707 r23189 1 1 /** 2 * 2 * 3 3 */ 4 4 package com.innovant.josm.jrt.core; … … 23 23 */ 24 24 static Logger logger = Logger.getLogger(RoutingGraphDelegator.class); 25 25 26 26 /** 27 27 * 28 28 */ 29 29 private RouteType routeType; 30 30 31 31 public RoutingGraphDelegator(Graph<Node, OsmEdge> arg0) { 32 32 super(arg0); 33 33 } 34 34 35 35 36 36 public RouteType getRouteType() { … … 44 44 45 45 /** 46 * 46 * 47 47 */ 48 48 private static final long serialVersionUID = 1L; … … 51 51 public double getEdgeWeight(OsmEdge edge) { 52 52 double weight=Double.MAX_VALUE; 53 53 54 54 if (routeType==RouteType.SHORTEST) weight=edge.getLength(); 55 55 if (routeType==RouteType.FASTEST) weight=edge.getLength() / edge.getSpeed(); -
applications/editors/josm/plugins/routing/src/com/innovant/josm/jrt/osm/OsmEdge.java
r16290 r23189 94 94 return length; 95 95 } 96 96 97 97 public void setLength(double length) { 98 98 this.length = length;
Note:
See TracChangeset
for help on using the changeset viewer.