Esempio 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;
 }
Esempio n. 2
0
 public synchronized float getCurrentMaxSpeed() {
   return route.getCurrentMaxSpeed();
 }