[kepler-dev] Bug 4549: String Replace actor "remembers" previous execution values

Oliver Soong soong at nceas.ucsb.edu
Thu Jan 14 11:21:36 PST 2010


When PortParameters are attached on the port, but no token arrives,
what are they supposed to send?  I'm under the impression that
attached ports aren't always guaranteed to receive a token, but I may
be mistaken.

Oliver


On Thu, Jan 14, 2010 at 10:12 AM, ben leinfelder
<leinfelder at nceas.ucsb.edu> wrote:
> Christopher -
> You're right that the problem arises because RExpression does not always
> produce a token on the graphicsFileName output port. Should it?
> If that's the case then we can forget about any changes to StringReplace.
> I'd rather not be mucking around in there anyway.
> -ben
>
> On Jan 14, 2010, at 10:03 AM, Christopher Brooks wrote:
>
>> Hi Ben,
>> On http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4549
>> I think the problem might be that RExpression is not producing
>> data every time it is fired?  This would make it
>> difficult to use RExpression in SDF.  I'm not sure about this
>> though.
>>
>> The issue is that StringReplace has port parameters, so
>> it can be used as a source with no inputs.
>>
>> Try running $PTII/ptolemy/actor/lib/string/test/auto/StringReplace2.xml
>> with your changes.
>>
>> I just backed out your changes because they break that test.
>> Sorry about that, but I'm in the process of building test releases
>> and don't want regressions right now.
>>
>> I believe that there is this generic issue with RExpression and
>> any actor that has PortParameters.
>>
>> I'm focussing on other things right now, but if you could create
>> a simple demo that illustrates the problem that does not use
>> RExpression, then we might get some traction here.
>>
>> _Christopher
>> --
>> Christopher Brooks, PMP                       University of California
>> CHESS Executive Director                      US Mail: 337 Cory Hall
>> Programmer/Analyst CHESS/Ptolemy/Trust        Berkeley, CA 94720-1774
>> ph: 510.643.9841 fax:510.642.2718             (Office: 545Q Cory)
>> home: (F-Tu) 707.665.0131 cell: 707.332.0670
>
> _______________________________________________
> Kepler-dev mailing list
> Kepler-dev at kepler-project.org
> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
>



-- 
Oliver Soong
Donald Bren School of Environmental Science & Management
University of California, Santa Barbara
Santa Barbara, CA 93106-5131
805-893-7044 (office)
610-291-9706 (cell)


More information about the Kepler-dev mailing list