Week7-s2

Objectives
try to implement JCSP and Net2 on Lejos.

Progress
Good news: it work. I took the JCSP source code, striped out the useless parts, implemented the implementable missing class that could be replaced by something else efficiently(PipedInputStream, PipedOutputStream and a partial version of Collections), removed the unimplementable features (anything related to serialisation), replaced the reference to classes not implemented by logical equivalents (essentialy new HashTable; => Collections.synchronizedMap(new HashMap); ). As oposed to what I said last week HashMaps are fully functional.

I first tested the new JCSP core on a NXT and then the net2 layer with only one NXT and the PC. It succeded. I should test the net2 layer with several NXT but I stoped here fot this week because of a coursework. However, once started, the central packet router makes no difference between the PC and the NXTs on the piconet and the PC and NXT ends behave the same way. The system is, therefore, always logicaly equivalent regardless of the number and nature of the nodes. According to the traces I have, the system work exactly as expected. I may need four more lego robots next week week.

Supervisor's Comments
wow - well done I am most impressed.

The extra robots are waiting in my room!!