std::string GUIVehicle::getStopInfo() const { std::string result = ""; if (isParking()) { result += "parking"; } else if (isStopped()) { result += "stopped"; } else if (hasStops()) { return "next: " + myStops.front().getDescription(); } else { return ""; } if (myStops.front().pars.triggered) { result += ", triggered"; } else if (myStops.front().pars.containerTriggered) { result += ", containerTriggered"; } else if (myStops.front().collision) { result += ", collision"; } else if (myStops.front().pars.until != -1) { result += ", until=" + time2string(myStops.front().pars.until); } else { result += ", duration=" + time2string(myStops.front().duration); } return result; }
std::string GUIMEVehicle::getStopInfo() const { std::string result = ""; if (isParking()) { result += "parking"; } else if (isStopped()) { result += "stopped"; } else { return ""; } return result; }