I'm refactoring software that is created by my predecessor. The software can communicate over the can-bus. At this moment all devices are hardcoded in the software and my job is to make every deviceType configurable. (Saved in serialized classes and creatable with a Model creator). With the software, the devices can be configured, addressed and parameter set.
At the moment, it keeps track of the messages with flagged enums set in the uints paramsRequested and paramsUpdated. But this needs to be replaced with something else. Because this is not scaleable and configurable.
Now my question is, are there patterns or examples I could use for this problem?
Aucun commentaire:
Enregistrer un commentaire