|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cm.osm2po.routing.Section
public class Section
Eine Edge nach kuenstlicher
Aufsplittung durch einen TouchPoint
.
(engl. Section = Abschnitt)
Funktioniert aber ebenfalls fuer reine Vertices und beschreibt
hier die komplette Edge mit einer Ratio von 1.0 == nicht geteilt.
Constructor Summary | |
---|---|
Section(int edgeIdx,
double ratio,
de.cm.osm2po.model.LatLons geometry)
|
|
Section(int vIdx,
int edgeIdx,
int sourceId,
int targetId,
double ratio,
de.cm.osm2po.model.LatLons geometry)
|
Method Summary | |
---|---|
static double |
calcPathLength(Graph graph,
Section[] sections)
Berechnet die Strecke einer Route. |
static double |
calcPathTime(Graph graph,
Section[] sections)
Berechnet die Fahrzeit einer Route. |
int |
getEdgeIdx()
|
de.cm.osm2po.model.LatLons |
getGeometry()
|
int |
getIdx()
|
double |
getRatio()
|
int |
getSourceId()
|
int |
getTargetId()
|
static Section[] |
makePath(Graph graph,
int[] edgeIdxs)
Wandelt eine Liste von EdgeIdx aus dem statischen Original Graphen Graph in eine Liste von
Section mit Ratio 1 und Geometry null. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Section(int edgeIdx, double ratio, de.cm.osm2po.model.LatLons geometry)
public Section(int vIdx, int edgeIdx, int sourceId, int targetId, double ratio, de.cm.osm2po.model.LatLons geometry)
Method Detail |
---|
public int getIdx()
public int getEdgeIdx()
public int getSourceId()
public int getTargetId()
public double getRatio()
public de.cm.osm2po.model.LatLons getGeometry()
public java.lang.String toString()
toString
in class java.lang.Object
public static Section[] makePath(Graph graph, int[] edgeIdxs)
Graph
in eine Liste von
Section
mit Ratio 1 und Geometry null.
graph
- OverlayGraph
static graph.edgeIdxs
- int[] Array von Referenzen auf Edges.
Section
[] Array oder null, wenn null uebergeben.public static double calcPathLength(Graph graph, Section[] sections)
graph
- Graph
sections
- (Route) Array of Section
public static double calcPathTime(Graph graph, Section[] sections)
graph
- Graph
sections
- (Route) Array of Section
|
osm2po-core-4.8.8 (c) 2012 Carsten Moeller - info@osm2po.de | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |