[kepler-dev] [Bug 5655] sdm spa Repeat is a duplicate of a Ptolemy actor
bugzilla-daemon at ecoinformatics.org
bugzilla-daemon at ecoinformatics.org
Tue Aug 7 14:12:09 PDT 2012
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5655
Christopher Brooks <cxh at eecs.berkeley.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Hours Worked| |0.15
Estimated Hours|1.5 |2.5
--- Comment #2 from Christopher Brooks <cxh at eecs.berkeley.edu> 2012-08-07 14:12:09 PDT ---
Kepler actors/src/org/sdm/spa/Repeat.java has:
public TypedIOPort portOutput;
public TypedIOPort portInput;
public TypedIOPort portNum;
Ptolemy sdf/lib/Repeat has:
/** The repetition factor. It is of type integer and has a default
* value of 2. It must be greater than zero.
*/
public Parameter numberOfTimes;
/** The number of tokens in a block. It is of type integer and has a
* default value of 1. It must be greater than zero.
*/
public Parameter blockSize;
input and output ports from SDFTransformer
The way I would handle is to modify Ptolemy's sdf/lib/Repeat.java so that
numberOfTimes is a PortParmeter. See actor/lib/Ramp.java for an example.
Basically, with PortParameters, the update() method should be called once.
Then, modify the Kepler moml/filter classes to change the name of the actor
and the name of the ports. There could be some trickyness here, you probably
want to change the name of the ports first.
--
Configure bugmail: http://bugzilla.ecoinformatics.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
More information about the Kepler-dev
mailing list