Project

General

Profile

Actions

Bug #5662

closed

resurgence ArrayAccumulator is a duplicate of Ptolemy ArrayAccumulate

Added by Christopher Brooks over 12 years ago. Updated over 12 years ago.

Status:
Resolved
Priority:
Normal
Category:
actors
Target version:
Start date:
08/06/2012
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5662

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"

Actions #1

Updated by Derik Barseghian over 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"}

Actions #2

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 5662

Actions

Also available in: Atom PDF