I got this question to prepare for my exam and I would like to see if I got this question correctly:
You need to calculate distance over longitude and longitude where NOAA has it’s server that will calculate difference. The NOAA server doesn’t have the same interface as the client has.
1)What patterns would you use and why?
2)Draw class diagram.
3)Draw sequence diagram.
For first part I would use the proxy pattern because of the remote server and adapter pattern because classes with disparate interfaces to work together by creating a common object by which they may communicate and interact.
Second and third part (class and sequence diagram) I know how to draw both patterns separate but for the combining of classes I don’t know where to start.
Is first part patterns and explanation good? I can use advices since I am still learning.
Thanks in advance
Aucun commentaire:
Enregistrer un commentaire