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