returns all itineraries that depart from origin and arrive at destination on the given date . if an itinerary contains two consecutive flights f1 and f2 , then the destination of f1 should match the origin of f2 . to simplify our task , if there are more than 6 hours between the arrival of f1 and the departure of f2 , then we do not consider this sequence for a possible itinerary we judge that the stopover is too long . in addition , the itineraries returned do not contain cycles , i.e. , they do not visit the same place more than once . every flight in an itinerary must have at least one seat available for sale . that is , the itinerary must be bookable . concode_field_sep Infocentre info concode_elem_sep Client client concode_field_sep String getFlights concode_elem_sep void uploadFlightInfo concode_elem_sep String getItinerariesSortedByTime concode_elem_sep void uploadClientInfo concode_elem_sep String getClient concode_elem_sep String getItinerariesSortedByCost
String function ( String arg0 , String arg1 , String arg2 ) { String loc0 = new String ( ) ; ItineraryGenerator loc1 = new ItineraryGenerator ( info . allFlights ( info . getFlights ( ) ) ) ; for ( Itinerary loc2 : loc1 . listAllItineraries ( arg1 , arg2 , arg0 ) ) { loc0 += loc2 . toString ( ) + "srini_string" ; } return loc0 ; }