From lorenz@ccs.neu.edu Thu Nov 12 22:31:50 1998 Received: from alnitak.ccs.neu.edu (lorenz@alnitak.ccs.neu.edu [129.10.116.144]) by amber.ccs.neu.edu (8.9.1a/8.9.1) with ESMTP id WAA04485; Thu, 12 Nov 1998 22:31:48 -0500 (EST) Date: Thu, 12 Nov 1998 22:31:47 -0500 (EST) From: "David H. Lorenz" To: I-Chen Pan cc: Karl Lieberherr , Mira Mezini Subject: Re: Questions In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: R Hi I-C, On Thu, 12 Nov 1998, I-Chen Pan wrote: > Questions regarding APPC-Beans.PDF : > > 1. The pseudo code for traversalEvent(TraversalEventObject travObj) method > in AdapterBean class only considered node events. What about edge events? > Does travObj.getNodeClass() return an edge event also? I presume you refer to pages 10-11. Let "ev" denote the node event received by the adapter. "ev.getNodeClass()" should really be "ev.getNode().getClass()", that is, it is the class of the node being traversed. Edge events should be treated similarly, perhaps by introducing two methods, "getSourceNode()" and "getTargetNote()", and so on. > 2. Does the adapter bean only adapt the output event interfaces of TB to > mach the input interface of APPCNameBean? I mean, are there any output > event interfaces for APPCNameBean? Should the adapter bean adapt them > also? Yes, to all three questions, just in case you'd want to chain APPCs. But they would be different adaptors. > 3. Also in the pseudo code for traversalEvent() method in AdapterBean > class, one line says, > let EXP be the set of inputs expected from the class playing Part. > > I'm not sure what exactly it means. Is the set of inputs from ICG or from > InputEventInterface? > > -IC "EXP" is short for "expected". "Part" is short for "participant", where participant is a class in the ICG. A node event has been received, and we wish to fire the corresponding participant. Thus, any value "expected from" (i.e., use by) the participant, should be copied from the node. Disclaimer: I'm merely explaining Mira's code to Karl's request. -- David