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


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

in Table To:


© 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