Project

General

Profile

Bug #3915 » parameter exception.xml

jianwu jianwu, 03/23/2009 05:12 PM

 
1
<?xml version="1.0" standalone="no"?>
2
<!DOCTYPE entity PUBLIC "-//UC Berkeley//DTD MoML 1//EN"
3
    "http://ptolemy.eecs.berkeley.edu/xml/dtd/MoML_1.dtd">
4
<entity name="parameter exception" class="ptolemy.actor.TypedCompositeActor">
5
    <property name="_createdBy" class="ptolemy.kernel.attributes.VersionAttribute" value="7.2.devel">
6
    </property>
7
    <property name="p1" class="ptolemy.data.expr.StringParameter" value="/">
8
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
9
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
10
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Edward A. Lee</configure></property>
11
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
12
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>&lt;p&gt;StringParameter specifies a persistent string. &lt;/p&gt;&#10;&#10;&lt;p&gt;Change the name of the StringParameter to better identify the specified value (right-click the parameter and select &quot;Customize Name&quot; from the menu). Other actors may refer to the StringParameter using the $NAME syntax (e.g. $Parameter).&#10;&lt;/p&gt;</configure></property>
13
</property>        <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:actor:421:1">
14
        </property>
15
        <property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.data.expr.StringParameter">
16
            <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:1185:1">
17
            </property>
18
        </property>
19
        <property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#Parameter">
20
        </property>
21
        <property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#Parameter">
22
        </property>
23
        <property name="_hideName" class="ptolemy.kernel.util.SingletonAttribute">
24
        </property>
25
        <property name="_icon" class="ptolemy.vergil.icon.ValueIcon">
26
            <property name="_color" class="ptolemy.actor.gui.ColorAttribute" value="{1.0, 0.0, 0.0, 1.0}">
27
            </property>
28
        </property>
29
        <property name="_smallIconDescription" class="ptolemy.kernel.util.SingletonConfigurableAttribute">
30
            <configure>
31
        <svg>
32
          <text x="20" style="font-size:14; font-family:SansSerif; fill:red" y="20">-S-</text>
33
        </svg>
34
      </configure>
35
        </property>
36
        <property name="_editorFactory" class="ptolemy.vergil.toolbox.VisibleParameterEditorFactory">
37
        </property>
38
        <property name="_location" class="ptolemy.kernel.util.Location" value="{380, 305}">
39
        </property>
40
    </property>
41
    <property name="_windowProperties" class="ptolemy.actor.gui.WindowPropertiesAttribute" value="{bounds={-4, -4, 1408, 1021}, maximized=true}">
42
    </property>
43
    <property name="_vergilSize" class="ptolemy.actor.gui.SizeAttribute" value="[1126, 840]">
44
    </property>
45
    <property name="_vergilZoomFactor" class="ptolemy.data.expr.ExpertParameter" value="1.0">
46
    </property>
47
    <property name="_vergilCenter" class="ptolemy.data.expr.ExpertParameter" value="{563.0, 420.0}">
48
    </property>
49
    <entity name="CompositeActor1" class="ptolemy.actor.TypedCompositeActor">
50
        <property name="_createdBy" class="ptolemy.kernel.attributes.VersionAttribute" value="7.2.devel">
51
        </property>
52
        <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:actor:449:1">
53
        </property>
54
        <property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.TypedCompositeActor">
55
            <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:449:1">
56
            </property>
57
        </property>
58
        <property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#Actor">
59
        </property>
60
        <property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#GeneralPurpose">
61
        </property>
62
        <property name="semanticType22" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#Workflow">
63
        </property>
64
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
65
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
66
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Yuhong Xiong</configure></property>
67
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
68
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>&lt;p&gt;A Composite actor is an aggregation of actors. It may have a local director that is responsible for executing the contained actors. A Composite actor with a local director is called an opaque actor. Composite actors do not require a local director. Composite actors with no local director &quot;inherit&quot; the director from the containing workflow and are called non-opaque.&lt;/p&gt;&#10;&#10;&lt;p&gt;To create a composite actor, drag and drop the Composite actor onto the Workflow canvas. Right-click the actor and select Open Actor from the drop-down menu. A new Kepler application window will open for designing the composite.&lt;/p&gt;</configure></property>
69
</property>        <property name="_location" class="ptolemy.kernel.util.Location" value="{255, 460}">
70
        </property>
71
        <entity name="CompositeActor2" class="ptolemy.actor.TypedCompositeActor">
72
            <property name="_createdBy" class="ptolemy.kernel.attributes.VersionAttribute" value="7.2.devel">
73
            </property>
74
            <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:actor:449:1">
75
            </property>
76
            <property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.TypedCompositeActor">
77
                <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:449:1">
78
                </property>
79
            </property>
80
            <property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#Actor">
81
            </property>
82
            <property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#GeneralPurpose">
83
            </property>
84
            <property name="semanticType22" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#Workflow">
85
            </property>
86
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
87
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
88
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Yuhong Xiong</configure></property>
89
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
90
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>&lt;p&gt;A Composite actor is an aggregation of actors. It may have a local director that is responsible for executing the contained actors. A Composite actor with a local director is called an opaque actor. Composite actors do not require a local director. Composite actors with no local director &quot;inherit&quot; the director from the containing workflow and are called non-opaque.&lt;/p&gt;&#10;&#10;&lt;p&gt;To create a composite actor, drag and drop the Composite actor onto the Workflow canvas. Right-click the actor and select Open Actor from the drop-down menu. A new Kepler application window will open for designing the composite.&lt;/p&gt;</configure></property>
91
</property>            <property name="_location" class="ptolemy.kernel.util.Location" value="{205, 205}">
92
            </property>
93
            <property name="p2" class="ptolemy.data.expr.StringParameter" value="$p1/l">
94
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
95
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
96
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Edward A. Lee</configure></property>
97
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
98
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>&lt;p&gt;StringParameter specifies a persistent string. &lt;/p&gt;&#10;&#10;&lt;p&gt;Change the name of the StringParameter to better identify the specified value (right-click the parameter and select &quot;Customize Name&quot; from the menu). Other actors may refer to the StringParameter using the $NAME syntax (e.g. $Parameter).&#10;&lt;/p&gt;</configure></property>
99
</property>                <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:actor:421:1">
100
                </property>
101
                <property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.data.expr.StringParameter">
102
                    <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:1185:1">
103
                    </property>
104
                </property>
105
                <property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#Parameter">
106
                </property>
107
                <property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#Parameter">
108
                </property>
109
                <property name="_hideName" class="ptolemy.kernel.util.SingletonAttribute">
110
                </property>
111
                <property name="_icon" class="ptolemy.vergil.icon.ValueIcon">
112
                    <property name="_color" class="ptolemy.actor.gui.ColorAttribute" value="{1.0, 0.0, 0.0, 1.0}">
113
                    </property>
114
                </property>
115
                <property name="_smallIconDescription" class="ptolemy.kernel.util.SingletonConfigurableAttribute">
116
                    <configure>
117
        <svg>
118
          <text x="20" style="font-size:14; font-family:SansSerif; fill:red" y="20">-S-</text>
119
        </svg>
120
      </configure>
121
                </property>
122
                <property name="_editorFactory" class="ptolemy.vergil.toolbox.VisibleParameterEditorFactory">
123
                </property>
124
                <property name="_location" class="ptolemy.kernel.util.Location" value="[255.0, 40.0]">
125
                </property>
126
            </property>
127
            <entity name="Expression" class="ptolemy.actor.lib.Expression">
128
                <property name="expression" class="ptolemy.kernel.util.StringAttribute" value="$p2">
129
                    <property name="_hide" class="ptolemy.data.expr.Parameter" value="true">
130
                    </property>
131
                </property>
132
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
133
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
134
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Xiaojun Liu, Edward A. Lee, Steve Neuendorffer</configure></property>
135
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
136
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>&lt;p&gt;The Expression actor evaluates a specified expression (e.g., an addition or multiplication operation), which may reference the values of user-specified input ports, the current time, or the actor's iteration count. The actor outputs the value of the evaluated expression. &lt;/p&gt;&#10;&#10;&lt;p&gt;Expressions are specified in the Ptolemy expression language via the expression parameter. For more information about the expression language, see http://ptolemy.eecs.berkeley.edu/papers/05/ptIIdesign1-intro/ptIIdesign1-intro.pdf. &lt;/p&gt;&#10;&#10;&lt;p&gt;By default, the expression parameter is empty, and attempting to execute the actor without first specifying an expression generates an error. Expressions can refer to the values of inputs by the port name; to the current time by the identifier &quot;time&quot;; and to the current iteration count by the identifier &quot;iteration.&quot; &lt;/p&gt;&#10;&#10;&lt;p&gt;Input ports are created by the user and correspond to variables used in the specified expression. Currently, the Expression actor does not support input multiports. The actor requires all of its inputs to be present. If inputs are not all present, then the actor will generate an error. &lt;/p&gt;&#10;&#10;&lt;p&gt;Note: the Expression actor can be used instead of many of the arithmetic actors, such as AddSubtract, MultiplyDivide, and TrigFunction. However, those actors will be usually be more efficient, and sometimes more convenient to use.&lt;/p&gt;</configure></property>
137
<property name="port:output" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>An output port that broadcasts the value of the evaluated expression. The actor automatically determines the type based on the type of the input.</configure></property>
138
<property name="prop:expression" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>An expression to evaluate. Expressions are specified in the Ptolemy expression language. For more information about the expression language, see http://ptolemy.eecs.berkeley.edu/papers/05/ptIIdesign1-intro/ptIIdesign1-intro.pdf. By default, the parameter is empty, and attempting to execute the actor without first specifying an expression generates an error. Expressions can refer to the values of inputs by the port name; to the current time by the identifier &quot;time&quot;; and to the current iteration count by the identifier &quot;iteration.&quot;</configure></property>
139
</property>                <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:actor:75:1">
140
                </property>
141
                <property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.lib.Expression">
142
                    <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:950:1">
143
                    </property>
144
                </property>
145
                <property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#MathOperationActor">
146
                </property>
147
                <property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#GeneralPurpose">
148
                </property>
149
                <property name="_icon" class="ptolemy.vergil.icon.BoxedValueIcon">
150
                    <property name="attributeName" class="ptolemy.kernel.util.StringAttribute" value="expression">
151
                    </property>
152
                    <property name="displayWidth" class="ptolemy.data.expr.Parameter" value="60">
153
                    </property>
154
                </property>
155
                <property name="_location" class="ptolemy.kernel.util.Location" value="{275, 225}">
156
                </property>
157
            </entity>
158
        </entity>
159
    </entity>
160
</entity>
(1-1/3)