I am a graduate student at the department of computer science and engineering, but my undergraduate major was the industrial and management engineering. So I am sometimes confused about software engineering.
By GoF, at the chapter of the command pattern, the relation with the command pattern and the composite pattern is that composite pattern can be used to implement MacroCommands.
I thought for storing the bunch of commands, the composite pattern can be used.
But I didn't understand precisely.
My professor who teaches me about the design pattern, said the macro which is the bunch of commands, is also a command. It implies that relationship is the composite pattern.
I might be not sure whether I understand that perfectly or not.
I would like to make it sure that I understand right and his explanation is right.
Thank you for your help in advance.
Aucun commentaire:
Enregistrer un commentaire