public abstract class MatchState extends Object
Modifier and Type | Field and Description |
---|---|
double |
accumulatedError |
double |
currentError |
protected Edge |
edge |
protected static double |
NEW_SEGMENT_PENALTY |
protected static double |
NO_TRAVERSE_PENALTY |
MatchState |
parent |
Constructor and Description |
---|
MatchState(MatchState parent,
Edge edge,
double distanceAlongRoute) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
carsCanTraverse(Edge edge) |
protected static double |
distance(org.locationtech.jts.geom.Coordinate from,
org.locationtech.jts.geom.Coordinate to) |
protected static double |
distanceAlongGeometry(org.locationtech.jts.geom.Geometry geometry,
org.locationtech.jts.linearref.LinearLocation startIndex,
org.locationtech.jts.linearref.LinearLocation endIndex) |
double |
getDistanceAlongRoute() |
Edge |
getEdge() |
abstract List<MatchState> |
getNextStates() |
protected List<Edge> |
getOutgoingMatchableEdges(Vertex vertex) |
double |
getTotalError() |
protected static final double NEW_SEGMENT_PENALTY
protected static final double NO_TRAVERSE_PENALTY
public double currentError
public double accumulatedError
public MatchState parent
protected Edge edge
public MatchState(MatchState parent, Edge edge, double distanceAlongRoute)
public abstract List<MatchState> getNextStates()
public Edge getEdge()
public double getTotalError()
protected boolean carsCanTraverse(Edge edge)
public double getDistanceAlongRoute()
protected static double distanceAlongGeometry(org.locationtech.jts.geom.Geometry geometry, org.locationtech.jts.linearref.LinearLocation startIndex, org.locationtech.jts.linearref.LinearLocation endIndex)
protected static double distance(org.locationtech.jts.geom.Coordinate from, org.locationtech.jts.geom.Coordinate to)
Copyright © 2019. All rights reserved.