public class ConstantIntersectionTraversalCostModel extends AbstractIntersectionTraversalCostModel
maxLeftTurnAngle, maxRightTurnAngle, minLeftTurnAngle, minRightTurnAngle, nonDrivingTurnCostFactor| Constructor and Description |
|---|
ConstantIntersectionTraversalCostModel()
Convenience constructor for no cost.
|
ConstantIntersectionTraversalCostModel(double cost)
All traversal costs are equal to the passed-in constant.
|
| Modifier and Type | Method and Description |
|---|---|
double |
computeTraversalCost(IntersectionVertex v,
StreetEdge from,
StreetEdge to,
TraverseMode mode,
RoutingRequest options,
float fromSpeed,
float toSpeed)
Compute the cost of turning onto "to" from "from".
|
calculateTurnAngle, computeNonDrivingTraversalCost, isLeftTurn, isRightTurnpublic ConstantIntersectionTraversalCostModel(double cost)
public ConstantIntersectionTraversalCostModel()
public double computeTraversalCost(IntersectionVertex v, StreetEdge from, StreetEdge to, TraverseMode mode, RoutingRequest options, float fromSpeed, float toSpeed)
IntersectionTraversalCostModelcomputeTraversalCost in interface IntersectionTraversalCostModelcomputeTraversalCost in class AbstractIntersectionTraversalCostModelCopyright © 2019. All rights reserved.