try { |
//add modules |
p1 = slaveNT.addNewModule("runEdys"); //as defined in conf.file |
runEdys re = runEdysHelper.narrow(p1); |
p2 = slaveUNIX.addNewModule("runCasc2d"); //as defined in conf.file |
runCasc2d rc = runCasc2dHelper.narrow(p2); |
//bind events |
master.attachEvent(p2,"Casc2dDone","Casc2dDone",p1,"run"); |
master.attachEvent(p1,"EdysStarted","EdysStarted",p2,"run"); |
master.attachEvent(p1,"EdysDone","EdysDone",p2,"runAgain"); |
//invoke methods of runCasc2dImp |
rc.run(); |
} |
catch(COMM_FAILURE ex) |
{System.err.println(ex.getMessage()); System.exit(1);} |