예제 #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);
 }