[kepler-dev] custom actor MOML question

Paul Allen pea1 at cornell.edu
Wed Mar 11 12:53:56 PDT 2009


Could somebody explain why Kepler adds a "kepler:" prefix to the port 
names in my custom actors when I instantiate the actor by class name and 
then save the kar for that component via the Kepler GUI? That change is 
confusing some downstream tools I'm using mainly because the port names 
in the <link> section of the MOML don't use the "kepler:" prefix.

Here's the MOML from the KAR for the actor.

<?xml version="1.0"?>
<entity name="GoogleBarChart" class="ptolemy.kernel.ComponentEntity">
<property name="entityId"  value="urn:lsid:sciencepipes.org:actor:1:1" 
class="org.kepler.moml.NamedObjId"/>
<property name="class" 
value="edu.cornell.birds.is.bap.actor.GoogleBarChart" 
class="ptolemy.kernel.util.StringAttribute">
  <property name="id" value="null" 
class="ptolemy.kernel.util.StringAttribute"/>
</property>
<property name="kepler:url" class="org.kepler.moml.PortAttribute">
  <property name="direction" value="output" 
class="ptolemy.kernel.util.StringAttribute"/>
  <property name="dataType" value="string" 
class="ptolemy.kernel.util.StringAttribute"/>
  <property name="isMultiport" value="false" 
class="ptolemy.kernel.util.StringAttribute"/>
</property>
<property name="kepler:title" class="org.kepler.moml.PortAttribute">
  <property name="direction" value="input" 
class="ptolemy.kernel.util.StringAttribute"/>
  <property name="dataType" value="unknown" 
class="ptolemy.kernel.util.StringAttribute"/>
  <property name="isMultiport" value="false" 
class="ptolemy.kernel.util.StringAttribute"/>
  </property>
<property name="kepler:secondary title" 
class="org.kepler.moml.PortAttribute">
  <property name="direction" value="input" 
class="ptolemy.kernel.util.StringAttribute"/>
  <property name="dataType" value="unknown" 
class="ptolemy.kernel.util.StringAttribute"/>
  <property name="isMultiport" value="false" 
class="ptolemy.kernel.util.StringAttribute"/>
  </property>
<property name="kepler:values" class="org.kepler.moml.PortAttribute">
  <property name="direction" value="input" 
class="ptolemy.kernel.util.StringAttribute"/>
  <property name="dataType" value="unknown" 
class="ptolemy.kernel.util.StringAttribute"/>
  <property name="isMultiport" value="false" 
class="ptolemy.kernel.util.StringAttribute"/>
</property>
<property name="kepler:labels" class="org.kepler.moml.PortAttribute">
  <property name="direction" value="input" 
class="ptolemy.kernel.util.StringAttribute"/>
  <property name="dataType" value="unknown" 
class="ptolemy.kernel.util.StringAttribute"/>
  <property name="isMultiport" value="false" 
class="ptolemy.kernel.util.StringAttribute"/>
</property>

<property name="height" class="ptolemy.data.expr.Parameter" value="240">
</property>

<property name="width" class="ptolemy.data.expr.Parameter" value="240">
</property>

<property name="show zero" class="ptolemy.data.expr.Parameter" value="true">
</property>

<property name="orientation" class="ptolemy.data.expr.StringParameter" 
value="horizontal">
</property>

<property class="org.kepler.sms.SemanticType" name="semanticType00" 
value="urn:lsid:localhost:onto:1:1#ExternalGraphicalOutputActor"/>
<property class="org.kepler.sms.SemanticType" name="semanticType11" 
value="urn:lsid:localhost:onto:2:1#TextualOutput"/>


<property name="_location" class="ptolemy.kernel.util.Location" 
value="[260.0, 60.0]">
</property>


</entity>

I've attached the MOML for the model in question.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: model.xml
Type: text/xml
Size: 26177 bytes
Desc: not available
URL: <http://mercury.nceas.ucsb.edu/kepler/pipermail/kepler-dev/attachments/20090311/ba4b8b2b/attachment-0001.xml>


More information about the Kepler-dev mailing list