Basic HTML version of Foils prepared July 5 98

Foil 132 PPT Slide

From FMS: Forces Modeling and Simulation Handout JSU HPC Summer Institute for Undergraduates, Jackson MS -- June 15 1998. by Wojtek Furmanski, Subhash Nair, Tom Pulikal


public class OutputPort extends Port implements Serializable { public void send(Object str) { os= new ObjectOutputStream(getSocket().getOutputStream()); os.writeObject(str); } }
public class InputPort extends Port implements Serializable { public Object receive() { is= new ObjectInputStream(getSocket().getInputStream()); str = (String) is.readObject(); return(str); } }
Hence in the initialize method the statement
sp = new OutputPort() creates a new OutputPort object, the super class does the registering with the Connection Manager
mm.putPortID(sp.getPortID()) registering a port which the module uses it



© 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 Sat Nov 28 1998