Retrieves and merges the given number of messages.
Retrieves and merges the given number of messages. back to the stack and returns the resulting CommunicationStack. The values of the resulting map are List[Any]: the values of different maps with same keys are collected to the list.
Push a new message to the stack.
Pops given number of messages, merges them, pushes the resulting message to the stack.
Underlying stack.
A Stack used for bottom-top communication. Children push their messages (maps) to the parent node to the stack. After the parent node is finished with them, they are popped, merged with the parent's message and the resulting single message is pushed to the stack as the parent's message to grandparent. Every node must push exactly one message; empty map is pushed if nothing is to push.