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