Re: [kepler-dev] getting links from a compositeEntity

2006-02-18 Thread Edward A. Lee
Chad: The object representing a connection is a Relation, not a link. A link is simply the term used for the fact that a Relation and Port must refer to one another to have any relationship at all. If we created a Link object to represent this relationship, then the Link object and Port object

Re: [kepler-dev] getting links from a compositeEntity

2006-02-17 Thread Chad Berkley
I'm still having no luck getting this to work. All I want to do is copy the links and relations from one workflow to another. I don't see any way to programatically access the links themselves. I'm cloning all of the actors in the workflow, but they port link information does not seem to get

Re: [kepler-dev] getting links from a compositeEntity

2006-02-17 Thread Edward A. Lee
CompositeEntity.exportFilter(int, Collection) takes a filter argument so that it will return only links involving in the filter... Edward At 11:16 AM 2/16/2006, Chad Berkley wrote: I've got the relation objects, but what I'm trying to get at is the moml elements. When I call exportMoML() on

Re: [kepler-dev] getting links from a compositeEntity

2006-02-16 Thread Chad Berkley
I've got the relation objects, but what I'm trying to get at is the moml elements. When I call exportMoML() on a ComponentRelation, I get something like this: I want that but also the elements that tell what the relation is linked to. Do I have to go through the port list to get these? H

Re: [kepler-dev] getting links from a compositeEntity

2006-02-15 Thread Edward A. Lee
Links are not objects in the Ptolemy II abstract syntax. Relations are objects... Relations contain a list of references to ports that they are linked to, and the ports contain a list of the relations that they are linked to. Edward At 02:25 PM 2/15/2006, Chad Berkley wrote: Hi, I'm trying t