Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Segmentfare class ?

 
Gopal Chiluki
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone throw some pointers to this.

Shoud we create a seperate SegmentFare class which will have
a direct association with Flight class[as it may vary depends on
the time of the flight] or should we assume that it is a part of Seat
domain object ?
 
Karen Young
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think the fare is directly related to the flight. Rather, it depends on the type of seat.
 
Gopal Chiluki
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
does this mean it is fair to have an association between SegmentFare class and Seat ?
 
Solomon Raz
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gopal Chiluki:
does this mean it is fair to have an association between SegmentFare class and Seat ?


Gopal,
I see Seat Fare as an attribute of Seat. For this business domain, Fare is an atomic literal and there is no behavior associated with that. So, I wouldn't make that a class.

Solomon
 
Gopal Chiluki
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that makes sense.. Thanks for clarifying it
 
vu lee
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think the fare is directly related to the flight. Rather, it depends on the type of seat.

Besides the type of seat, flight also affect air fare (I think). For a coach seat, fares to travel from Los Angeles to Las vegas and Lost Angeles to San Francisco for the same aircraft are different. Am I wrong?
 
Joseph Zhou
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Vu, the price of a segment we can put with the type of seat side. I also think we can make a CMR composite entity for a flight.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic