This would enormously complicate the design.

Before going down this path, I would prefer to understand better why
an actor would care what the source of the parameter change is...
Shouldn't the actor just be told that it's parameter changed?
Why does it matter who initiated the change?

Edward


At 01:24 PM 3/21/2006, Jing Tao wrote:
Thank you, Edward.

I talked with Ilkay about this issues too. Both of us think it will be great if there is a flag in attributeChanged method. Currently this method looks like attributeChanged(Attribute attribute). Could we add a new one: attributeChanged(Attribute attribute, String resource) (resource can be another object)?

Thanks,

Jing

Jing Tao
National Center for Ecological
Analysis and Synthesis (NCEAS)
735 State St. Suite 204
Santa Barbara, CA 93101

On Tue, 21 Mar 2006, Edward A. Lee wrote:

Date: Tue, 21 Mar 2006 11:17:04 -0800
From: Edward A. Lee <[EMAIL PROTECTED]>
To: Jing Tao <[EMAIL PROTECTED]>
Cc: ptolemy-hackers@eecs.berkeley.edu
Subject: Re: AttributeChanged

There is no distinction between these.
In fact, the UI creates MoML and runs it through the MoML parser...

Edward

At 04:55 PM 3/20/2006, Jing Tao wrote:
Hi, devs:
I have a actor X and it has a attribute A. Now I am implementing the behavior of A in attributeChanged method. Unfortunately attribute A has two different behaviors, one is only for when user opens a workflow (Momlparser read A value from moml file), the other is only for when user use actor configuration panel to update A. Now I have difficuty to implement the attributeChanged method for attribute A because I couldn't find any information to tell the different change request. Could anyone point it out to me?
Thanks.
Jing
Jing Tao
National Center for Ecological
Analysis and Synthesis (NCEAS)
735 State St. Suite 204
Santa Barbara, CA 93101
----------------------------------------------------------------------------
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]


------------
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]

Reply via email to