[kepler-dev] actors with token rate via parameter

Bertram Ludaescher ludaesch at ucdavis.edu
Wed Nov 23 06:00:29 PST 2005


Hi Shawn:

Thanks. OK, I revise my question slightly: are there actors where
changing the rate is *not* a bad idea (since they were designed to
have a user-definable token consumption/production rate)? 

Bertram


>>> On Wed, 23 Nov 2005 05:54:22 -0800
>>> Shawn Bowers <sbowers at ucdavis.edu> wrote: 
SB> 
SB> Bertram,
SB> The token production and consumption rate are defined as *parameters*
SB> on a port (which is different than a "portparameter").
SB> 
SB> Therefore, you can already view these parameters, if a port has them.
SB> 
SB> Simply use the kepler/ptolemy gui, find an actor that has a token
SB> consumption/production rate assigned (e.g., the merge actor I wrote
SB> recently sets this rate programatically), right click on the port in
SB> vergil, and select the configure item.  This will show you the port's
SB> configuration parameters, including tokenConsumptionRate, etc., which
SB> you can then set.
SB> 
SB> Of course changing the rate is probably a bad idea.
SB> 
SB> -shawn
SB> 
SB> 
SB> 
SB> Bertram Ludaescher wrote:
>> Hi:
>> 
>> I was wondering whether there are some actors in Ptolemy or Kepler
>> that have *parameters* for
>> (a) the token consumption rate, and/or
>> (b) the token production rate
>> 
>> If so, I'd like to use them for instructional purposes (of SDF)
>> 
>> thanks
>> 
>> Bertram
>> 
>> PS seems like a feature that could be often useful, i.e., to expose
>> token and production rates of ports as parameters (and let the system
>> *and* user know which port rates go with which parameter..)
>> 
>> _______________________________________________
>> Kepler-dev mailing list
>> Kepler-dev at ecoinformatics.org
>> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev



More information about the Kepler-dev mailing list