Hi Guys, thanks for the response.
I am still running over all of this in my head trying to come to a solution given that the requirements contain a high level of ambiguity and trying to understand why certain BDM associations are defined as such.
Vagner in response to your post:
I see Segment as a line item on a Itinerary too.
But I see a Flight as flight number, and each Flight has 1 or many Legs.
For instance, Flight 3370 has Legs A -> B, B -> C and C -> D.
Then, Customer X can buy the seat number 14C in the Legs from A to C, and Customer Y can buy the same seat 14C in the Leg from C to D.
I introduced a class Reservation, that associate Segment, Leg and Seat.
What do you think?
I think I see what you are getting at. I think it is something along the lines of what I am thinking of. One question though, will you still have an association between segment and flight and what data would you hold in leg?
From other posts I came across a link defining travel terminology ->
Travel Terminology After reading this I see Segment and leg as having the same meaning when used in that sense ( one take off and landing). When I consider the one to one association between a Segment and Flight I say to myself why!, as I can't see the reason for it as I consider flight also to have the same meaning as segment one take off and landing. Therefore this implies that a segment given its definition will have the same attributes as a flight for its take off and landing. This raises two interesting choices for me if there is to be a one to one association between flight and segment then flight does not hold the origin and destination only flight number etc and we search on segments using an object that aggregates segments into a route when a customer wishes to search for flights.
If a flight is to hold the destination and arrival then the second option we search by flight and change the association between segment and flight to flight 1 segment 1 ..*. And in this sense, segment is simply a booking line on the itinerary. As a flight can have many segments (seat reservations).
Hi arvind in respone to ur post.
- So there will be passenger details per segment ?
Would this duplicate the passenger info. May be you can put it at itinerary level and still store the booked seat info at segment level.
Yep I was thinking that myself but this asks the question what happens if there is multiple passengers being booked by the same customer. I guess it comes down to how the seat selection is implemented if the customer simply selects coach or first class which I think should probably selected when the initial search is carried out or if there is a more in depth seat selection option that would require the passeneger to be explicity coupled to each section.
Where do you plan to put this higher level object
Here it depends on I guess what I am going to search - either segment or flight, as commented on in response to wagner
Maybe I am missing something simple here ...
Look forward to your responses.
Jesse