Bug #5662
closedresurgence ArrayAccumulator is a duplicate of Ptolemy ArrayAccumulate
0%
Description
./actors/src/org/resurgence/actor/ArrayAccumulator.java
Duplicate of ptolemy/src/ptolemy/actor/lib/ArrayAccumulate.java
Kepler has ArrayAccumulator.java and Ptolemy has ArrayAccumulate.
The Kepler version has an input port named "array", the Ptolemy version has an input named "input"
The Kepler version has a parameter named "separator", the Ptolemy version does not have separator
FIXME: See about adding support for separator to the Ptolemy version.
Add tests.
Update the Kepler Backward compatibility filter to use "input" instead of "array"
Updated by Derik Barseghian about 12 years ago
These actors do different things. Kepler's was poorly named; I renamed ArrayAccumulator to Array To String, added the filter, etc at r30699.
Kepler ArrayAccumulator
----
* This actor reads an array and writes a string with all the elements. The
* characters separating the entries can be specified as a parameter.
Example output in SDF w/ 2 iterations:
onetwothree
onetwothree
Ptolemy ArrayAccumulate
---
An actor that accumulates input arrays into a growing array that
includes the contents of all input arrays. Upon firing, this actor reads
an input array, appends it to the accumulating array, and outputs
the new array. The length of the output array grows by the size
of the input array on each firing.
Example output in SDF w/ 2 iterations: {"one", "two", "three"} {"one", "two", "three", "one", "two", "three"}