Identifying the best pattern
- by Daniel Grillo
I'm developing a software to program a device.
I have some commands like Reset, Read_Version, Read_memory, Write_memory, Erase_memory.
Reset and Read_Version are fixed. They don't need parameters.
Read_memory and Erase_memory need the same parameters that are Length and Address.
Write_memory needs Lenght, Address and Data.
For each command, I have the same steps in sequence, that are something like this sendCommand, waitForResponse, treatResponse.
I'm having difficulty to identify which pattern should I use. Factory, Template Method, Strategy or other pattern.