[kepler-dev] token consumption rates: where art thou?

Stephen Andrew Neuendorffer neuendor at eecs.berkeley.edu
Wed May 12 10:00:33 PDT 2004


Actors declare their token consumption and production rates using 
parameters of the appropriate ports.
(look at any actor in sdf/lib for examples)
If no declarations are present, then the SDF director assumes that the 
actor consumes and produces
exactly one token each firing.

(This is documented in the SDF chapter of the design doc more completely.)

This was chosen because it matches nicely the 'domain polymorphic' notion 
of a component which
consumes no more than one token per firing, allowing domain polymorphic 
actors to be used in SDF
without modification.  The downside is that actors which consume varying 
numbers of tokens also
don't advertise their token rates, and the potential exists to use them 
incorrectly.  Caveat User.

Steve

At 09:51 AM 5/12/2004, Bertram Ludaescher wrote:

>Hi Keplerites and Ptolemites:
>
>I might have asked this before, but who knows where the tolken
>consumption rates of actors are stored?
>
>Eg. How does SDF figure out whether an actor is "SDF-compatible"?
>
>I guess it's not in the MOML file but somewhere in the Java code, or
>rather the retrun result of a method a la "tell me your consumption
>rate"...
>
>thx
>
>Bertram
>
>_______________________________________________
>kepler-dev mailing list
>kepler-dev at ecoinformatics.org
>http://www.ecoinformatics.org/mailman/listinfo/kepler-dev





More information about the Kepler-dev mailing list