icyphy / ptII

Ptolemy II is an open-source software framework supporting experimentation with actor-oriented design.
https://ptolemy.eecs.berkeley.edu/ptolemyII
Other
98 stars 43 forks source link

Ports not being cleared in PtalonActor #191

Open cxbrooks opened 15 years ago

cxbrooks commented 15 years ago

Note: the issue was created automatically with bugzilla2github tool

Original bug ID: BZ#302 From: Adam Cataldo <adam.cataldo@agilent.com> Reported version: 7.0 CC: pt-dev@chess.eecs.berkeley.edu

cxbrooks commented 15 years ago

To reproduce:

1) Create a file called Foo.ptln with the following body:

Foo is { parameter n;

for i initially [[0]] [[i < n]] {
    outport output[[i]];
} next [[i + 1]]

}

2) In Vergil, drag out a PtalonActor.

3) Select the ptalonCodeLocation to point to Foo.ptln.

4) Set the parameter n to 5. Five output ports will be produced, named output0, output1, ..., output4.

5) Change n to 6. Now, there is a new output port output5.

6) Change n to 3. There are still 6 output ports.