[kepler-dev] Query with iteration using arrays

Podhorszki, Norbert pnorbert at ornl.gov
Sun Jan 10 20:40:55 PST 2010


Hi Harini,

Actor 1 ---
                 |== Concatenate Arrays  ---> ArrayToSequence -->
Actor 2 ---

Concatenate Arrays is the class util.ConcatenateArrays
ArrayToSequence  is the class ptolemy.domains.sdf.lib.ArrayToSequence
Must use DDF or PN director.

Best regards
Norbert

On 1/10/10 7:23 PM, "harini iyer" <harini.r.iyer at gmail.com> wrote:

Hi,

Can anyone tell me how to iterate through an array? I read the Kepler Manual but when I tried to implement it, i got stuck at this point. I am trying to create directories using the SshExecuteCmd actor. I have an array of directory names to be created. So what I want to do is for each of the array element, the SshExecuteCmd actor should create a directory (i am giving "mkdir -p" + input) as a command. I tried using the IterateOverArray actor, but it doesnt work for this particular scenario because it doesnt accept multiple actors. Can anyone suggest what I might be missing here?



More information about the Kepler-dev mailing list