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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Segment vs Flight Search" Watch "Segment vs Flight Search" New topic
Author

Segment vs Flight Search

Murat Balkan
Ranch Hand

Joined: Sep 10, 2002
Posts: 127
Hi all,
In some posts I have seen that people searches for segments in order to create an itinerary. But in prepare itinerary usecase, it says that user searches for flights. To which one I have to draw a dependency from my fa�ade? I think price belongs to a segment so there has to be two dependency lines from fa�ade to flight and segment. The confusing thing is, since segment is directly related to a flight, maybe one dependency line will be fine.
Can you help?
Thank you,
Murat
suekar meredilko
Ranch Hand

Joined: Mar 27, 2006
Posts: 153
Originally posted by Murat Balkan:
I think price belongs to a segment so there has to be two dependency lines from fa�ade to flight and segment.


I read in part-1 that transitive dependency does not apply i.e. A->B->C does not mean A->C.

As per the usecase and your design, I think the right way is Facade will have dependency relation with Flight and Flight will have an aggregation association (OWN) the segment.
Cleuton Sampaio
Ranch Hand

Joined: Nov 11, 2005
Posts: 181
Hey, I think that a segment IS a flight booked by a client.


Cleuton Sampaio<br />Systems Architect<br />(SCEA,SCWCD,SCBCD,MCSE,MCSD)
suekar meredilko
Ranch Hand

Joined: Mar 27, 2006
Posts: 153
sorry iternary and segment ... is association.
a flight is a segment, you are right.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Segment vs Flight Search