Search for "Parameter", drag it in, rename it to
"enableBackwardTypeInference" and set the value to "true".
Unfortunately, Kepler does not have the model-specfic context menu that
allows one to add a parameter by right clicking on the background,
There is probably a bug here to be reported, which I will do now.
_Christopher
On 10/22/13 4:20 PM, Jose Borreguero wrote:
Dear Kepler users,
I have downloaded and ran suite 'kepler' from the repository (I end
upt with kepler version 'trunk'). I can't find out how to set the
enableBackwardTypeInference parameter for a given actor. I just can't
find this parameter!
I right-click on the actor canvas but none of the offered menu-options
seems to have the enableBackwardTypeInference (see attached image or
link to http://tinypic.com/r/2ypknwn/5 to see the options-menu I get)
Sounds like a stupid question, but I am baffled here.
-Jose
_______________________________________________
Kepler-users mailing list
Kepler-users@kepler-project.org
http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users
--
Christopher Brooks, PMP University of California
Academic Program Manager & Software Engineer US Mail: 337 Cory Hall
CHESS/iCyPhy/Ptolemy/TerraSwarm Berkeley, CA 94720-1774
c...@eecs.berkeley.edu, 707.332.0670 (Office: 545Q Cory)
<?xml version="1.0" standalone="no"?>
<!DOCTYPE entity PUBLIC "-//UC Berkeley//DTD MoML 1//EN"
"http://ptolemy.eecs.berkeley.edu/xml/dtd/MoML_1.dtd">
<entity name="ExpressionEvaluatorBackwardsWithToplevelParameter" class="org.kepler.moml.CompositeClassEntity">
<property name="_createdBy" class="ptolemy.kernel.attributes.VersionAttribute" value="10.0.devel">
</property>
<property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org/ns/:30795:24:8">
</property>
<property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.TypedCompositeActor">
<property name="id" class="ptolemy.kernel.util.StringAttribute" value="null">
</property>
</property>
<property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList">
</property>
<property name="enableBackwardTypeInference" class="ptolemy.data.expr.Parameter" value="true">
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Neil Smyth, Edward A. Lee, Xiaojun Liu</configure></property>
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>$Id: Parameter.xml 30507 2012-08-22 23:51:26Z crawl $</configure></property>
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure> <p>Parameter extends Variable with additional support for string-valued variables that makes these friendlier at the user interface level. In particular, this class supports an annotation that specifies choices for values. A user interface can use this to present a choice dialog that offers the specified values. This is typically used when a particular set of choices make sense. The values can be any expression, or if used in conjunction with string mode, any string.</p> <p> By default, an instance of Parameter, unlike Variable, is persistent.</p> <p> By convention, an instance of NamedObj has a set of attributes, some of which are visible to users and some of which are not. When a user interface presents these attributes for editing, it presents only those that are visible. By default, an instance of Parameter is visible, as indicated by the fact that it returns FULL in its getVisibility() method. This can be overridden by calling setVisibility().</p></configure></property>
</property> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org/ns/:30795:25:1">
</property>
<property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.data.expr.Parameter">
<property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:1184:1">
</property>
</property>
<property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#Parameter">
</property>
<property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#Parameter">
</property>
<property name="_hideName" class="ptolemy.kernel.util.SingletonAttribute">
</property>
<property name="_icon" class="ptolemy.vergil.icon.ValueIcon">
<property name="_color" class="ptolemy.actor.gui.ColorAttribute" value="{0.0, 0.0, 1.0, 1.0}">
</property>
</property>
<property name="_smallIconDescription" class="ptolemy.kernel.util.SingletonConfigurableAttribute">
<configure>
<svg>
<text x="20" style="font-size:14; font-family:SansSerif; fill:blue" y="20">-P-</text>
</svg>
</configure>
</property>
<property name="_editorFactory" class="ptolemy.vergil.toolbox.VisibleParameterEditorFactory">
</property>
<property name="_location" class="ptolemy.kernel.util.Location" value="[225.0, 200.0]">
</property>
<property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org:actor:420:1">
</property>
</property>
<property name="SDF Director" class="ptolemy.domains.sdf.kernel.SDFDirector">
<property name="iterations" class="ptolemy.data.expr.Parameter" value="UNBOUNDED">
</property>
<property name="_location" class="ptolemy.kernel.util.Location" value="[65.0, 245.0]">
</property>
</property>
<property name="ShowTypes" class="ptolemy.vergil.actor.lib.ShowTypes">
<property name="_location" class="ptolemy.kernel.util.Location" value="[210.0, 230.0]">
</property>
</property>
<property name="Annotation" class="ptolemy.vergil.kernel.attributes.TextAttribute">
<property name="textColor" class="ptolemy.actor.gui.ColorAttribute" value="{0.0,0.0,0.0,1.0}">
</property>
<property name="text" class="ptolemy.kernel.util.StringAttribute" value="Enabling backward type inference allows type constraints to propagate upstream. Right click on the background and select Customize->Configure to see that backward type inference is enabled.">
</property>
<property name="_location" class="ptolemy.kernel.util.Location" value="[0.0, 375.0]">
</property>
</property>
<property name="_windowProperties" class="ptolemy.actor.gui.WindowPropertiesAttribute" value="{bounds={502, 280, 941, 687}, maximized=false}">
</property>
<property name="_vergilSize" class="ptolemy.actor.gui.SizeAttribute" value="[600, 538]">
</property>
<property name="_vergilZoomFactor" class="ptolemy.data.expr.ExpertParameter" value="1.0">
</property>
<property name="_vergilCenter" class="ptolemy.data.expr.ExpertParameter" value="{290.0, 259.0}">
</property>
<entity name="InteractiveShell" class="ptolemy.actor.lib.gui.InteractiveShell">
<property name="_windowProperties" class="ptolemy.actor.gui.WindowPropertiesAttribute" value="{bounds={175, 327, 654, 366}, maximized=false}">
</property>
<doc>Produce strings from an interactive shell on the screen</doc>
<property name="_location" class="ptolemy.kernel.util.Location" value="[125.0, 330.0]">
</property>
</entity>
<entity name="SampleDelay" class="ptolemy.domains.sdf.lib.SampleDelay">
<property name="initialOutputs" class="ptolemy.data.expr.Parameter" value="{"Enter an expression"}">
</property>
<property name="displayWidth" class="ptolemy.data.expr.Parameter" value="20">
</property>
<property name="_icon" class="ptolemy.vergil.icon.BoxedValueIcon">
<property name="attributeName" class="ptolemy.kernel.util.StringAttribute" value="initialOutputs">
</property>
<property name="displayWidth" class="ptolemy.data.expr.Parameter" value="displayWidth">
</property>
</property>
<property name="_location" class="ptolemy.kernel.util.Location" value="[460.0, 330.0]">
</property>
</entity>
<entity name="ExpressionToToken" class="ptolemy.actor.lib.conversions.ExpressionToToken">
<property name="_location" class="ptolemy.kernel.util.Location" value="[245.0, 330.0]">
</property>
</entity>
<relation name="relation" class="ptolemy.actor.TypedIORelation">
<property name="_layoutHint" class="ptolemy.vergil.basic.layout.kieler.LayoutHint" value="{ { head={id="InteractiveShell.input",x=160.0,y=140.0}, tail={id="SampleDelay.output",x=495.0,y=140.0}, points={50.0,130.0,50.0,95.0,610.0,95.0,610.0,140.0} } }">
</property>
</relation>
<relation name="relation2" class="ptolemy.actor.TypedIORelation">
<property name="_layoutHint" class="ptolemy.vergil.basic.layout.kieler.LayoutHint" value="{ { head={id="InteractiveShell.output",x=160.0,y=140.0}, tail={id="ExpressionToToken.input",x=280.0,y=140.0}, points={} } }">
</property>
</relation>
<relation name="relation3" class="ptolemy.actor.TypedIORelation">
<property name="_layoutHint" class="ptolemy.vergil.basic.layout.kieler.LayoutHint" value="{ { head={id="SampleDelay.input",x=495.0,y=140.0}, tail={id="ExpressionToToken.output",x=280.0,y=140.0}, points={} } }">
</property>
</relation>
<link port="InteractiveShell.input" relation="relation"/>
<link port="InteractiveShell.output" relation="relation2"/>
<link port="SampleDelay.input" relation="relation3"/>
<link port="SampleDelay.output" relation="relation"/>
<link port="ExpressionToToken.input" relation="relation2"/>
<link port="ExpressionToToken.output" relation="relation3"/>
</entity>
_______________________________________________
Kepler-users mailing list
Kepler-users@kepler-project.org
http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users