• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about departure flight

 
James Wang
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

There is probably many segments in one itinerary. Example, if one person wants to travel from A to C. now there is not flight from A to C, but there is a flight that fly from A to B and a flight that fly from B to C. So he or she can reserve a itinerary that contains two segments, one is between A and B, another is between B and C. if what I said above is right, then there will be two departure flights in this itinerary, one starts off in city A and another starts off in city B. is it right?

Any reply is appreciated.
 
Parag Doshi
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
James,
From what I understand, arrival and departure are from the perspective of the customer's point of origin (whether he is going somewhere or returning from somewhere).
For example, if a customer's point of origin is A and if he is going to B, then all the segments from A to B are departure flights/segment as he is "departing" from his point of origin. In the same way, any flights/segments from B to A are called return flight/segments as he is "returning" to his point of origin.

Its similar to when you go to work, you drive your car to the train station, take a train and then walk the rest of the way to work. All these three are your "departing" segments and when you come back home, you are "returning", so your walk to the train station, train ride and then car ride home are your "returning" segments.

hope this makes sense..

parag
 
Raj Polikepati
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was having the same doubt, all day today. I am at that stage as well defining my class diagrams. But after thinking a lot, I came to a conclusion. Do we really need that aspect of analysis for architecting the application. We can do that at implementation stage. Just a method signature would be enough. I am thinking on design by contract. Just my 8 cents. Please let me know what you think.
Thanks
Raj
 
James Wang
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Parag,

Thank you,I understand what you said above,But now I am confused that there are more than one segment the depart city and dest city of which is different. Example, one person want to travel from city A to city C, but now there is not direct flight that fly from city A to city C in current airline. but there are two flights,one from A to B and another from B to C,so the passenger has to fly from city A to city B first throught one flight then fly from city B to city C through another flight. In above scenario, whether are there two departure flights, one start off from city A and another start off from city B. My question is whether system need process the travel in which there is no direct flight from departure city to destination city. What you said is about the scenario in which the direct flight is exist. If the direct flight is not exist in the airline, how to process the stitution? does system display no flight to customer? or does system list two flights, one between city A and city B and another between city B and city C?
 
D. Rose
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Need to list all filghts A-B, B-C or whatever unless you are talking of different aielines servicing A-B and B-C.
 
James Wang
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
D. Rose,

Thank you,You means that there should be two departure flights in one itinerary about the above description?

now the flight from A to B and the flight from B to C are belong to the same airline, there is no direct flight from A to C in the airline. If customer travel from A to C, should there be two departure flights?

Certainly if system dont support this, customer may also complete the travel, but customer must select an itinerary from A to B and another itinerary from B to C.

how should I do? are there two departure flights in one itinerary? otherwise I have to force customer to create two itenaries. is what I said right? any reply is welcome.
 
Parag Doshi
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by James Wang:
D. Rose,

Thank you,You means that there should be two departure flights in one itinerary about the above description?

now the flight from A to B and the flight from B to C are belong to the same airline, there is no direct flight from A to C in the airline. If customer travel from A to C, should there be two departure flights?

Certainly if system dont support this, customer may also complete the travel, but customer must select an itinerary from A to B and another itinerary from B to C.

how should I do? are there two departure flights in one itinerary? otherwise I have to force customer to create two itenaries. is what I said right? any reply is welcome.


James,
Lets take ur example. A customer wants to travel from A to C and there is no direct flight, so he has to take flight A-B and another flight B-C. Yes, there are 2 flights needed to reach his destination. But, you could also think of them as 2 segments/leg of a single departure flight rather than 2 departure flights. Its all about how you relate your flights, leg and segments.

Parag
 
James Wang
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Parag,

But, you could also think of them as 2 segments/leg of a single departure flight rather than 2 departure flights. Its all about how you relate your flights, leg and segments.


I agree with you fully, the relation between itinerary and flight is indirect. But I think that the customer need also select the second flight.
otherwise, how to price the itinerary and pay the itinerary?

If there is only one departure flight in the itinerary,when to select second flight? how does the system generate the second segment?

Now I am confused fully.
 
Parag Doshi
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by James Wang:
Parag,



I agree with you fully, the relation between itinerary and flight is indirect. But I think that the customer need also select the second flight.
otherwise, how to price the itinerary and pay the itinerary?

If there is only one departure flight in the itinerary,when to select second flight? how does the system generate the second segment?

Now I am confused fully.


James,
All I am saying is that dont consider the 2 segments (A->B and B->C) as 2 flights, consider them as 2 legs of a "flight". When the system is queried for the "flight", it can return both the "legs" of the "flight".
This is ofcourse one way of looking at things. I have known many others who have modelled the flight/leg/segment relationship differently. Its all about what you consider a "flight" and what you call a "leg".

Parag
[ August 26, 2004: Message edited by: Parag Doshi ]
 
Raj Polikepati
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Parag,
My 2 cents on segment and flight:

Segment: Single flight with a same flight number.
For example:
if you travel from A to B, change planes at B, and then travel from B to C, you will have flown two segments. On the other hand, if you travel from A to C and the flight stops at B, but you don't change planes, then your trip from A to C is one segment.

Thanks
Raj
 
Parag Doshi
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Raj Polikepati:
Parag,
My 2 cents on segment and flight:

Segment: Single flight with a same flight number.
For example:
if you travel from A to B, change planes at B, and then travel from B to C, you will have flown two segments. On the other hand, if you travel from A to C and the flight stops at B, but you don't change planes, then your trip from A to C is one segment.

Thanks
Raj


Raj,
I agree with that definition of the segment. All I was trying to show that the relationship btw the 2 segment which completes the flight can be modelled as flight-1...*-leg and yes, we can leave out that relationship btw the 2 leg of the flight and consider them as both flights as the requirement doesnt explicitly need us to depict that relationship. I had just demonstrated it as it sounded logical to group the legs which comprise a flight.

Parag
 
James Wang
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Parag,

I agree with that definition of the segment. All I was trying to show that the relationship btw the 2 segment which completes the flight can be modelled as flight-1...*-leg and yes, we can leave out that relationship btw the 2 leg of the flight and consider them as both flights as the requirement doesnt explicitly need us to depict that relationship. I had just demonstrated it as it sounded logical to group the legs which comprise a flight.


what is the difference between leg and segment? what is leg? I always consider leg as segment.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic