Example of a route map of cities connected by routes which record distance and travel time between cities along that specific route.
| Values | |
example | Source Codeshared example exampleThis example combines a concrete |
| Functions | |
km | Source Codeshared Distance km(Integer kilometers, Integer meters = 0) |
period | Source Codeshared Period period(Integer hours, Integer minutes)Convenience function to create periods from hours and minutes only. By: ThorstenSeitz |
printPathInfo | Source Codeshared void printPathInfo(RouteMap routeMap, Walk<City,Route> shortestPath)Example code demonstrating how to calculate different distances on a path or walk. |
| Classes | |
City | Source Codeshared final CityA city (Value Object). |
Distance | Source Codeshared final DistanceDistance measured in km (Value Object). |
Route | Source Codeshared final RouteA route between two cities. |
RouteMap | Source Codeshared final RouteMapA route map of cities connected by undirected routes with a given distance
and travel time.
The same cities may be connected by multiple routes (e.g. Autobahn or Bundesstraße) with different distances
and travel times. The route map is therefore a |
example | Source Codeshared exampleThis example combines a concrete |