I want to have a system where modules can communicate with the shell, and also with other modules. I have some general ideas about how to do this, but I want to know what is generally accepted to be the best way:
- On module load, go through the list of modules and have the Shell JunctionMediator go through the list of modules and add one or more input and output pipes for each module in the list against the module that was just initialized. This would require making a lot of pipes for simple messaging.
- Create a "RedirectJunction" with a "sendMessageToModule" method that sends a special message type to the shell for redirection toward the correct module.
Also, why would use more than one pipe per module and more than one message type? I guess I'm a little confused as how something would differ from the standard setup.