cmpt431-rainbow/Protocol — pull request #3 by elElmo (2012-02-24 08:43:27+00:00)
Title: Scheduler protocol nearly complete, basic framework set up. Includes a sample for scheduler.

Not quite there yet but enough to start integrating into the scheduler. This is highly multithreaded and will spawn a protocolet (small protocol within the protocol - protocolception!) for each controller. Actions are defined by rpcMaps which, unfortunately cannot be statically defined (because of queue access and what not).

Right now all messages are defined in their own message types. I've tested it in IRB (ruby shell) and I can both receive and transmit messages correctly in JSON format. I think the RpcAction and Messages are clear enough, though let me know if you think of anything that could make it even simpler or better for external interaction.

Wesley, if you are looking at this, please have a look over the sample and let me know if you would like anything changed before we start working on getting this integrated with your scheduler.