Пример #1
0
 public int getDistanceToDestinationCost(StopOrHub destination) {
   return bus.getDistanceFromTo(location, destination.getLocation()) * bus.getMileageCost();
 }
Пример #2
0
 public int getDistanceFrom(BusOrStop busOrStop) {
   return bus.getDistanceFromTo(busOrStop.getLocation(), location);
 }