@Override
 public void handleEvent(TransitDriverStartsEvent event) {
   linesRoutesOfVehicle.put(
       event.getVehicleId().toString(),
       new Tuple<String, String>(
           event.getTransitLineId().toString(), event.getTransitRouteId().toString()));
 }
 @Override
 public void handleEvent(TransitDriverStartsEvent event) {
   try {
     ptVehicles.put(
         event.getVehicleId(), new PTVehicle(event.getTransitLineId(), event.getTransitRouteId()));
     transitDriverIds.add(event.getDriverId());
   } catch (Exception e) {
     System.err.println(e.getStackTrace());
     System.err.println(event.toString());
     ;
   }
 }
예제 #3
0
 @Override
 public void handleEvent(TransitDriverStartsEvent event) {
   ptVehicles.put(
       event.getVehicleId(), new PTVehicle(event.getTransitLineId(), event.getTransitRouteId()));
 }