[kepler-dev] list of connected ports on a given channel

Edward A. Lee eal at eecs.berkeley.edu
Tue Aug 1 04:14:49 PDT 2006

I think that Port.connectedPortList() will return all the immediately
connected ports.  You can then filter this using IOPort.isInput() or


At 02:06 PM 7/31/2006, Norbert Podhorszki wrote:

>I would like to create the following information for a port:
>for each channel of the port
>    list of the directly connected ports of the opposite type (input/output)
>Not the remote sources or receivers, but the immediate neighbours.
>What I need is to determine, when a port is sending token on channel X,
>that what ports the token is "going" through (including transparent
>ports). Similarly, when a token is get()-ed at (an opaque) input port,
>then which port (immediate neighbour) is it coming from (logically).
>Do you have such method already at hand, or an idea, how to create it?
>At least for opaque ports?
>At least a solution that is fine for {SDF,PN,DDF} domains?
>At least a solution where there are no buses only single-wide channels?
>Many thanks in advance
>PS: I am completely lost in the forest of ports, relations, links and
>receivers; insides and outsides; the many kinds of lists of entities I can
>get; and the only logically existing notion of channels (after both
>studying the design doc and the code).
>       Norbert Podhorszki
>     ------------------------------------
>       University of California, Davis
>       Department of Computer Science
>       1 Shields Ave, 2236 Kemper Hall
>       Davis, CA 95616
>       (530) 754-8188
>       pnorbert at cs.ucdavis.edu
>       ----------------------------------
>Kepler-dev mailing list
>Kepler-dev at ecoinformatics.org

Edward A. Lee
Professor, Chair of EECS
231 Cory Hall, UC Berkeley, Berkeley, CA 94720-1770
phone: 510-642-0253 or 510-642-0455, fax: 510-642-2845
eal at eecs.Berkeley.EDU, http://ptolemy.eecs.berkeley.edu/~eal  

More information about the Kepler-dev mailing list