aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Change Itinerary Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Change Itinerary" Watch "Change Itinerary" New topic
Author

Change Itinerary

veena madhukar
Ranch Hand

Joined: Apr 28, 2006
Posts: 86
In change Itinerary -- User selects an itinerary to change. In that he selects a segment to be changed. This results in deleting the existing segment. Prepare Itinerary is executed.

Let us say the Itinerary for a round trip was prepared and available as follows:

A-->B-->C-->D
D-->C-->B-->A

Now let us say the user selects the segment (B-->C) for changing. This segment gets deleted. Prepare Itinerary is executed for that segment. At the end of the execution of Prepare Itinerary the segment details need to be inserted as a part of this itinerary itself....right?

Hence the toatl itineraries that the user has will remain the same. Though it follows the Prepare Itinerary the end insertion is done as a part of existing itinerary unlike in the case afresh prepare itinerary use case execution.
suekar meredilko
Ranch Hand

Joined: Mar 27, 2006
Posts: 153
Originally posted by veena madhukar:
In change Itinerary -- User selects an itinerary to change. In that he selects a segment to be changed. This results in deleting the existing segment. Prepare Itinerary is executed.

Let us say the Itinerary for a round trip was prepared and available as follows:

A-->B-->C-->D
D-->C-->B-->A

Now let us say the user selects the segment (B-->C) for changing. This segment gets deleted. Prepare Itinerary is executed for that segment. At the end of the execution of Prepare Itinerary the segment details need to be inserted as a part of this itinerary itself....right?

Hence the toatl itineraries that the user has will remain the same. Though it follows the Prepare Itinerary the end insertion is done as a part of existing itinerary unlike in the case afresh prepare itinerary use case execution.


Hello Veena,

I want to point few things which you are not focussing on.

Its true that user can change a segment but prepare iternary is like updation of the previous iternary i.e. delete segment and add a new segment in the iternary. It will have the effect of checking seat availability and paying as well. So prepare iternary will actually have to update these....but just that before this the previous segment will be deleted and new one inserted.

Yes you are right...system will update the existing iternary. Its not a fresh iternary being added. Are you allowing to change on paid iternaries or unpaid also ? That is an assumption you can make.

By the way..tThis is a national airline, so i dont thing there will be so many segments to reach from A to D

A->B->C->D


suekar
veena madhukar
Ranch Hand

Joined: Apr 28, 2006
Posts: 86
THANK YOU VERY MUCH.

----------------------------------------------------
Its true that user can change a segment but prepare iternary is like updation of the previous iternary i.e. delete segment and add a new segment in the iternary. It will have the effect of checking seat availability and paying as well. So prepare iternary will actually have to update these....but just that before this the previous segment will be deleted and new one inserted.
_______________________________________________________________________

You have referred to Prepare Itinerary twice in your response. Are you meaning Prepare Itinerary which is being executed as a part of Change Itinerary both the times. Kindly confirm.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Change Itinerary