Project

General

Profile

mwc.xml

Oliver Soong, 02/18/2010 01:40 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="mwc" class="ptolemy.actor.TypedCompositeActor">
5
    <property name="_createdBy" class="ptolemy.kernel.attributes.VersionAttribute" value="8.1.devel">
6
    </property>
7
    <property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList">
8
    </property>
9
    <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:7998:70:10">
10
    </property>
11
    <property name="TOP Provenance Recorder" class="org.kepler.provenance.ProvenanceRecorder">
12
    </property>
13
    <property name="module-dependencies" class="ptolemy.kernel.util.StringAttribute" value="provenance">
14
    </property>
15
    <property name="Reporting Listener" class="org.kepler.module.reporting.ReportingListener">
16
    </property>
17
    <property name="_windowProperties" class="ptolemy.actor.gui.WindowPropertiesAttribute" value="{bounds={440, -6, 1039, 1092}, maximized=false}">
18
    </property>
19
    <property name="_vergilSize" class="ptolemy.actor.gui.SizeAttribute" value="[727, 942]">
20
    </property>
21
    <property name="_vergilZoomFactor" class="ptolemy.data.expr.ExpertParameter" value="1.0">
22
    </property>
23
    <property name="_vergilCenter" class="ptolemy.data.expr.ExpertParameter" value="{363.5, 471.0}">
24
    </property>
25
    <entity name="Multiline Warning Console" class="ptolemy.actor.TypedCompositeActor">
26
        <property name="_createdBy" class="ptolemy.kernel.attributes.VersionAttribute" value="8.1.devel">
27
        </property>
28
        <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:7998:81:4">
29
        </property>
30
        <property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.TypedCompositeActor">
31
            <property name="id" class="ptolemy.kernel.util.StringAttribute" value="null">
32
            </property>
33
        </property>
34
        <property name="_location" class="ptolemy.kernel.util.Location" value="{210.0, 435.0}">
35
        </property>
36
        <property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:441:17:25:urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:440:783:17:urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:339:16:4:urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:450:242:14:urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:631:81:1:urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:7757:14:2:urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:7896:73:6">
37
        </property>
38
        <property name="_windowProperties" class="ptolemy.actor.gui.WindowPropertiesAttribute" value="{bounds={0, 0, 1096, 1092}, maximized=false}">
39
        </property>
40
        <property name="_vergilSize" class="ptolemy.actor.gui.SizeAttribute" value="[784, 626]">
41
        </property>
42
        <property name="_vergilZoomFactor" class="ptolemy.data.expr.ExpertParameter" value="1.0">
43
        </property>
44
        <property name="_vergilCenter" class="ptolemy.data.expr.ExpertParameter" value="{392.0, 313.0}">
45
        </property>
46
        <property name="semanticType" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#TextualOutput">
47
        </property>
48
        <property name="module-dependencies" class="ptolemy.kernel.util.StringAttribute" value="core">
49
        </property>
50
        <port name="warningMsg" class="ptolemy.actor.TypedIOPort">
51
            <property name="input"/>
52
            <property name="multiport"/>
53
            <property name="dataType" class="ptolemy.kernel.util.StringAttribute" value="string">
54
            </property>
55
            <property name="isMultiport" class="ptolemy.kernel.util.StringAttribute" value="false">
56
            </property>
57
            <property name="_location" class="ptolemy.kernel.util.Location" value="{60.0, 75.0}">
58
            </property>
59
        </port>
60
        <entity name="Warning Console" class="ptolemy.actor.lib.gui.Display">
61
            <property name="_windowProperties" class="ptolemy.actor.gui.WindowPropertiesAttribute" value="{bounds={180, 532, 773, 236}, maximized=false}">
62
            </property>
63
            <property name="_paneSize" class="ptolemy.actor.gui.SizeAttribute" value="[765, 188]">
64
            </property>
65
            <property name="rowsDisplayed" class="ptolemy.data.expr.Parameter" value="10">
66
            </property>
67
            <property name="columnsDisplayed" class="ptolemy.data.expr.Parameter" value="40">
68
            </property>
69
            <property name="suppressBlankLines" class="ptolemy.data.expr.Parameter" value="false">
70
            </property>
71
            <property name="title" class="ptolemy.data.expr.StringParameter" value="">
72
            </property>
73
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
74
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
75
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Yuhong Xiong, Edward A. Lee</configure></property>
76
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
77
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>&lt;p&gt;The Display actor reads tokens of any type via its input multiport, and displays each token on a separate line in a text display window.&lt;/p&gt;&#10;&#10;&lt;p&gt;Specify the size of the text display window with the rowsDisplayed and columnsDisplayed parameters. Simply resizing the window onscreen does not persistently change the size when the workflow is saved, closed, and then re-opened. &lt;/p&gt;&#10;&#10;&lt;p&gt;If the input is a string token, then the actor strips the surrounding quotation marks before displaying the value.&lt;/p&gt; &#10;&#10;&lt;p&gt;Select the suppressBlankLines parameter to specify that the actor not add blank lines to the display. By default, the actor will add blank lines.&lt;/p&gt;&#10;&#10;&lt;p&gt;Note: this actor can consume large amounts of memory. It is not advisable to use it to display large output streams.&lt;/p&gt;</configure></property>
78
<property name="port:input" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>A multiport that accepts tokens of any type.</configure></property>
79
<property name="prop:suppressBlankLines" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Specify whether the actor should display blank lines (the default) or suppress them.</configure></property>
80
<property name="prop:rowsDisplayed" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The vertical size of the display, in rows. The value is an integer that defaults to 10.</configure></property>
81
<property name="prop:columnsDisplayed" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The horizontal size of the display, in columns. The value is an integer that defaults to 40.</configure></property>
82
<property name="prop:title" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The title of the text display window. If specified, the value will appear in the title bar of the text display window.</configure></property>
83
</property>            <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:actor:7:1">
84
            </property>
85
            <property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.lib.gui.Display">
86
                <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:883:1">
87
                </property>
88
            </property>
89
            <property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#TextualOutputActor">
90
            </property>
91
            <property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#TextualOutput">
92
            </property>
93
            <property name="_location" class="ptolemy.kernel.util.Location" value="{670.0, 210.0}">
94
            </property>
95
        </entity>
96
        <entity name="Evaluate" class="ptolemy.actor.lib.Expression">
97
            <property name="expression" class="ptolemy.kernel.util.StringAttribute" value="eval(input == &quot;&quot; ? &quot;nil&quot; : input)">
98
                <property name="_hide" class="ptolemy.data.expr.Parameter" value="true">
99
                </property>
100
            </property>
101
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
102
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
103
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Xiaojun Liu, Edward A. Lee, Steve Neuendorffer</configure></property>
104
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
105
<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>
106
<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>
107
<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>
108
</property>            <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:440:779:4">
109
            </property>
110
            <property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.lib.Expression">
111
                <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:950:1">
112
                </property>
113
            </property>
114
            <property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#MathOperationActor">
115
            </property>
116
            <property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#GeneralPurpose">
117
            </property>
118
            <property name="_icon" class="ptolemy.vergil.icon.BoxedValueIcon">
119
                <property name="attributeName" class="ptolemy.kernel.util.StringAttribute" value="expression">
120
                </property>
121
                <property name="displayWidth" class="ptolemy.data.expr.Parameter" value="60">
122
                </property>
123
            </property>
124
            <property name="_location" class="ptolemy.kernel.util.Location" value="{480.0, 110.0}">
125
            </property>
126
            <property name="" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org:actor:75:1">
127
            </property>
128
            <property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org:actor:75:1">
129
            </property>
130
            <port name="input" class="ptolemy.actor.TypedIOPort">
131
                <property name="input"/>
132
            </port>
133
        </entity>
134
        <entity name="Fix Escaped Quotes" class="ptolemy.actor.lib.string.StringReplace">
135
            <property name="pattern" class="ptolemy.actor.parameters.PortParameter" value="\\\&quot;">
136
            </property>
137
            <property name="replacement" class="ptolemy.actor.parameters.PortParameter" value="\&quot;">
138
            </property>
139
            <property name="stringToEdit" class="ptolemy.actor.parameters.PortParameter" value="">
140
            </property>
141
            <property name="replaceAll" class="ptolemy.data.expr.Parameter" value="true">
142
            </property>
143
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
144
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
145
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure> Antonio Yordan-Nones, Neil E. Turner, Edward A. Lee</configure></property>
146
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
147
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>&lt;p&gt;The StringReplace actor reads a string and searches it for a specified pattern. The actor replaces either the first instance of the pattern or all occurrences of the pattern with a specified replacement string. The actor outputs the edited string.&lt;/p&gt;&#10;&#10;&lt;p&gt;The actor accepts a source string, a replacement string, and a pattern to search for via either its input ports or its parameters. The pattern is specified as a regular expression. For more information about regular expressions, see http://java.sun.com/docs/books/tutorial/extra/regex/index.html.&lt;/p&gt;&#10;&#10;&lt;p&gt;If  the replaceAll parameter is specified, the actor will replace all instances of the string that match the specified pattern. Otherwise, the actor will replace only the first instance that matches. &lt;/p&gt;&#10;&#10;&lt;p&gt;If the actor finds no match, then the actor outputs the original source string, unchanged.&lt;/p&gt; &#10;</configure></property>
148
<property name="port:output" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>An output port that broadcasts the edited string. </configure></property>
149
<property name="port:stringToEdit" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>A port that accepts a source string. The actor will edit the string according to the settings specified by the pattern, replacement, and replaceAll parameters.The source string may also be specified with the stringToEdit parameter</configure></property>
150
<property name="port:replacement" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>A port accepts a replacement string that replaces any matched instance of the specified pattern. The default is an empty string. The replacement string may also be specified via the replacement parameter.</configure></property>
151
<property name="port:pattern" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>A port that accepts a regular expression, which is compared to the input string. The default is an empty string. The regular expression may also be specified via the pattern parameter.</configure></property>
152
<property name="prop:replaceAll" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Specify whether or not to replace all instances that match the pattern. By default, the actor will replace all instances. Deselect the parameter to replace only the first instance.</configure></property>
153
<property name="prop:stringToEdit" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>A source string. The actor will edit the string based on the settings specified by the pattern, replacement, and replaceAll parameters. The source string may  be specified via either the stringToEdit port or parameter.</configure></property>
154
<property name="prop:replacement" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>A replacement string that replaces any matched instance of the specified pattern. The default is an empty string. The replacement string may  be specified via either the replacement port or parameter.</configure></property>
155
<property name="prop:pattern" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>A regular expression, which is compared to the input string. The default is an empty string. The regular expression may  be specified via either the pattern port or parameter.</configure></property>
156
</property>            <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:440:304:22">
157
            </property>
158
            <property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.lib.string.StringReplace">
159
                <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:972:1">
160
                </property>
161
            </property>
162
            <property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#StringFunctionActor">
163
            </property>
164
            <property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#DataStringOperation">
165
            </property>
166
            <property name="_location" class="ptolemy.kernel.util.Location" value="{260.0, 100.0}">
167
            </property>
168
            <property name="" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org:actor:98:1">
169
            </property>
170
            <property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org:actor:98:1">
171
            </property>
172
            <port name="pattern" class="ptolemy.actor.parameters.ParameterPort">
173
                <property name="input"/>
174
                <property name="_showName" class="ptolemy.data.expr.SingletonParameter" value="true">
175
                </property>
176
            </port>
177
            <port name="replacement" class="ptolemy.actor.parameters.ParameterPort">
178
                <property name="input"/>
179
                <property name="_showName" class="ptolemy.data.expr.SingletonParameter" value="true">
180
                </property>
181
            </port>
182
            <port name="stringToEdit" class="ptolemy.actor.parameters.ParameterPort">
183
                <property name="input"/>
184
                <property name="_showName" class="ptolemy.data.expr.SingletonParameter" value="true">
185
                </property>
186
            </port>
187
        </entity>
188
        <entity name="Boolean Switch" class="ptolemy.actor.lib.BooleanSwitch">
189
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
190
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
191
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Steve Neuendorffer</configure></property>
192
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
193
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>&lt;p&gt;The BooleanSwitch actor reads a value of any type, as well as a Boolean token that is used as a control. If the Boolean token is true, the actor outputs the received value to the trueOutput port; if the Boolean token is false, the actor outputs the received value to the falseOutput port.&#10;If the actor has never received a value on the control port, then the actor will output to the falseOutput port.&lt;/p&gt;&#10;&#10;&lt;p&gt;The actor only works under certain directors. It will not work under an SDF Director, but it will under a PN Director, for example.&lt;/p&gt;</configure></property>
194
<property name="port:input" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>An input port that accepts tokens of any type.</configure></property>
195
<property name="port:falseOutput" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>An output port that broadcasts the input token when the control is false.</configure></property>
196
<property name="port:trueOutput" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>An output port that broadcasts the input token when the control is true.</configure></property>
197
<property name="port:control" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>An input port that accepts a Boolean token used to select which output port (trueOutput or falseOutput) to broadcast.</configure></property>
198
</property>            <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:actor:54:1">
199
            </property>
200
            <property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.lib.BooleanSwitch">
201
                <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:930:1">
202
                </property>
203
            </property>
204
            <property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#BooleanControlActor">
205
            </property>
206
            <property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#BooleanControl">
207
            </property>
208
            <property name="_location" class="ptolemy.kernel.util.Location" value="{595.0, 125.0}">
209
            </property>
210
            <port name="control" class="ptolemy.actor.TypedIOPort">
211
                <property name="input"/>
212
                <property name="_cardinal" class="ptolemy.kernel.util.StringAttribute" value="SOUTH">
213
                </property>
214
            </port>
215
        </entity>
216
        <entity name="Expression" class="ptolemy.actor.lib.Expression">
217
            <property name="expression" class="ptolemy.kernel.util.StringAttribute" value="input == &quot;&quot;">
218
                <property name="_hide" class="ptolemy.data.expr.Parameter" value="true">
219
                </property>
220
            </property>
221
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
222
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
223
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Xiaojun Liu, Edward A. Lee, Steve Neuendorffer</configure></property>
224
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
225
<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>
226
<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>
227
<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>
228
</property>            <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:440:786:2">
229
            </property>
230
            <property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.lib.Expression">
231
                <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:950:1">
232
                </property>
233
            </property>
234
            <property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#MathOperationActor">
235
            </property>
236
            <property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#GeneralPurpose">
237
            </property>
238
            <property name="_icon" class="ptolemy.vergil.icon.BoxedValueIcon">
239
                <property name="attributeName" class="ptolemy.kernel.util.StringAttribute" value="expression">
240
                </property>
241
                <property name="displayWidth" class="ptolemy.data.expr.Parameter" value="60">
242
                </property>
243
            </property>
244
            <property name="_location" class="ptolemy.kernel.util.Location" value="{455.0, 210.0}">
245
            </property>
246
            <property name="" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org:actor:75:1">
247
            </property>
248
            <property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org:actor:75:1">
249
            </property>
250
            <port name="input" class="ptolemy.actor.TypedIOPort">
251
                <property name="input"/>
252
            </port>
253
        </entity>
254
        <entity name="sink" class="ptolemy.actor.lib.Discard">
255
            <property name="_location" class="ptolemy.kernel.util.Location" value="{701.5, 130.0625}">
256
            </property>
257
        </entity>
258
        <entity name="Convert Warning" class="org.ecoinformatics.seek.R.RExpression">
259
            <property name="expression" class="ptolemy.kernel.util.StringAttribute" value="if(exists(&quot;warns&quot;)) {&#10;        warningExpr &lt;- paste(&quot;\&quot;&quot;, paste(warns, collapse = &quot;\n&quot;), &quot;\&quot;&quot;, sep = &quot;&quot;)&#10;}">
260
                <display name="R function or script"/>
261
                <property name="R Expression" class="ptolemy.actor.gui.style.TextStyle">
262
                    <property name="height" class="ptolemy.data.expr.Parameter" value="10">
263
                    </property>
264
                    <property name="width" class="ptolemy.data.expr.Parameter" value="30">
265
                    </property>
266
                </property>
267
            </property>
268
            <property name="_editorFactory" class="ptolemy.vergil.toolbox.TextEditorTableauFactory">
269
                <property name="attributeName" class="ptolemy.kernel.util.StringAttribute" value="expression">
270
                </property>
271
                <property name="columnsDisplayed" class="ptolemy.data.expr.Parameter" value="80">
272
                </property>
273
                <property name="rowsDisplayed" class="ptolemy.data.expr.Parameter" value="40">
274
                </property>
275
            </property>
276
            <property name="Rcwd" class="ptolemy.data.expr.StringParameter" value="">
277
                <display name="R working directory"/>
278
            </property>
279
            <property name="save_nosave" class="ptolemy.data.expr.StringParameter" value="--no-save">
280
                <display name="Save or not"/>
281
            </property>
282
            <property name="graphicsFormat" class="ptolemy.data.expr.StringParameter" value="png">
283
                <display name="Graphics Format"/>
284
            </property>
285
            <property name="graphicsOutput" class="ptolemy.data.expr.Parameter" value="false">
286
                <display name="Graphics Output"/>
287
            </property>
288
            <property name="displayGraphicsOutput" class="ptolemy.data.expr.Parameter" value="false">
289
                <display name="Automatically display graphics"/>
290
            </property>
291
            <property name="numXPixels" class="ptolemy.data.expr.StringParameter" value="480">
292
                <display name="Number of X pixels in image"/>
293
            </property>
294
            <property name="numYPixels" class="ptolemy.data.expr.StringParameter" value="480">
295
                <display name="Number of Y pixels in image"/>
296
            </property>
297
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
298
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
299
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Dan Higgins</configure></property>
300
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
301
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>&lt;p&gt;The RExpression actor runs an R script or function. Input and output port are created by the user and correspond to R variables used in the specified R script. The actor outputs the result of the evaluated script.&lt;/p&gt;&#10;&#10;&lt;p&gt;The R application must be installed on the local system to use this actor. R is a language and environment for statistical computing and graphics. For more information about R, see http://www.r-project.org/.&lt;/p&gt;&#10;&#10;&lt;p&gt;Kepler contains a number of preconfigured R-actors: Barplot, Boxplot, Scatterplot, Summary, RandomNormal, RandomUniform, Correlation, LinearModel, Regression, RMean, RMedian, RQuantile, and  SummaryStatistics.&lt;/p&gt;</configure></property>
302
<property name="port:graphicsFileName" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>An output port that broadcasts the file name of the generated graph of the results.</configure></property>
303
<property name="port:output" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>An output port that broadcasts a copy of the text output that R generates. As the actor communicates with R to run the R function or script, the output port sends back the response (i.e., the values and statistical outputs).</configure></property>
304
<property name="prop:Rcwd" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The 'R' working directory (the home directory by default). </configure></property>
305
<property name="prop:displayGraphicsOutput" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Select to display the plot once the actor has generated it.</configure></property>
306
<property name="prop:graphicsFormat" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The graphics output format. Currently the actor supports either  *.pdf or  *.png.</configure></property>
307
<property name="prop:numXPixels" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The width of the output graphic in pixels.</configure></property>
308
<property name="prop:numYPixels" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The height of the output graphic in pixels.</configure></property>
309
<property name="prop:expression" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The expression that is evaluated to produce the output.</configure></property>
310
<property name="prop:graphicsOutput" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Specify whether or not to create a graphics output port. By default, the actor will create a graphics output port.</configure></property>
311
<property name="prop:save_nosave" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Specify whether or not to save the R workspace when R is closed; set to '--save' to retrieve the workspace later in a workflow in another R-actor.</configure></property>
312
</property>            <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:7998:80:2">
313
            </property>
314
            <property name="class" class="ptolemy.kernel.util.StringAttribute" value="org.ecoinformatics.seek.R.RExpression">
315
                <property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:1126:1">
316
                </property>
317
            </property>
318
            <property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#MathOperationActor">
319
            </property>
320
            <property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#GeneralPurpose">
321
            </property>
322
            <property name="_location" class="ptolemy.kernel.util.Location" value="{100.0, 110.0}">
323
            </property>
324
            <property name="" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org:actor:360:1:urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:441:13:25:urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:440:785:1:urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:339:17:2:urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:450:244:5:urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:7757:13:1:urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:7896:74:2">
325
            </property>
326
            <property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org:actor:360:1:urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:441:13:25:urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:440:785:1:urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:339:17:2:urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:450:244:5:urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:7757:13:1:urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:7896:74:2">
327
            </property>
328
            <port name="warns" class="ptolemy.actor.TypedIOPort">
329
                <property name="input"/>
330
                <property name="multiport"/>
331
            </port>
332
            <port name="warningExpr" class="ptolemy.actor.TypedIOPort">
333
                <property name="output"/>
334
                <property name="_type" class="ptolemy.actor.TypeAttribute" value="string">
335
                </property>
336
            </port>
337
        </entity>
338
        <relation name="relation4" class="ptolemy.actor.TypedIORelation">
339
            <vertex name="vertex1" value="[360.0, 140.0]">
340
            </vertex>
341
        </relation>
342
        <relation name="relation2" class="ptolemy.actor.TypedIORelation">
343
        </relation>
344
        <relation name="relation5" class="ptolemy.actor.TypedIORelation">
345
        </relation>
346
        <relation name="relation6" class="ptolemy.actor.TypedIORelation">
347
        </relation>
348
        <relation name="relation" class="ptolemy.actor.TypedIORelation">
349
        </relation>
350
        <relation name="relation3" class="ptolemy.actor.TypedIORelation">
351
        </relation>
352
        <relation name="relation7" class="ptolemy.actor.TypedIORelation">
353
        </relation>
354
        <link port="warningMsg" relation="relation7"/>
355
        <link port="Warning Console.input" relation="relation6"/>
356
        <link port="Evaluate.output" relation="relation2"/>
357
        <link port="Evaluate.input" relation="relation4"/>
358
        <link port="Fix Escaped Quotes.stringToEdit" relation="relation3"/>
359
        <link port="Fix Escaped Quotes.output" relation="relation4"/>
360
        <link port="Boolean Switch.input" relation="relation2"/>
361
        <link port="Boolean Switch.control" relation="relation5"/>
362
        <link port="Boolean Switch.trueOutput" relation="relation"/>
363
        <link port="Boolean Switch.falseOutput" relation="relation6"/>
364
        <link port="Expression.output" relation="relation5"/>
365
        <link port="Expression.input" relation="relation4"/>
366
        <link port="sink.input" relation="relation"/>
367
        <link port="Convert Warning.warns" relation="relation7"/>
368
        <link port="Convert Warning.warningExpr" relation="relation3"/>
369
    </entity>
370
</entity>