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

My 2 concerns about the assignment.

 
Bin Wu
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I nearly finish my assignment. I have tested on local and networking model. All seem be OK. But I still have two concerns, caused by my not follow the requirement.
1.The assignment requires, the remote object should implement the all public methods in the Data class. But I design a interface as a broker between client and server, which is a new class and composite the Data class, not inheritance. So the client will never touch the data base directly. I make the interface to be the remote object, but it doesn't include any Data class's methods,just call them. So I concern if it is OK or may influnce my grade.
2.About the criterialFind(String), I thought it is not a good way to let the user input so long sentence to search a flight.So I decide to only provide editable three comboboxes to let users select carrier,origin and destination conveniently. Then I design the method as criterialFind(String carrier,String origin,
String destination),it implements well. But I concern if is right.
Thanks in advance.
 
Matt DeLacey
Ranch Hand
Posts: 318
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bin,
Not sure about your first question, I didn't do it that way so it's hard for me to say, but my feeling is that they INTEND for you to make the public methods of the Data class accessible to the client in some way. If you do this, then I think you're golden. Probably whatever you have done, if there is good reason and you can readily justify it, then you'll be okay.
On your second point I agree with you 100%. The only thing I would add is that my assignment (yours may be different) does not call for carrier. Of course, having it will not hurt you, but I don't think it is necessary. Of course, like I said, your assignment may be different.

With Respect,
Matt DeLacey
 
Doug Melzer
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Regarding the first question. Even if your broker class didn't extend the Data class you can still expose all of the public methods, per the assignment requirement, and then just have your broker delegate the calls.
You can satisfy the requirement to satisfy the criteriaFind(String) signature by employing some code in your client to assemble the string based upon the selections in your combo boxes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic