[kepler-dev] Can "stop" interrupt "initialize()"

Edward A. Lee eal at eecs.berkeley.edu
Wed Feb 1 13:47:53 PST 2006


At 12:14 PM 2/1/2006, Kevin Ruland wrote:
>My big question is what changes need to be through a ChangeRequest 
>and if there are any exceptions, e.g. When I'm in an 
>attributeChanged() method, do I need to queue a ChangeRequest?

The safe answer is that anything that changes the structure
of the model should go through a ChangeRequest.

But yes, there are exceptions.  If all the code is well-behaved
(follows the above policy), then some methods (such as attributeChanged())
will be called only from within the _execute() method of a ChangeRequest.
But to know when you can use these exceptions is tricky...  Best
to just use ChangeRequest.

Edward


------------
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
eal at eecs.Berkeley.EDU, http://ptolemy.eecs.berkeley.edu/~eal  



More information about the Kepler-dev mailing list