[kepler-users] Using IterateOverArray with SSH2Exec
Matt Jones
jones at nceas.ucsb.edu
Fri May 19 12:39:17 PDT 2006
Mohana,
I'm going to speculate here a little bit, but it might help. Hopefully
I'm not too far off base.
You are trying to modify the ports for an actor. Ports can be defined
in one of two ways, either as predefined ports in the Java code for the
actor, or as additional ports that are defined in the MoML for an actor.
When you are configuring an actor's ports in the dialog, it shows
both, but you really can only delete the ones defined in MoML, as there
is no way to save your changes to the Java code. So, when you remove
the port, it is removing it from the in-memory actor that is loaded,
then you save the moml and all seems well. But you didn't actually
change the compiled java class that creates the actor. So when you
reopen the actor, it instantiates the IterateOverArray actor and the
java code creates the port again -- even though it seemed like you
deleted it before.
We've run into a number of issues of this sort. The MoML saved for an
actor is not a complete description of that actor, and this causes a
number of problems as you have experienced. It would be nice to have a
solution to this, but for now I do not.
Matt
Mohana Ramaratnam wrote:
> Hello,
>
> I wanted to "batch" execute a series of commands and so I designed a
> workflow with the ptolemy.actors.lib.hoc.IterateOverArray and SSH2Exec.
> The problem that I face is with SSH2Exec.identity port. IterateOverArray
> requires every input port to be set as an array and the way I got things
> working was by removing the identity port. I clicked on apply and
> commit. I expect that commit would save my settings so that when next
> time I load the workflow xml or the compositeActor created these
> settings will be applied. This doesnt seem to be the case.
>
> So my question is how is commit different from apply in the configure
> ports dialog box?
>
> Mohana
> _______________________________________________
> Kepler-users mailing list
> Kepler-users at ecoinformatics.org
> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Matt Jones Ph: 907-789-0496
jones at nceas.ucsb.edu SIP #: 1-747-626-7082
National Center for Ecological Analysis and Synthesis (NCEAS)
UC Santa Barbara http://www.nceas.ucsb.edu/ecoinformatics
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the Kepler-users
mailing list