public class GermanyCountryRule extends Object implements CountryRule
| Constructor and Description |
|---|
GermanyCountryRule() |
| Modifier and Type | Method and Description |
|---|---|
RoadAccess |
getAccess(ReaderWay readerWay,
TransportationMode transportationMode,
RoadAccess currentRoadAccess) |
double |
getMaxSpeed(ReaderWay readerWay,
TransportationMode transportationMode,
double currentMaxSpeed)
In Germany there are roads without a speed limit.
|
Toll |
getToll(ReaderWay readerWay,
Toll currentToll) |
public double getMaxSpeed(ReaderWay readerWay, TransportationMode transportationMode, double currentMaxSpeed)
MaxSpeed.UNLIMITED_SIGN_SPEED.
Your implementation should be able to handle these cases.
getMaxSpeed in interface CountryRulepublic RoadAccess getAccess(ReaderWay readerWay, TransportationMode transportationMode, RoadAccess currentRoadAccess)
getAccess in interface CountryRulepublic Toll getToll(ReaderWay readerWay, Toll currentToll)
getToll in interface CountryRuleCopyright © 2012–2022. All rights reserved.