Hi ,

I am working on Ptolemy II for last few months for one of our projects.I had 
one query related to vergil and would really appreciate if you could asnwer my 
query.

We have defined our own actors in Ptolemy and we have also designed icons for 
each of the actors. I know that the icon information is automatically picked up 
from <actorNmae>Icon.xml. I want to change this icon at run time based on some 
configuration parameter. So, for example, I take the case of memory. If it is 
selected as DDR, I want to choose one icon and if it is eSRAM I want to change 
the icon at run time. I was not able to find out a way to do that.

I tried using _attachText() but using that I cannot display the parameters 
value on the icon just like the arraylength is displayed on the ArrayToSequence 
actor. I even tried using MoMlParser but somehow could not update the icon. May 
be I am missing something.

Could you please let me know if there is a way to do that. I want to keep two 
sets of files <actorNmae>Icon1.xml and <actorNmae>Icon2.xml and choose between 
the two at run time.

Thanks a lot for your help in advance.

Thanks & Regards,
Sapan Agarwal



----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to