Class OptionalTurnCostProvider
java.lang.Object
org.eclipse.mosaic.lib.routing.graphhopper.util.OptionalTurnCostProvider
- All Implemented Interfaces:
com.graphhopper.routing.weighting.TurnCostProvider
public class OptionalTurnCostProvider
extends Object
implements com.graphhopper.routing.weighting.TurnCostProvider
-
Field Summary
Fields inherited from interface com.graphhopper.routing.weighting.TurnCostProvider
NO_TURN_COST_PROVIDER
-
Constructor Summary
ConstructorsConstructorDescriptionOptionalTurnCostProvider
(VehicleEncoding encoding, com.graphhopper.storage.TurnCostStorage turnCostStorage) -
Method Summary
Modifier and TypeMethodDescriptionlong
calcTurnMillis
(int inEdge, int viaNode, int outEdge) double
calcTurnWeight
(int edgeFrom, int nodeVia, int edgeTo) com.graphhopper.routing.weighting.TurnCostProvider
Disables consideration of turn costs.toString()
-
Constructor Details
-
OptionalTurnCostProvider
public OptionalTurnCostProvider(VehicleEncoding encoding, com.graphhopper.storage.TurnCostStorage turnCostStorage)
-
-
Method Details
-
disableTurnCosts
public com.graphhopper.routing.weighting.TurnCostProvider disableTurnCosts()Disables consideration of turn costs. Only turn restrictions are checked. -
calcTurnWeight
public double calcTurnWeight(int edgeFrom, int nodeVia, int edgeTo) - Specified by:
calcTurnWeight
in interfacecom.graphhopper.routing.weighting.TurnCostProvider
-
calcTurnMillis
public long calcTurnMillis(int inEdge, int viaNode, int outEdge) - Specified by:
calcTurnMillis
in interfacecom.graphhopper.routing.weighting.TurnCostProvider
-
toString
-