File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes PrepareItinerary Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "PrepareItinerary" Watch "PrepareItinerary" New topic
Author

PrepareItinerary

rottscha rotti
Greenhorn

Joined: Jan 18, 2005
Posts: 21
Hi all,
in the prepareItinerary usecase what is meant by "less than selected" in the fourth paragraph of the basic flow?

Thanks - rottscha rabbit
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
Rottscha,

The fourth paragraph says:

System responds with the selected flight priced and alternative flights if less than selected and within one hour of departure and return times.

My understanding is that "less than selected" means that the alternative flights are cheaper than the user's choices.

-- Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Giju George
Ranch Hand

Joined: Jun 08, 2004
Posts: 333
"....selected flights priced....", does this means that the price itinerary use case was executed here ???

Also, the prepare itinerary use case is a bit confusing. There are a number of times it mention about "customer selects...."/ "system responds...". In real life, I am sure we can avoid some of these roundtrips, by displaying( the very first time) ONLY flights with seats available.

Unfortunately, I am sure we are not allowed to change this flow for the assignment. And we need to cater for this in the sequence diag also.

Guys, what are your thoughts about this ???
[ August 08, 2005: Message edited by: Giju George ]

SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCEA
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
Giju,


"....selected flights priced....", does this means that the price itinerary use case was executed here ???


The use case diagram shows that the Prepare Itinerary use case includes the Price Itinerary use case.

The basic flow of Prepare Itinerary use case explicitly and implicitly refers to the Price Itinerary:

System responds with the selected flight priced and alternative flights if less than selected and within one hour of departure and return times.


System prices the itinerary and returns the itinerary confirmation window with selected flights


-- Dan
Giju George
Ranch Hand

Joined: Jun 08, 2004
Posts: 333
Dan, a bit confused about this !!

something I noticed now : One of the pre-conditions of price itinerary is that the customer has a prepared itinerary. So, when the "system responds with selected flights priced", there's no itinerary prepared by a customer yet. So I think the system gets the prices for each segment. And once the customer selects the segments (by then the customer will have an itinerary prepared), it then sends to price itinerary to calculate the total cost.

What do u say ???

Also, then the role of the price itinerary is JUST to add the prices for each segment and get a total price... am I right ???
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
Giju,

You said:

And once the customer selects the segments (by then the customer will have an itinerary prepared),


The funny thing is that the Prepare Itinerary use case doesn't mention the word segment and therefore my understanding of its basic flow is that the user can't choose segments.

It gets tricky with Change Itinerary which does allow the user to choose a segment, delete it and replace it by running the Prepare Itinerary use case. I don't really see a problem here as one segment can be replaced by a succession of segments.

Also, then the role of the price itinerary is JUST to add the prices for each segment and get a total price... am I right ???


No doubt as the brief description of Price Itinerary says:

The Price Itinerary use case calculates the cost of the selected itinerary. It does so by pricing each segment of the itinerary and adding the prices together.


-- Dan
Ajai
Ranch Hand

Joined: May 29, 2002
Posts: 198
I tend to agree with Dan.User is allowed to select logical flight which might be comprised of 1 or more segments but he can not select the segments within the logical flight.
Btw can anybody suggest some simulation link for change itinerary.

Thanks.
Giju George
Ranch Hand

Joined: Jun 08, 2004
Posts: 333
Yes, I agree with you Ajai.. customer ONLY selects the logical flight( which then contains diff segments). But I am sure the customer will be selecting seats for EACH segment... do u guys agree ???

Also as dan said, the change itinerary can be a bit tricky then. Because when the customer deletes a segment and when the flow goes to prepare itinerary, it should then deal with ONLY the deleted segment. Because an itinerary already exists. I don't know how to design this scenario, because there's no alternative flow in use case.

Say the customer travels from A-B-C. So the customer selects the logical flight (A-B-C), and then selects seats for each segment (A-B, B-C).
Now he wants to change A-B to A-X-B (the itinerary will then be A-X-B-C). And when the flow goes to prepare itinerary, we have to use the existing segment B-C. Or does it start all over again ???

Also, can the customer change A-B in itinerary A-B-C to A-X-Y, which will then make the itinerary A-X-Y~~~~B-C .. hm.. this is not right

So then where do we do all these checks ??? It could have been done in an alternative flow, if there was one for "prepare itinerary".
Vinay Singh
Ranch Hand

Joined: Dec 15, 2004
Posts: 174
Looking at all this discussion , my views
1. "Less than selected"..did not bother about it much. Made assumption , user wants a flight for given date..show him all which are less than 1 hour of departure from system date.

2.Price Itinerary would total the prices and would add taxes,surcharges etc. I am assuming that user is travelling by which ever class, has already been selected.
This use case can be an extended to discounts etc later on.
Also when user is changing an itinerary, the difference would be calculated.

3. Giju you are right , please do not change flow. People in other threads have suggested that.

4. Customer does not select the segments. They are shown in combinations to user. Have a look at any airline website. So user selects any combination.

Vinay


Technical quiz and interview questions   SCJP 6 mock practice test
Giju George
Ranch Hand

Joined: Jun 08, 2004
Posts: 333
Also, can the customer change A-B in itinerary A-B-C to A-X-Y, which will then make the itinerary A-X-Y~~~~B-C


Vinays.. what's your comment about this ???
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
Giju,

But I am sure the customer will be selecting seats for EACH segment... do u guys agree ???


Let's say we have a logical flight (I really like this term) from NY to Austin TX and along the way we stop in Dallas TX. Is the customer being asked to change her/his seat on the same plane on the same logical flight? Never happened to me and it's not the spirit of Prepare Itinerary.
Now, if we go and change a segment of the flight and take for that segment a different plane than obviously we'll probably end up in a different seat (Change Itinerary).

-- Dan
Giju George
Ranch Hand

Joined: Jun 08, 2004
Posts: 333
Dan, it depends on how you define segment. I follow the BDOM without changing it. So, if you are flying from NY-TX with a stopover in Dallas (not changing flight)... I consider it as 1 segment. But if the flights are changed in Dallas (layover), then there will be 2 segments.
Annick BOEL
Greenhorn

Joined: Feb 09, 2004
Posts: 10
1/ What about the fact the a customer could choose the round-trip option when changing a segment? I didn't see any comment about this? Have you seen a travel site where you can change only the departure or the return?

2/ I completely agree with the concept of logical flight, which means for me either the departure combination of segments or the return one, because it ensures a consitency of segments.

Any comments?

Annick
Ajai
Ranch Hand

Joined: May 29, 2002
Posts: 198
Annic,

I think it does not matter whether you change segment in departure or return flight since itinerary is composed of segments(it does not state whether that segment is part of departure or return part) as per BDM.

Dan,

.
Let's say we have a logical flight (I really like this term) from NY to Austin TX and along the way we stop in Dallas TX. Is the customer being asked to change her/his seat on the same plane on the same logical flight? Never happened to me and it's not the spirit of Prepare Itinerary [/QUOT]

In the scenario u mentioned,I agree with you that it might not be happening practically but I believe a customer might not have any problem in changing seats ..suppose seat A is already booked bu Cust B from NY to Dallas but Seat B is available and customer C has already booked Seat B from Dallas to Austin(TX).If I were customer A and I need to urgently reach TX ,I won't mind.


What do you say?
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
Ajai,

If I were customer A and I need to urgently reach TX ,I won't mind.


The question is what the requirements say or which assumptions we can make. My understanding is that a seat is assigned to a logical flight. However, each one of us is obviously free to come up with different assumptions.

-- Dan
Vinay Singh
Ranch Hand

Joined: Dec 15, 2004
Posts: 174
Originally posted by Giju George:


Vinays.. what's your comment about this ???


Giju
In this case both the segments are to be deleted and new itinerary is to be prepared. I am basically looking at simplest way to satsify all the requirements without visualizing too much of what could be an ideal solution.
Giju George
Ranch Hand

Joined: Jun 08, 2004
Posts: 333
Originally posted by Vinays Singh:


Giju
In this case both the segments are to be deleted and new itinerary is to be prepared. I am basically looking at simplest way to satsify all the requirements without visualizing too much of what could be an ideal solution.


Vinays .... so what you are saying is, the segments SHOULD always be CONNECTED. And if the customer tries to change an itinerary and creates new segments, then this check should be done
 
 
subject: PrepareItinerary