This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Flight Selection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Flight Selection" Watch "Flight Selection" New topic

Flight Selection

Shabbir Kothawala

Joined: Jun 04, 2007
Posts: 24

If the statement says "Customer selects the departure flight (not flights) then if the departure/return flight consist of multiple leg and each leg start with new flight then during the departure/return flights list you need to club the route segments and display as single selection (same as in expedia) and when user select flight then route segment flight nos needs to be send to calculate price

The problem will occur during the change itinerary. If you select 2 segment from your departure flight to change from itinerary then you again call itinerary prepare and in alternate flight scenario you may display the flight that have departure time less then 1 segment flight arrival time which is not a valid selection for user and should not be shown

How do you handle this?

Your inputs are highly appreciated

I hope with this question I am not crossing any SCEA privacy law as this in a very generic flight reservation scenario

Shabbir Kothawala

Joined: Jun 04, 2007
Posts: 24
Can anyone put some ideas on this

Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

I don't think, personally, I'm quite understanding what's being asked. I'd be happy to try to venture an answer (even a "I can't answer that") if I understood it better.

Theodore Jonathan Casser
SCJP/SCSNI/SCBCD/SCWCD/SCDJWS/SCMAD/SCEA/MCTS/MCPD... and so many more letters than you can shake a stick at!
Shabbir Kothawala

Joined: Jun 04, 2007
Posts: 24
Sorry Theodore.. I put the question in quite lengthy way

The question is related to alternate flight. The issue occur when your source to destination consist of multiple segment. The alternate flight step will give the user a choice to select the flight that is within (+)(-) 1 hr of flight departure time and in case of connected flight (-) 1 hr will give an invalid option

That is what I am trying to understand that is alternate flight should only consider (+) 1 hr

Deepak Bala

Joined: Feb 24, 2006
Posts: 6661

I think what is being asked is this - how do you handle the situation where you need to change an Itinerary and the search flight results page gives you flights whose time would not exactly correspond with the user's Itinerary (plus or minus one hour - remember). This is a low level decision and you can document a solution if you want to.


You beat me to it Shabbir. I was late by 3 minutes. arrhh !
[ June 11, 2007: Message edited by: John Meyers ]

SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
I agree. Here's the link:
subject: Flight Selection
Similar Threads
Questions on Requirements for Assignment..
2 leg/segment route
about departure flight
Route - Flight - Segment again.
my understanding of leg , sector and itinerary...