[kepler-users] string constant actor and loop problem
Edward A. Lee
eal at eecs.berkeley.edu
Wed Jul 11 12:32:53 PDT 2007
I have gone ahead and implemented this in the Ptolemy II tree.
The Const actor now extends LimitedFiringSource, which has a firingCountLimit
parameter that defaults to NONE. If you set it to a positive integer,
then after the specified number of firings, postfire() returns false
and the actor is not fired any more. Since StringConst extends Const,
it also inherits this feature.
Edward
At 09:27 AM 7/9/2007, Dan Higgins wrote:
>Edward,
> I think that is a great idea. I tried to point out that having two StringConstant actors is confusing some time ago (we also have 2 Constant actors in Kepler), but didn't get much support for getting rid of one. Are there any users out there who think having 2 actors is a good idea?
>
>Dan
>
>
>---
>
>
>
>Edward A. Lee wrote:
>>Rather than having two actors (which can be confusing) wouldn't
>>it be better to simply augment StringConst (or better yet, its
>>base class, Const) with parameter firingCountLimit? Some actors
>>have this parameter... This could be used to limit the actor to
>>one firing.
>>
>>Edward
>>
>>
>>At 08:18 AM 7/3/2007, Dan Higgins wrote:
>>
>>>Hi,
>>> It is not clear to me from your description exactly what your problem is. One possibility may be related to the Director your workflow is using (PN or SDF) and the fact that there are two types of String Constant actors (one is called 'String Constant' and the other is 'Permanent String Constant'). The one named 'Permanent String Constant' will repeatedly output a string, while the other only output a string once. You might try changing the one you are using. (Also, it might be useful in the future if you could include an example workflow with any questions).
>>>
>>>Dan Higgins
>>>NCEAS - UCSB
>>>
>>>[BE] Ufuk Utku Turuncoglu wrote:
>>>
>>>>Hi,
>>>>
>>>>I try to iterate a workflow which contains some string operations such as string replace and accumulator. So, i need to input a string constant to string accumulator actor. In this case the workflow is not continue/iterate. When i delete the string constant actor the workflow is working successfully. How can i iterate this kind of workflow? Is it neccecary to add an extra actor that send dummy argument to trigger port of the string constant actor?
>>>>
>>>>best regards,
>>>>
>>>>Ufuk Utku Turuncoglu
>>>>ITU, Informatics Institute
>>>>Computational Science and Engineering Programme
>>>>_______________________________________________
>>>>Kepler-users mailing list
>>>>Kepler-users at ecoinformatics.org
>>>>http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users
>>>>
>>>>
>>>>
>>>_______________________________________________
>>>Kepler-users mailing list
>>>Kepler-users at ecoinformatics.org
>>>http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users
>>>
>>
>>------------ Edward A. Lee
>>Chair of EECS and Robert S. Pepper Distinguished Professor
>>231 Cory Hall, UC Berkeley, Berkeley, CA 94720-1770
>>phone: 510-642-0253, fax: 510-642-2845
>>eal at eecs.Berkeley.EDU, http://ptolemy.eecs.berkeley.edu/~eal
>>
>>
>>
>
>
>--
>*******************************************************************
>Dan Higgins higgins at nceas.ucsb.edu
>http://www.nceas.ucsb.edu/ Ph: 805-893-5127
>National Center for Ecological Analysis and Synthesis (NCEAS) Marine Science Building - Room 3405
>Santa Barbara, CA 93195
>*******************************************************************
>
>
------------
Edward A. Lee
Chair of EECS and Robert S. Pepper Distinguished Professor
231 Cory Hall, UC Berkeley, Berkeley, CA 94720-1770
phone: 510-642-0253, fax: 510-642-2845
eal at eecs.Berkeley.EDU, http://ptolemy.eecs.berkeley.edu/~eal
More information about the Kepler-users
mailing list