The receiveMessage method in base class Node wants to deal with Meet messages but leave other handle___Message functions as abstract.
But now I'm adding new message types for the Butterfly strategy, I need to edit this method in the base class. I guess a clean way to do it is not to use abstract methods for each method types, but just empty methods for unused method types in the base class
The
receiveMessage
method in base classNode
wants to deal withMeet
messages but leave otherhandle___Message
functions as abstract.But now I'm adding new message types for the Butterfly strategy, I need to edit this method in the base class. I guess a clean way to do it is not to use abstract methods for each method types, but just empty methods for unused method types in the base class