[kepler-dev] Determining parent workflow from the actor
Christopher Brooks
cxh at eecs.berkeley.edu
Fri May 21 08:58:29 PDT 2010
http://ptolemy.eecs.berkeley.edu/ptolemyII/ptII8.0/ptII/doc/codeDoc/ptolemy/kernel/util/NamedObj.html#toplevel%28%29
Usually, Actors are contained by TypedCompositeActors.
TypedCompositeActors are in Workspaces. Actors, TypedComposites
and Workspaces have names that are dot separated.
A TypedCompositeActor also has a _uri that is assigned by MoMLParser.
Effigies have identifiers as well.
BTW - There seem to be a number of questions about "How do I?" about
accessing Ptolemy data structures.
The Ptolemy Design Doc has this information, see
http://ptolemy.eecs.berkeley.edu/ptolemyII/designdoc.htm
The kernel chapter of volume 2 does not specifically mention the
toplevel() method in the text, but you might find it valuable.
Information about MoML is in volume 1.
_Christopher
On 5/21/10 1:59 AM, Michal Owsiak wrote:
> Hello all,
>
> I have a question related to accessing actor's parent workflow.
>
> I'd like to identify the workflow that contains given actor. I'd like to
> get some unique ID or anything else that will let me distinguish between
> various workflows from the actor's perspective.
>
> Is it possible to get this kind of information?
>
> Thanks in advance for the support
>
> Cheers
>
> Michal
>
--
Christopher Brooks, PMP 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 cell: 707.332.0670
More information about the Kepler-dev
mailing list