Basic HTML version of Foils prepared June 5 99

Foil 90 Client code

From Use of Java in Computational Science DoD Modernization Users Group Conference Monterey -- June 7 99. by Tom Haupt,Geoffrey C. Fox


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);}



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Tue Jul 6 1999