• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Segment vs Flight Search

 
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey, I think that a segment IS a flight booked by a client.
 
suekar meredilko
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry iternary and segment ... is association.
a flight is a segment, you are right.
 
reply
    Bookmark Topic Watch Topic
  • New Topic