@Override
 public void handleEvent(final TransitDriverStartsEvent event) {
   if (this.calibratedLines.contains(event.getTransitLineId())) {
     this.analyzedTransitDrivers.add(event.getDriverId());
     this.analyzedTransitVehicles.add(event.getVehicleId());
   }
 }
 @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());
     ;
   }
 }
示例#4
0
 @Override
 public void handleEvent(TransitDriverStartsEvent event) {
   ptVehicles.put(
       event.getVehicleId(), new PTVehicle(event.getTransitLineId(), event.getTransitRouteId()));
 }