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, isRightTurn
public ConstantIntersectionTraversalCostModel(double cost)
public ConstantIntersectionTraversalCostModel()
public double computeTraversalCost(IntersectionVertex v, StreetEdge from, StreetEdge to, TraverseMode mode, RoutingRequest options, float fromSpeed, float toSpeed)
IntersectionTraversalCostModel
computeTraversalCost
in interface IntersectionTraversalCostModel
computeTraversalCost
in class AbstractIntersectionTraversalCostModel
Copyright © 2018. All rights reserved.