Hi Ufuk, So you want an actor that performs an operation, yet does not fire?
You could try doing some of this work in one of the earlier stages that occurs before firing, such as prefire(). However, there could be issues involving determinancy and endless loops. Parameter evaluation is Ptolemy tries to be lazy, so it might work out ok. Try looking at ptolemy.actor.parameters.SharedParameter ptolemy.actor.parameters.ParameterSet and ptolemy.actor.lib.SetVariable You should also look around for references to ScopeExtendingAttributes. To check if a TypedCompositeEntity has an entity by name, use ptolemy.kernel.CompositeEntity.getEntity(String) To check for a entity of a particular class, see ptolemy.kernel.CompositeEntity.entityList(Class) For further information about traversing a workflow, see volume 2 of the design doc http://ptolemy.berkeley.edu/ptolemyII/designdoc.htm See especially chapter 1, which covers the kernel. _Christopher Ufuk Utku Turuncoglu wrote: > Hi, > > I design an actor (let's say actorA) that creates its parameters > automatically after reading a XML file which is created by another actor > (for example, actorB). So, the creation of parameter fields of actorA is > depend on actorB. In this case i just want to send location of XML file > from actorB to actorA without running workflow. Is there any method to > define global variable which can be read by actors in same container? > and also How can i check the workflow container that has a specific > actor or not? > > ps: I plan to create XML file after dropping actorB into workflow. So, > the XML file will be available when drooping actorA. > > Thanks, > > --ufuk > _______________________________________________ > Kepler-users mailing list > Kepler-users at kepler-project.org > http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users -- Christopher Brooks (cxh at eecs berkeley edu) University of California CHESS Executive Director US Mail: 337 Cory Hall Programmer/Analyst CHESS/Ptolemy/Trust Berkeley, CA 94720-1774 ph: 510.643.9841 fax:510.642.2718 (Office: 545Q Cory) home: (F-Tu) 707.665.0131 (W-F) 510.655.5480