Scheduling is done during preinitialize in SDF, but it is also re-done in response to any structural change in the model or in response to calling invalidateSchedule() on the director. Usually, such changes should be made in an instance of ChangeRequest, issued by calling the requestChange() method on any object in the model. This ensures that such changes are made only when it is safe (between iterations of the SDF schedule). In your case, it may be sufficient to just call invalidateSchedule() in initialize().
Edward
At 10:03 AM 5/2/2005 +0200, Philippe Dumont wrote:
Hello,
I use a SDFTransformer and i set the value of "input_tokenConsumptionRate" during the initialization. There is no other way: i can not set it in the preinitialize function. But it seems that the scheduling is computed by the SDFDirector before i set the value. Is it possible to launch a new computation of the scheduling or to find a workaround to solve the problem ?
Thanks,
Philippe
---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]
------------
Edward A. Lee
Professor, Chair of the EE Division, Associate Chair of EECS
231 Cory Hall, UC Berkeley, Berkeley, CA 94720
phone: 510-642-0253 or 510-642-0455, fax: 510-642-2845
[EMAIL PROTECTED], http://ptolemy.eecs.berkeley.edu/~eal
---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]