knowledge-database (beta)

Current group: comp.soft-sys.ptolemy

SequenceToArray in PN

SequenceToArray in PN  
xiaowen
From:xiaowen
Subject:SequenceToArray in PN
Date:Mon, 13 Dec 2004 20:13:24 -0800

--Apple-Mail-2-136352496
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed

Hi Everyone,


Is the SequenceToArray actor meant to be used in the PN domain? I've
attached a workflow that demonstrates behavior that I don't understand.

A SequenceToArray actor has two ports: input and arrayLength. It
should package up arrayLength number of input tokens into an array and
send that out along its output port.

In the attached workflow, I send 7, then 2 to the arrayLength port.
However, the output consists of two array tokens both with length 7.

Can someone please explain to me why the second output isn't an array
of length 2?

I'm using Ptolemy 4.0.1.


Thanks in advance!
Xiaowen


--Apple-Mail-2-136352496
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="TestSeq2Array.xml"
Content-Disposition: attachment;
filename=TestSeq2Array.xml


"http://ptolemy.eecs.berkeley.edu/xml/dtd/MoML_1.dtd">






















Create a sequence of tokens with increasing value


















































































--Apple-Mail-2-136352496--


----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: ptolemy-hackers-request@ptolemy.eecs.berkeley.edu
   

Copyright © 2006 knowledge-database   -   All rights reserved