<p dir="ltr">It works much differently in Kepler.  We index actors against the ontology categories, and none of it is in the Configuration.  I don't remeber if there is an external API, but there is an internal class representing the library. I'd have to poke around to remember.</p>

<p dir="ltr">Matt<br>
</p>
<div class="gmail_quote">On Sep 14, 2013 10:42 AM, "Michal Owsiak" <<a href="mailto:michalo@man.poznan.pl">michalo@man.poznan.pl</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for the info.<br>
<br>
I will take a look at this and let you know whether this solves my issue.<br>
<br>
Cheers<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Michal,<br>
<br>
I know how it is done in Ptolemy II, and the same techniques should work<br>
with Kepler.<br>
<br>
The set of actors that are available are determined by<br>
ptolemy.actor.gui.<u></u>Configuration.<br>
<br>
If a model is running in a system that has a Configuration, then to get<br>
the Configuration:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p>To access the configuration from a random place, if you have a<br>
 NamedObj <code>foo</code>, then you can call:<br>
 <pre><br>
 Effigy effigy = Configuration.findEffigy(foo.<u></u>toplevel());<br>
 Configuration configuration = effigy.toplevel();<br>
 </pre><br>
</blockquote>
<br>
Configuration.check() traverses the configuration for various tests,<br>
below are some fragments from it:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
        // Check TypedAtomicActors and Attributes<br>
        Iterator containedObjects = deepNamedObjList().iterator();<br>
        while (containedObjects.hasNext()) {<br>
            NamedObj containedObject = (NamedObj)<br>
containedObjects.next();<br>
</blockquote>
Or, to get just the composites:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
for (CompositeEntity composite : deepCompositeEntityList()) {<br>
</blockquote>
<br>
or<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
        // Check atomic actors for clone problems related to types<br>
        List entityList = allAtomicEntityList();<br>
        Iterator entities = entityList.iterator();<br>
        while (entities.hasNext()) {<br>
            Object entity = entities.next();<br>
            if (entity instanceof TypedAtomicActor) {<br>
</blockquote>
<br>
See ptolemy/configs/test/<u></u>allConfigs.tcl for tests that read the various<br>
configurations and perform tests on them.<br>
<br>
See<br>
<a href="https://kepler-project.org/developers/reference/what-happens-when-kepler-starts-up" target="_blank">https://kepler-project.org/<u></u>developers/reference/what-<u></u>happens-when-kepler-starts-up</a><br>
for information about how Kepler starts up and which configuration is read.<br>
<br>
There is a chance that Kepler's database adds actors that are not<br>
accessible via the configuration.<br>
<br>
<br>
_Christopher<br>
<br>
<br>
<br>
On 9/13/13 1:45 AM, Michal Owsiak wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I have question regarding the list of actors available inside<br>
particular Kepler installation.<br>
<br>
Let's assume that I have Kepler installation (default one) and I want<br>
to list all the actors that are available inside Kepler (the list you<br>
can see on the left where actors can be searched for).<br>
<br>
Is there any way to retrieve this list? Is there any Kepler API for<br>
this task? Can I find this information inside Kepler's DB or inside<br>
cache system?<br>
<br>
Thanks in advance for the info.<br>
<br>
Michal<br>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Kepler-dev mailing list<br>
<a href="mailto:Kepler-dev@kepler-project.org" target="_blank">Kepler-dev@kepler-project.org</a><br>
<a href="http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev" target="_blank">http://lists.nceas.ucsb.edu/<u></u>kepler/mailman/listinfo/<u></u>kepler-dev</a><br>
</blockquote></div>