• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Travel Agent and a Web Customer

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How do you "fit" these two in the system? I'm doing a card modeling system to identify all the potential models/class for the system. In my modeling I've identified both to have distinct responsibilities. For now I've extended both from the Customer class/object in the BDM. Customer is associated with a Profile class/object w/ multiplicity 1 to 1. Profile is associated to CreditCard as 1 to 0..*. The 0 in the 0..* is for a Travel Agent(no credit card). I've put enough notes inside my Class Diagram to explain this.
 
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Manny,

For me a travel agent is a kind of USER. Profiles do not apply to users, but to customers. When a TA books a flight on behalf a customer, he will use this customer�s profile.

To model a TA as a Customer without profile is not a good practice. They are different entities. The only thing they have in common is the fact that both are USERS.
 
Manny Pacman Pacquiao
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is what's pushing me to distinguish two kinds of users.

In a web scenario it is absolutely true that when a customer logs in, he/she will have a profile. However, for an application scenario it is a travel agent who does the booking for the customer. The moment a TA logs in he'd have a profile, isn't it? But once a customer comes in and ask for a booking then that is when another kind of profile is created, one that is for the current customer being serve. The profile for the TA is one that is pass around application events.

I'm following this:
ClassResponsibility/Operation
=============================
Web Customer book own flight
Travel Agent book flight for a customer


Thank you!
 
reply
    Bookmark Topic Watch Topic
  • New Topic