mardi 31 mai 2016

Is this good aproach? Sensors in Observer DP

I am developing small simulation app and I've been wondering if it's good idea to use observer design pattern in my program. The idea is that there is a house with a couple of rooms, each room has a couple of sensors. Temperature, motion, smoke etc. Will this work? Is this a good use of the observer pattern? The whole app would work like this: you can add/remove a sensor in the building, e.g. temperature sensor would change the temperature, motion sensor would have possibility to spot motion. Thanks for any feedback

Aucun commentaire:

Enregistrer un commentaire