Exemplo n.º 1
0
 public synchronized AlarmInfo getMostImportantAlarm(MetricsConstants mc, boolean showCameras) {
   float mxspeed = route.getCurrentMaxSpeed();
   AlarmInfo speedAlarm = createSpeedAlarm(mc, mxspeed, lastProjection);
   AlarmInfo alarm = route.getMostImportantAlarm(lastProjection, speedAlarm, showCameras);
   if (alarm != null) {
     voiceRouter.announceAlarm(alarm);
   }
   return alarm;
 }
Exemplo n.º 2
0
 public synchronized float getCurrentMaxSpeed() {
   return route.getCurrentMaxSpeed();
 }