[kepler-dev] [Bug 3593] - exporting an actor to kar does not save portparameters that have been defined

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Fri May 1 18:01:57 PDT 2009


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=3593





------- Comment #3 from barseghian at nceas.ucsb.edu  2009-05-01 18:01 -------
Checked in a fix. 

We were intentionally skipping adding PortParameters when exporting to an actor
kar. Does anyone know why?

        public void addAttribute(Attribute a) {
                //if
(a.getClassName().equals("ptolemy.actor.parameters.PortParameter")) {
                //      return;
                //}
                attributeVector.add(a);
        }

I've commented this skipping out, and things seem to work fine. I've exported
an actor with a PortParameter set, and it's now in the moml and in the actor
after import. I've done a test with an actor with PortParameter set, inside a
composite, and exported and imported the composite and this worked as well.


More information about the Kepler-dev mailing list