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
-
-
Constructor Summary
Constructors Constructor Description OptionalTurnCostProvider(VehicleEncoding encoding, com.graphhopper.storage.TurnCostStorage turnCostStorage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
calcTurnMillis(int inEdge, int viaNode, int outEdge)
double
calcTurnWeight(int edgeFrom, int nodeVia, int edgeTo)
com.graphhopper.routing.weighting.TurnCostProvider
disableTurnCosts()
Disables consideration of turn costs.String
toString()
-
-
-
Constructor Detail
-
OptionalTurnCostProvider
public OptionalTurnCostProvider(VehicleEncoding encoding, com.graphhopper.storage.TurnCostStorage turnCostStorage)
-
-
Method Detail
-
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
-
-