I am just a bit confused with the difference between the observer and state pattern. I have been given a project where the client is an airplane on a flight which calculates data for different sensor such as GPS,Speed, Fuel level, And then the data is sent over to the network and then to the server. At the moment I have used the observer pattern for my class diagram. The class diagram can be viewed from the below, please let me know if my solution is correct and if the design pattern chosen is good for this solution.
Aucun commentaire:
Enregistrer un commentaire