1 | try { |
2 | //add modules |
3 | p1 = slaveNT.addNewModule("runEdys"); //as defined in conf.file |
4 | runEdys re = runEdysHelper.narrow(p1); |
5 | p2 = slaveUNIX.addNewModule("runCasc2d"); //as defined in conf.file |
6 | runCasc2d rc = runCasc2dHelper.narrow(p2); |
7 | //bind events |
8 | master.attachEvent(p2,"Casc2dDone","Casc2dDone",p1,"run"); |
9 | master.attachEvent(p1,"EdysStarted","EdysStarted",p2,"run"); |
10 | master.attachEvent(p1,"EdysDone","EdysDone",p2,"runAgain"); |
11 | //invoke methods of runCasc2dImp |
12 | rc.run(); |
13 | } |
14 | catch(COMM_FAILURE ex) |
15 | {System.err.println(ex.getMessage()); System.exit(1);} |