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="plot-error" class="ptolemy.actor.TypedCompositeActor">
|
5
|
<display name="plot-error"/>
|
6
|
<property name="_createdBy" class="ptolemy.kernel.attributes.VersionAttribute" value="8.1.devel">
|
7
|
</property>
|
8
|
<property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org/ns/:2290:4305:279:urn:lsid:kepler-project.org/ns/:2290:4326:481:urn:lsid:kepler-project.org/ns/:2290:4691:1113">
|
9
|
</property>
|
10
|
<property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org/ns/:2290:4858:12">
|
11
|
</property>
|
12
|
<property name="PN Director" class="ptolemy.domains.pn.kernel.PNDirector">
|
13
|
<property name="timeResolution" class="ptolemy.actor.parameters.SharedParameter" value="1E-10">
|
14
|
</property>
|
15
|
<property name="initialQueueCapacity" class="ptolemy.data.expr.Parameter" value="1">
|
16
|
</property>
|
17
|
<property name="maximumQueueCapacity" class="ptolemy.data.expr.Parameter" value="65536">
|
18
|
</property>
|
19
|
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
|
20
|
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
21
|
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Mudit Goel, Edward A. Lee, Xiaowen Xin</configure></property>
|
22
|
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
23
|
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure> <p>PN Directors are natural candidates for managing workflows that require parallel processing on distributed computing systems. PN workflows are powerful because they have few restrictions. On the other hand, they can be very inefficient.</p> <p>The Process Network (PN) Director is similar to the SDF Director in that it does not have a notion of time. However, unlike the SDF Director, the PN Director does not statically calculate firing schedules. Instead, a PN workflow is driven by data availability: tokens are created on output ports whenever input tokens are available and the outputs can be calculated. Output tokens are passed to connected actors, where they are held in a buffer until that next actor collects all required inputs and can fire. The PN Director finishes executing a workflow only when there are no new data token sources anywhere in the workflow. </p> <p>The same execution process that gives the PN Director its flexibility can also lead to some unexpected results: workflows may refuse to automatically terminate because tokens are always generated and available to downstream actors, for example. If one actor fires at a much higher rate than another, a downstream actor's memory buffer may overflow, causing workflow execution to fail.</p> <p>There are at least three ways for a PN model to terminate itself: <ol> <li>Have the model starve itself. Typically, a boolean switch is used. See the PN OrderedMerge demo at <code>ptolemy/domains/pn/demo/OrderedMerge/OrderedMerge.xml</code></li> <li>Have the model call the Stop actor. See the PN RemoveNilTokens demo at <code>ptolemy/domains/pn/demo/RemoveNilTokens/RemoveNilTokens.xml</code></li> <li>Set the <i>firingCountLimit</i> actor parameter to the number of iterations desired. Actors such as Ramp extend LimitedFiringSource and have the <i>firingCountLimit</i> parameter.</li> </ol></p> </configure></property>
|
24
|
<property name="prop:initialQueueCapacity" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The initial size of the queues for each communication channel. The value is an integer that defaults to 1. This is an advanced parameter that can usually be left at its default value.</configure></property>
|
25
|
<property name="prop:maximumQueueCapacity" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The maximum size of the queues for each communication channel. The value is an integer that defaults to 65536. To specify unbounded queues, set the value to 0. This is an advanced parameter that can usually be left at its default value.</configure></property>
|
26
|
</property> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:director:2:2">
|
27
|
</property>
|
28
|
<property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.domains.pn.kernel.PNDirector">
|
29
|
<property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:directorclass:2:2">
|
30
|
</property>
|
31
|
</property>
|
32
|
<property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#Director">
|
33
|
</property>
|
34
|
<property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#Director">
|
35
|
</property>
|
36
|
<property name="_location" class="ptolemy.kernel.util.Location" value="[-35.0, 45.0]">
|
37
|
</property>
|
38
|
</property>
|
39
|
<property name="N" class="ptolemy.data.expr.Parameter" value="100.0">
|
40
|
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
|
41
|
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
42
|
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
43
|
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
44
|
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
45
|
</property> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:actor:420:1">
|
46
|
</property>
|
47
|
<property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.data.expr.Parameter">
|
48
|
<property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:1184:1">
|
49
|
</property>
|
50
|
</property>
|
51
|
<property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#Parameter">
|
52
|
</property>
|
53
|
<property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#Parameter">
|
54
|
</property>
|
55
|
<property name="_hideName" class="ptolemy.kernel.util.SingletonAttribute">
|
56
|
</property>
|
57
|
<property name="_icon" class="ptolemy.vergil.icon.ValueIcon">
|
58
|
<property name="_color" class="ptolemy.actor.gui.ColorAttribute" value="{0.0, 0.0, 1.0, 1.0}">
|
59
|
</property>
|
60
|
</property>
|
61
|
<property name="_smallIconDescription" class="ptolemy.kernel.util.SingletonConfigurableAttribute">
|
62
|
<configure>
|
63
|
<svg>
|
64
|
<text x="20" style="font-size:14; font-family:SansSerif; fill:blue" y="20">-P-</text>
|
65
|
</svg>
|
66
|
</configure>
|
67
|
</property>
|
68
|
<property name="_editorFactory" class="ptolemy.vergil.toolbox.VisibleParameterEditorFactory">
|
69
|
</property>
|
70
|
<property name="_location" class="ptolemy.kernel.util.Location" value="[105.0, 60.0]">
|
71
|
</property>
|
72
|
</property>
|
73
|
<property name="_windowProperties" class="ptolemy.actor.gui.WindowPropertiesAttribute" value="{bounds={165, 49, 1186, 825}, maximized=false}">
|
74
|
</property>
|
75
|
<property name="_vergilSize" class="ptolemy.actor.gui.SizeAttribute" value="[845, 654]">
|
76
|
</property>
|
77
|
<property name="_vergilZoomFactor" class="ptolemy.data.expr.ExpertParameter" value="1.1027146706733">
|
78
|
</property>
|
79
|
<property name="_vergilCenter" class="ptolemy.data.expr.ExpertParameter" value="{323.5162811279295, 325.5408991977313}">
|
80
|
</property>
|
81
|
<property name="ts" class="ptolemy.data.expr.Parameter" value=".01">
|
82
|
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
|
83
|
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
84
|
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
85
|
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
86
|
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
87
|
</property> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:actor:420:1">
|
88
|
</property>
|
89
|
<property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.data.expr.Parameter">
|
90
|
<property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:1184:1">
|
91
|
</property>
|
92
|
</property>
|
93
|
<property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#Parameter">
|
94
|
</property>
|
95
|
<property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#Parameter">
|
96
|
</property>
|
97
|
<property name="_hideName" class="ptolemy.kernel.util.SingletonAttribute">
|
98
|
</property>
|
99
|
<property name="_icon" class="ptolemy.vergil.icon.ValueIcon">
|
100
|
<property name="_color" class="ptolemy.actor.gui.ColorAttribute" value="{0.0, 0.0, 1.0, 1.0}">
|
101
|
</property>
|
102
|
</property>
|
103
|
<property name="_smallIconDescription" class="ptolemy.kernel.util.SingletonConfigurableAttribute">
|
104
|
<configure>
|
105
|
<svg>
|
106
|
<text x="20" style="font-size:14; font-family:SansSerif; fill:blue" y="20">-P-</text>
|
107
|
</svg>
|
108
|
</configure>
|
109
|
</property>
|
110
|
<property name="_editorFactory" class="ptolemy.vergil.toolbox.VisibleParameterEditorFactory">
|
111
|
</property>
|
112
|
<property name="_location" class="ptolemy.kernel.util.Location" value="[105.0, 100.0]">
|
113
|
</property>
|
114
|
</property>
|
115
|
<property name="mlen" class="ptolemy.data.expr.Parameter" value="29">
|
116
|
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
|
117
|
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
118
|
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
119
|
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
120
|
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
121
|
</property> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org:actor:420:1">
|
122
|
</property>
|
123
|
<property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.data.expr.Parameter">
|
124
|
<property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:1184:1">
|
125
|
</property>
|
126
|
</property>
|
127
|
<property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#Parameter">
|
128
|
</property>
|
129
|
<property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#Parameter">
|
130
|
</property>
|
131
|
<property name="_hideName" class="ptolemy.kernel.util.SingletonAttribute">
|
132
|
</property>
|
133
|
<property name="_icon" class="ptolemy.vergil.icon.ValueIcon">
|
134
|
<property name="_color" class="ptolemy.actor.gui.ColorAttribute" value="{0.0, 0.0, 1.0, 1.0}">
|
135
|
</property>
|
136
|
</property>
|
137
|
<property name="_smallIconDescription" class="ptolemy.kernel.util.SingletonConfigurableAttribute">
|
138
|
<configure>
|
139
|
<svg>
|
140
|
<text x="20" style="font-size:14; font-family:SansSerif; fill:blue" y="20">-P-</text>
|
141
|
</svg>
|
142
|
</configure>
|
143
|
</property>
|
144
|
<property name="_editorFactory" class="ptolemy.vergil.toolbox.VisibleParameterEditorFactory">
|
145
|
</property>
|
146
|
<property name="_location" class="ptolemy.kernel.util.Location" value="[105.0, 80.0]">
|
147
|
</property>
|
148
|
</property>
|
149
|
<entity name="a" class="ptolemy.actor.TypedCompositeActor">
|
150
|
<property name="_createdBy" class="ptolemy.kernel.attributes.VersionAttribute" value="8.1.devel">
|
151
|
</property>
|
152
|
<property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org/ns/:2290:4325:130">
|
153
|
</property>
|
154
|
<property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.TypedCompositeActor">
|
155
|
<property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:449:1">
|
156
|
</property>
|
157
|
</property>
|
158
|
<property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#Actor">
|
159
|
</property>
|
160
|
<property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#GeneralPurpose">
|
161
|
</property>
|
162
|
<property name="semanticType22" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#Workflow">
|
163
|
</property>
|
164
|
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
|
165
|
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
166
|
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Yuhong Xiong</configure></property>
|
167
|
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
168
|
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure><p>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 "inherit" the director from the containing workflow and are called non-opaque.</p> <p>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.</p></configure></property>
|
169
|
</property> <property name="_location" class="ptolemy.kernel.util.Location" value="[0.0, 185.0]">
|
170
|
</property>
|
171
|
<property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org:actor:449:1">
|
172
|
</property>
|
173
|
<port name="z" class="ptolemy.actor.TypedIOPort">
|
174
|
<property name="output"/>
|
175
|
<property name="_location" class="ptolemy.kernel.util.Location" value="[470.625, 218.75]">
|
176
|
</property>
|
177
|
</port>
|
178
|
<entity name="Ramp" class="ptolemy.actor.lib.Ramp">
|
179
|
<property name="firingCountLimit" class="ptolemy.data.expr.Parameter" value="mlen">
|
180
|
</property>
|
181
|
<property name="NONE" class="ptolemy.data.expr.Parameter" value="0">
|
182
|
</property>
|
183
|
<property name="init" class="ptolemy.data.expr.Parameter" value="0">
|
184
|
</property>
|
185
|
<property name="step" class="ptolemy.actor.parameters.PortParameter" value="1">
|
186
|
</property>
|
187
|
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
|
188
|
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
189
|
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Yuhong Xiong, Edward A. Lee</configure></property>
|
190
|
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
191
|
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure><p>The Ramp actor is the equivalent of the "for loop" in many traditional computer languages. Its parameters include an intial value, the amount the value is incremented each time the actor fires (the 'step'), and the upper limit of the value (the firingCountLimit). The actor outputs an integer each time it is fired. </p> <p>The actor's output can be used as a counter (increasing or decreasing), or as a parameter used in an incremented workflow. For example, the output of a Ramp actor can be input to an Expression actor to create file names that are unique for each iteration (e.g., 'file1', 'file2', etc.) The Ramp actor is also particularly useful with PN directed workflows where there is no way to set the number of iterations as a Director parameter. </p> <p>The first time the actor fires, it outputs the value of its init parameter. The increment value, specified with either the step port or parameter, will only be added on the following iteration. To add an increment to the first iteration, use the Accumulator actor.</p> <p>The actor accepts values of any type that support addition.</p></configure></property>
|
192
|
<property name="port:output" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>An output port that broadcasts the incremented value.</configure></property>
|
193
|
<property name="port:trigger" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>An input port that has no declared type (in other words, the port can accept any data type: double, int, array, etc.) If the port is connected, the actor will not fire until the trigger port receives an input token. Connecting the port is optional, but useful when scheduling the actor to perform at a certain time.</configure></property>
|
194
|
<property name="port:step" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>An input port that accepts the amount by which the output is incremented on each iteration. The port accepts a value of any type that supports addition. The value is an integer and defaults to 1.</configure></property>
|
195
|
<property name="prop:firingCountLimit" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The number of iterations that transpire before the actor indicates that it is finished. If firingCountLimit is set to zero, the actor has no limit imposed.</configure></property>
|
196
|
<property name="prop:step" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The amount by which the output is incremented on each iteration. The port accepts a value of any type that supports addition. The default is the integer 1.</configure></property>
|
197
|
<property name="prop:init" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The value produced by the Ramp on its first iteration. The default value is the integer 0.</configure></property>
|
198
|
</property> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org/ns/:2290:4308:151">
|
199
|
</property>
|
200
|
<property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.lib.Ramp">
|
201
|
<property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:881:1">
|
202
|
</property>
|
203
|
</property>
|
204
|
<property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#IterativeMathOperationActor">
|
205
|
</property>
|
206
|
<property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#IterativeOperation">
|
207
|
</property>
|
208
|
<property name="semanticType22" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#WorkflowInput">
|
209
|
</property>
|
210
|
<property name="_location" class="ptolemy.kernel.util.Location" value="{25.0, 65.0}">
|
211
|
</property>
|
212
|
<property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org:actor:5:1">
|
213
|
</property>
|
214
|
</entity>
|
215
|
<entity name="Array To Sequence" class="ptolemy.domains.sdf.lib.ArrayToSequence">
|
216
|
<property name="arrayLength" class="ptolemy.data.expr.Parameter" value="1">
|
217
|
</property>
|
218
|
<property name="enforceArrayLength" class="ptolemy.data.expr.Parameter" value="false">
|
219
|
</property>
|
220
|
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
|
221
|
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
222
|
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>unknown</configure></property>
|
223
|
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
224
|
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure><p>The ArrayToSequence actor outputs the individual values of an array as a sequence of tokens.</p> <p>The actor can accept an array with any element type (e.g., int, double, etc.). Each time the actor fires, it reads and disassembles one array and outputs a sequence of values.</p> <p>The arrayLength parameter can be used to specify the length of the source array. If the enforceArrayLength parameter is selected, then the actor will only accept arrays of the specified length. The enforceArrayLength parameter should be selected if using an SDF director. If using other directors, such as DE or PN, the enforceArrayLength parameter can be deselected, in which case the arrayLength parameter is ignored.</p> <p>The ArrayToSequence actor is similar to the ArrayToElements actor, except that it outputs values as a sequence via a single output port. The ArrayToElements actor outputs individual values on multiple channels of the output port. Use the ArrayAccumulator actor to convert an array into a single string, where each value is separated by a specified separator.</p></configure></property>
|
225
|
<property name="port:output" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>An output port that broadcasts a sequence of the disassembled array values. </configure></property>
|
226
|
<property name="port:input" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>An input port that accepts an array of elements of any type.</configure></property>
|
227
|
<property name="prop:enforceArrayLength" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Specify whether or not to enforce the arrayLength parameter. By default, the arrayLength is enforced, and the actor will only accept arrays of the specified length.</configure></property>
|
228
|
<property name="prop:arrayLength" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The size of the input array. The default is 1.</configure></property>
|
229
|
</property> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org/ns/:2290:4322:1">
|
230
|
</property>
|
231
|
<property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.domains.sdf.lib.ArrayToSequence">
|
232
|
<property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:907:1">
|
233
|
</property>
|
234
|
</property>
|
235
|
<property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#ArrayActor">
|
236
|
</property>
|
237
|
<property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#DataArrayOperation">
|
238
|
</property>
|
239
|
<property name="_location" class="ptolemy.kernel.util.Location" value="{215.0, 195.0}">
|
240
|
</property>
|
241
|
<property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org:actor:31:1">
|
242
|
</property>
|
243
|
</entity>
|
244
|
<entity name="Constant" class="ptolemy.actor.lib.Const">
|
245
|
<property name="firingCountLimit" class="ptolemy.data.expr.Parameter" value="NONE">
|
246
|
</property>
|
247
|
<property name="NONE" class="ptolemy.data.expr.Parameter" value="0">
|
248
|
</property>
|
249
|
<property name="value" class="ptolemy.data.expr.Parameter" value="concatenate([.1:.1:1.51].toArray(), [1.4:-.1:.09].toArray())">
|
250
|
</property>
|
251
|
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
|
252
|
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
253
|
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
254
|
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
255
|
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure><p>The Constant actor outputs a constant, which is specified by the value parameter. By default, the actor outputs the integer 1.</p> <p>The actor can be used to output other types of values, e.g., a string (such as "Hello") or a double (such as 1.2). The actor' s output type matches the type of the specified value.</p> <p>NOTE: If using a PN Director, the 'firingCountLimit' parameter is often set to a finite integer (e.g. '1') so that the workflow will terminate. </p> </configure></property>
|
256
|
<property name="port:output" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>An output port that broadcasts the specified constant. By default, the output is 1.</configure></property>
|
257
|
<property name="port:trigger" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>A multiport that has no declared type (in other words, the port can accept any data type: double, int, array, etc.) If the port is connected, the actor will not fire until the trigger port receives an input token. Connecting the port is optional, but useful when scheduling the actor to perform at a certain time.</configure></property>
|
258
|
<property name="prop:firingCountLimit" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The limit on the number of times the actor will fire. The default value is 'NONE', meaning there is no limit on the number of time the constant will be provided to the output port. Any integer can be provided as a value for this parameter.</configure></property>
|
259
|
<property name="prop:value" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The value produced by the Constant actor. By default, the value is the integer token 1. The value can be set to another type, e.g., a string (such as "Hello") or a double (such as 1.2). The output type matches the type of the value specified here.</configure></property>
|
260
|
</property> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org/ns/:2290:4306:36">
|
261
|
</property>
|
262
|
<property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.lib.Const">
|
263
|
<property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:877:1">
|
264
|
</property>
|
265
|
</property>
|
266
|
<property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#ConstantActor">
|
267
|
</property>
|
268
|
<property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#Constant">
|
269
|
</property>
|
270
|
<property name="kar" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:kar:57:1">
|
271
|
</property>
|
272
|
<property name="_icon" class="ptolemy.vergil.icon.BoxedValueIcon">
|
273
|
<property name="attributeName" class="ptolemy.kernel.util.StringAttribute" value="value">
|
274
|
</property>
|
275
|
<property name="displayWidth" class="ptolemy.data.expr.Parameter" value="40">
|
276
|
</property>
|
277
|
</property>
|
278
|
<property name="_location" class="ptolemy.kernel.util.Location" value="{280.0, 85.0}">
|
279
|
</property>
|
280
|
<property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org:actor:1:1">
|
281
|
</property>
|
282
|
</entity>
|
283
|
<entity name="Expression" class="ptolemy.actor.lib.Expression">
|
284
|
<property name="expression" class="ptolemy.kernel.util.StringAttribute" value="dep(i) * sin([1:1:N+.5]/N*PI)">
|
285
|
<property name="_hide" class="ptolemy.data.expr.Parameter" value="true">
|
286
|
</property>
|
287
|
</property>
|
288
|
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
|
289
|
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
290
|
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Xiaojun Liu, Edward A. Lee, Steve Neuendorffer</configure></property>
|
291
|
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
292
|
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure><p>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. </p> <p>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. </p> <p>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 "time"; and to the current iteration count by the identifier "iteration." </p> <p>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. </p> <p>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.</p></configure></property>
|
293
|
<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>
|
294
|
<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 "time"; and to the current iteration count by the identifier "iteration."</configure></property>
|
295
|
</property> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org/ns/:2290:4307:74">
|
296
|
</property>
|
297
|
<property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.lib.Expression">
|
298
|
<property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:950:1">
|
299
|
</property>
|
300
|
</property>
|
301
|
<property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#MathOperationActor">
|
302
|
</property>
|
303
|
<property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#GeneralPurpose">
|
304
|
</property>
|
305
|
<property name="_icon" class="ptolemy.vergil.icon.BoxedValueIcon">
|
306
|
<property name="attributeName" class="ptolemy.kernel.util.StringAttribute" value="expression">
|
307
|
</property>
|
308
|
<property name="displayWidth" class="ptolemy.data.expr.Parameter" value="60">
|
309
|
</property>
|
310
|
</property>
|
311
|
<property name="_location" class="ptolemy.kernel.util.Location" value="{365.0, 140.0}">
|
312
|
</property>
|
313
|
<property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org:actor:75:1">
|
314
|
</property>
|
315
|
<port name="dep" class="ptolemy.actor.TypedIOPort">
|
316
|
<property name="input"/>
|
317
|
<property name="_showName" class="ptolemy.data.expr.SingletonParameter" value="true">
|
318
|
</property>
|
319
|
</port>
|
320
|
<port name="i" class="ptolemy.actor.TypedIOPort">
|
321
|
<property name="input"/>
|
322
|
<property name="_showName" class="ptolemy.data.expr.SingletonParameter" value="true">
|
323
|
</property>
|
324
|
</port>
|
325
|
</entity>
|
326
|
<entity name="Expression2" class="ptolemy.actor.lib.Expression">
|
327
|
<property name="expression" class="ptolemy.kernel.util.StringAttribute" value="in.toArray()">
|
328
|
<property name="_hide" class="ptolemy.data.expr.Parameter" value="true">
|
329
|
</property>
|
330
|
</property>
|
331
|
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
|
332
|
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
333
|
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Xiaojun Liu, Edward A. Lee, Steve Neuendorffer</configure></property>
|
334
|
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
335
|
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure><p>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. </p> <p>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. </p> <p>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 "time"; and to the current iteration count by the identifier "iteration." </p> <p>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. </p> <p>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.</p></configure></property>
|
336
|
<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>
|
337
|
<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 "time"; and to the current iteration count by the identifier "iteration."</configure></property>
|
338
|
</property> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org/ns/:2290:4307:6">
|
339
|
</property>
|
340
|
<property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.lib.Expression">
|
341
|
<property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:950:1">
|
342
|
</property>
|
343
|
</property>
|
344
|
<property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#MathOperationActor">
|
345
|
</property>
|
346
|
<property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#GeneralPurpose">
|
347
|
</property>
|
348
|
<property name="_icon" class="ptolemy.vergil.icon.BoxedValueIcon">
|
349
|
<property name="attributeName" class="ptolemy.kernel.util.StringAttribute" value="expression">
|
350
|
</property>
|
351
|
<property name="displayWidth" class="ptolemy.data.expr.Parameter" value="60">
|
352
|
</property>
|
353
|
</property>
|
354
|
<property name="_location" class="ptolemy.kernel.util.Location" value="{115.0, 215.0}">
|
355
|
</property>
|
356
|
<property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org:actor:75:1">
|
357
|
</property>
|
358
|
<port name="in" class="ptolemy.actor.TypedIOPort">
|
359
|
<property name="input"/>
|
360
|
<property name="_showName" class="ptolemy.data.expr.SingletonParameter" value="false">
|
361
|
</property>
|
362
|
</port>
|
363
|
</entity>
|
364
|
<relation name="relation" class="ptolemy.actor.TypedIORelation">
|
365
|
</relation>
|
366
|
<relation name="relation2" class="ptolemy.actor.TypedIORelation">
|
367
|
</relation>
|
368
|
<relation name="relation3" class="ptolemy.actor.TypedIORelation">
|
369
|
<property name="width" class="ptolemy.data.expr.Parameter" value="-1">
|
370
|
</property>
|
371
|
<vertex name="vertex1" value="[120.0, 105.0]">
|
372
|
</vertex>
|
373
|
</relation>
|
374
|
<relation name="relation4" class="ptolemy.actor.TypedIORelation">
|
375
|
</relation>
|
376
|
<relation name="relation5" class="ptolemy.actor.TypedIORelation">
|
377
|
</relation>
|
378
|
<link port="z" relation="relation5"/>
|
379
|
<link port="Ramp.output" relation="relation3"/>
|
380
|
<link port="Array To Sequence.input" relation="relation4"/>
|
381
|
<link port="Array To Sequence.output" relation="relation5"/>
|
382
|
<link port="Constant.output" relation="relation2"/>
|
383
|
<link port="Constant.trigger" relation="relation3"/>
|
384
|
<link port="Expression.output" relation="relation"/>
|
385
|
<link port="Expression.dep" relation="relation2"/>
|
386
|
<link port="Expression.i" relation="relation3"/>
|
387
|
<link port="Expression2.output" relation="relation4"/>
|
388
|
<link port="Expression2.in" relation="relation"/>
|
389
|
</entity>
|
390
|
<entity name="b plot" class="ptolemy.actor.lib.gui.SequencePlotter">
|
391
|
<property name="fillOnWrapup" class="ptolemy.data.expr.Parameter" value="true">
|
392
|
</property>
|
393
|
<property name="automaticRescale" class="ptolemy.data.expr.Parameter" value="false">
|
394
|
</property>
|
395
|
<property name="_windowProperties" class="ptolemy.actor.gui.WindowPropertiesAttribute" value="{bounds={688, 518, 581, 336}, maximized=false}">
|
396
|
</property>
|
397
|
<property name="_plotSize" class="ptolemy.actor.gui.SizeAttribute" value="[581, 292]">
|
398
|
</property>
|
399
|
<property name="startingDataset" class="ptolemy.data.expr.Parameter" value="0">
|
400
|
</property>
|
401
|
<property name="xInit" class="ptolemy.data.expr.Parameter" value="0.0">
|
402
|
</property>
|
403
|
<property name="xUnit" class="ptolemy.data.expr.Parameter" value="ts">
|
404
|
</property>
|
405
|
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
|
406
|
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
407
|
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Edward A. Lee, Bart Kienhuis</configure></property>
|
408
|
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
409
|
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure><p>The SequencePlotter plots received data and displays the graph. The actor reads one or more sequences of doubles via its input multiport and plots each received sequence as a separate data set. By default, the actor updates the display each time it iterates.</p> <p>Specify the scale and starting position of the x-axis with the xUnit and xInit parameters. By default, the x-axis begins at 0 and the increment between samples is 1. </p> <p>Note: updating the display can be costly in terms of system resources. Specify the number of actor iterations that should pass between display updates with the iterationsPerUpdate parameter. For example, if iterationsPerUpdate = 2, then every second time the actor fires, it will update the display (i.e., the actor will update its display on the first firing, the third, the fifth, etc.) The actor will consume its inputs on every firing, regardless of the value of the iterationsPerUpdate parameter.</p></configure></property>
|
410
|
<property name="port:input" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>A multiport that accepts one or more sequences of doubles.</configure></property>
|
411
|
<property name="prop:xInit" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The start point of the X-axis.</configure></property>
|
412
|
<property name="prop:fillOnWrapup" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Specify whether or not to rescale the plot so that all data is visible. By default, the actor scales the plot to fill the display area.</configure></property>
|
413
|
<property name="prop:startingDataset" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The starting dataset number to which data is plotted. The value must be a non-negative integer. The default is 0.</configure></property>
|
414
|
<property name="prop:legend" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Annotations that will be displayed with the graph. Specify a comma-separated list of values that correspond to the input data sets (e.g., rainfall, temperature, elevation).</configure></property>
|
415
|
<property name="prop:iterationsPerUpdate" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The number of actor iterations that should pass between display updates. The value must be a non-negative integer. The default value is 1.</configure></property>
|
416
|
<property name="prop:xUnit" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The increment along the X-axis.</configure></property>
|
417
|
</property> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org/ns/:2290:4323:4">
|
418
|
</property>
|
419
|
<property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.lib.gui.SequencePlotter">
|
420
|
<property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:894:1">
|
421
|
</property>
|
422
|
</property>
|
423
|
<property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#Plotter">
|
424
|
</property>
|
425
|
<property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#GraphicalOutput">
|
426
|
</property>
|
427
|
<property name="_location" class="ptolemy.kernel.util.Location" value="[135.0, 300.0]">
|
428
|
</property>
|
429
|
<property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org:actor:18:1">
|
430
|
</property>
|
431
|
</entity>
|
432
|
<entity name="b" class="ptolemy.actor.TypedCompositeActor">
|
433
|
<property name="_createdBy" class="ptolemy.kernel.attributes.VersionAttribute" value="8.1.devel">
|
434
|
</property>
|
435
|
<property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org/ns/:2290:4427:4">
|
436
|
</property>
|
437
|
<property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.TypedCompositeActor">
|
438
|
<property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:449:1">
|
439
|
</property>
|
440
|
</property>
|
441
|
<property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#Actor">
|
442
|
</property>
|
443
|
<property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#GeneralPurpose">
|
444
|
</property>
|
445
|
<property name="semanticType22" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#Workflow">
|
446
|
</property>
|
447
|
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
|
448
|
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
449
|
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Yuhong Xiong</configure></property>
|
450
|
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
451
|
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure><p>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 "inherit" the director from the containing workflow and are called non-opaque.</p> <p>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.</p></configure></property>
|
452
|
</property> <property name="_location" class="ptolemy.kernel.util.Location" value="[0.0, 295.0]">
|
453
|
</property>
|
454
|
<property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org:actor:449:1">
|
455
|
</property>
|
456
|
<port name="out" class="ptolemy.actor.TypedIOPort">
|
457
|
<property name="output"/>
|
458
|
<property name="_location" class="ptolemy.kernel.util.Location" value="[500.0, 165.0]">
|
459
|
</property>
|
460
|
</port>
|
461
|
<entity name="Expression" class="ptolemy.actor.lib.Expression">
|
462
|
<property name="expression" class="ptolemy.kernel.util.StringAttribute" value="-0.2*in^2+10">
|
463
|
<property name="_hide" class="ptolemy.data.expr.Parameter" value="true">
|
464
|
</property>
|
465
|
</property>
|
466
|
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
|
467
|
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
468
|
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Xiaojun Liu, Edward A. Lee, Steve Neuendorffer</configure></property>
|
469
|
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
470
|
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure><p>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. </p> <p>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. </p> <p>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 "time"; and to the current iteration count by the identifier "iteration." </p> <p>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. </p> <p>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.</p></configure></property>
|
471
|
<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>
|
472
|
<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 "time"; and to the current iteration count by the identifier "iteration."</configure></property>
|
473
|
</property> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org/ns/:2290:4424:7">
|
474
|
</property>
|
475
|
<property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.lib.Expression">
|
476
|
<property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:950:1">
|
477
|
</property>
|
478
|
</property>
|
479
|
<property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#MathOperationActor">
|
480
|
</property>
|
481
|
<property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#GeneralPurpose">
|
482
|
</property>
|
483
|
<property name="_icon" class="ptolemy.vergil.icon.BoxedValueIcon">
|
484
|
<property name="attributeName" class="ptolemy.kernel.util.StringAttribute" value="expression">
|
485
|
</property>
|
486
|
<property name="displayWidth" class="ptolemy.data.expr.Parameter" value="60">
|
487
|
</property>
|
488
|
</property>
|
489
|
<property name="_location" class="ptolemy.kernel.util.Location" value="[370.0, 165.0]">
|
490
|
</property>
|
491
|
<property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org:actor:75:1">
|
492
|
</property>
|
493
|
<port name="in" class="ptolemy.actor.TypedIOPort">
|
494
|
<property name="input"/>
|
495
|
</port>
|
496
|
</entity>
|
497
|
<entity name="Constant" class="ptolemy.actor.lib.Const">
|
498
|
<property name="firingCountLimit" class="ptolemy.data.expr.Parameter" value="1">
|
499
|
</property>
|
500
|
<property name="NONE" class="ptolemy.data.expr.Parameter" value="0">
|
501
|
</property>
|
502
|
<property name="value" class="ptolemy.data.expr.Parameter" value="[0:ts:1.5].toArray()">
|
503
|
</property>
|
504
|
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
|
505
|
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
506
|
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
507
|
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
508
|
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure><p>The Constant actor outputs a constant, which is specified by the value parameter. By default, the actor outputs the integer 1.</p> <p>The actor can be used to output other types of values, e.g., a string (such as "Hello") or a double (such as 1.2). The actor' s output type matches the type of the specified value.</p> <p>NOTE: If using a PN Director, the 'firingCountLimit' parameter is often set to a finite integer (e.g. '1') so that the workflow will terminate. </p> </configure></property>
|
509
|
<property name="port:output" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>An output port that broadcasts the specified constant. By default, the output is 1.</configure></property>
|
510
|
<property name="port:trigger" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>A multiport that has no declared type (in other words, the port can accept any data type: double, int, array, etc.) If the port is connected, the actor will not fire until the trigger port receives an input token. Connecting the port is optional, but useful when scheduling the actor to perform at a certain time.</configure></property>
|
511
|
<property name="prop:firingCountLimit" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The limit on the number of times the actor will fire. The default value is 'NONE', meaning there is no limit on the number of time the constant will be provided to the output port. Any integer can be provided as a value for this parameter.</configure></property>
|
512
|
<property name="prop:value" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The value produced by the Constant actor. By default, the value is the integer token 1. The value can be set to another type, e.g., a string (such as "Hello") or a double (such as 1.2). The output type matches the type of the value specified here.</configure></property>
|
513
|
</property> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org/ns/:2290:4425:2">
|
514
|
</property>
|
515
|
<property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.lib.Const">
|
516
|
<property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:877:1">
|
517
|
</property>
|
518
|
</property>
|
519
|
<property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#ConstantActor">
|
520
|
</property>
|
521
|
<property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#Constant">
|
522
|
</property>
|
523
|
<property name="kar" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:kar:57:1">
|
524
|
</property>
|
525
|
<property name="_icon" class="ptolemy.vergil.icon.BoxedValueIcon">
|
526
|
<property name="attributeName" class="ptolemy.kernel.util.StringAttribute" value="value">
|
527
|
</property>
|
528
|
<property name="displayWidth" class="ptolemy.data.expr.Parameter" value="40">
|
529
|
</property>
|
530
|
</property>
|
531
|
<property name="_location" class="ptolemy.kernel.util.Location" value="[85.0, 165.0]">
|
532
|
</property>
|
533
|
<property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org:actor:1:1">
|
534
|
</property>
|
535
|
</entity>
|
536
|
<entity name="Array To Sequence" class="ptolemy.domains.sdf.lib.ArrayToSequence">
|
537
|
<property name="arrayLength" class="ptolemy.data.expr.Parameter" value="1">
|
538
|
</property>
|
539
|
<property name="enforceArrayLength" class="ptolemy.data.expr.Parameter" value="false">
|
540
|
</property>
|
541
|
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
|
542
|
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
543
|
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>unknown</configure></property>
|
544
|
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
545
|
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure><p>The ArrayToSequence actor outputs the individual values of an array as a sequence of tokens.</p> <p>The actor can accept an array with any element type (e.g., int, double, etc.). Each time the actor fires, it reads and disassembles one array and outputs a sequence of values.</p> <p>The arrayLength parameter can be used to specify the length of the source array. If the enforceArrayLength parameter is selected, then the actor will only accept arrays of the specified length. The enforceArrayLength parameter should be selected if using an SDF director. If using other directors, such as DE or PN, the enforceArrayLength parameter can be deselected, in which case the arrayLength parameter is ignored.</p> <p>The ArrayToSequence actor is similar to the ArrayToElements actor, except that it outputs values as a sequence via a single output port. The ArrayToElements actor outputs individual values on multiple channels of the output port. Use the ArrayAccumulator actor to convert an array into a single string, where each value is separated by a specified separator.</p></configure></property>
|
546
|
<property name="port:input" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>An input port that accepts an array of elements of any type.</configure></property>
|
547
|
<property name="port:output" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>An output port that broadcasts a sequence of the disassembled array values. </configure></property>
|
548
|
<property name="prop:enforceArrayLength" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Specify whether or not to enforce the arrayLength parameter. By default, the arrayLength is enforced, and the actor will only accept arrays of the specified length.</configure></property>
|
549
|
<property name="prop:arrayLength" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The size of the input array. The default is 1.</configure></property>
|
550
|
</property> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org/ns/:2290:4426:1">
|
551
|
</property>
|
552
|
<property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.domains.sdf.lib.ArrayToSequence">
|
553
|
<property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:907:1">
|
554
|
</property>
|
555
|
</property>
|
556
|
<property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#ArrayActor">
|
557
|
</property>
|
558
|
<property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#DataArrayOperation">
|
559
|
</property>
|
560
|
<property name="_location" class="ptolemy.kernel.util.Location" value="[185.0, 145.0]">
|
561
|
</property>
|
562
|
<property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org:actor:31:1">
|
563
|
</property>
|
564
|
</entity>
|
565
|
<relation name="relation" class="ptolemy.actor.TypedIORelation">
|
566
|
</relation>
|
567
|
<relation name="relation2" class="ptolemy.actor.TypedIORelation">
|
568
|
</relation>
|
569
|
<relation name="relation3" class="ptolemy.actor.TypedIORelation">
|
570
|
</relation>
|
571
|
<link port="out" relation="relation3"/>
|
572
|
<link port="Expression.output" relation="relation3"/>
|
573
|
<link port="Expression.in" relation="relation"/>
|
574
|
<link port="Constant.output" relation="relation2"/>
|
575
|
<link port="Array To Sequence.input" relation="relation2"/>
|
576
|
<link port="Array To Sequence.output" relation="relation"/>
|
577
|
</entity>
|
578
|
<entity name="a plot" class="ptolemy.actor.lib.gui.SequencePlotter">
|
579
|
<property name="fillOnWrapup" class="ptolemy.data.expr.Parameter" value="true">
|
580
|
</property>
|
581
|
<property name="automaticRescale" class="ptolemy.data.expr.Parameter" value="false">
|
582
|
</property>
|
583
|
<property name="_windowProperties" class="ptolemy.actor.gui.WindowPropertiesAttribute" value="{bounds={689, 175, 500, 344}, maximized=false}">
|
584
|
</property>
|
585
|
<property name="_plotSize" class="ptolemy.actor.gui.SizeAttribute" value="[500, 300]">
|
586
|
</property>
|
587
|
<property name="startingDataset" class="ptolemy.data.expr.Parameter" value="0">
|
588
|
</property>
|
589
|
<property name="xInit" class="ptolemy.data.expr.Parameter" value="0.0">
|
590
|
</property>
|
591
|
<property name="xUnit" class="ptolemy.data.expr.Parameter" value="ts">
|
592
|
</property>
|
593
|
<property name="KeplerDocumentation" class="ptolemy.vergil.basic.KeplerDocumentationAttribute">
|
594
|
<property name="description" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
595
|
<property name="author" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Edward A. Lee, Bart Kienhuis</configure></property>
|
596
|
<property name="version" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property>
|
597
|
<property name="userLevelDocumentation" class="ptolemy.kernel.util.ConfigurableAttribute"><configure><p>The SequencePlotter plots received data and displays the graph. The actor reads one or more sequences of doubles via its input multiport and plots each received sequence as a separate data set. By default, the actor updates the display each time it iterates.</p> <p>Specify the scale and starting position of the x-axis with the xUnit and xInit parameters. By default, the x-axis begins at 0 and the increment between samples is 1. </p> <p>Note: updating the display can be costly in terms of system resources. Specify the number of actor iterations that should pass between display updates with the iterationsPerUpdate parameter. For example, if iterationsPerUpdate = 2, then every second time the actor fires, it will update the display (i.e., the actor will update its display on the first firing, the third, the fifth, etc.) The actor will consume its inputs on every firing, regardless of the value of the iterationsPerUpdate parameter.</p></configure></property>
|
598
|
<property name="port:input" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>A multiport that accepts one or more sequences of doubles.</configure></property>
|
599
|
<property name="prop:xInit" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The start point of the X-axis.</configure></property>
|
600
|
<property name="prop:fillOnWrapup" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Specify whether or not to rescale the plot so that all data is visible. By default, the actor scales the plot to fill the display area.</configure></property>
|
601
|
<property name="prop:legend" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Annotations that will be displayed with the graph. Specify a comma-separated list of values that correspond to the input data sets (e.g., rainfall, temperature, elevation).</configure></property>
|
602
|
<property name="prop:startingDataset" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The starting dataset number to which data is plotted. The value must be a non-negative integer. The default is 0.</configure></property>
|
603
|
<property name="prop:iterationsPerUpdate" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The number of actor iterations that should pass between display updates. The value must be a non-negative integer. The default value is 1.</configure></property>
|
604
|
<property name="prop:xUnit" class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The increment along the X-axis.</configure></property>
|
605
|
</property> <property name="entityId" class="org.kepler.moml.NamedObjId" value="urn:lsid:kepler-project.org/ns/:2290:4728:1">
|
606
|
</property>
|
607
|
<property name="class" class="ptolemy.kernel.util.StringAttribute" value="ptolemy.actor.lib.gui.SequencePlotter">
|
608
|
<property name="id" class="ptolemy.kernel.util.StringAttribute" value="urn:lsid:kepler-project.org:class:894:1">
|
609
|
</property>
|
610
|
</property>
|
611
|
<property name="semanticType00" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:1:1#Plotter">
|
612
|
</property>
|
613
|
<property name="semanticType11" class="org.kepler.sms.SemanticType" value="urn:lsid:localhost:onto:2:1#GraphicalOutput">
|
614
|
</property>
|
615
|
<property name="_location" class="ptolemy.kernel.util.Location" value="[140.0, 190.0]">
|
616
|
</property>
|
617
|
<property name="derivedFrom" class="org.kepler.moml.NamedObjIdReferralList" value="urn:lsid:kepler-project.org:actor:18:1">
|
618
|
</property>
|
619
|
</entity>
|
620
|
<relation name="relation3" class="ptolemy.actor.TypedIORelation">
|
621
|
<property name="width" class="ptolemy.data.expr.Parameter" value="-1">
|
622
|
</property>
|
623
|
<vertex name="vertex1" value="[100.0, 320.0]">
|
624
|
</vertex>
|
625
|
</relation>
|
626
|
<relation name="relation2" class="ptolemy.actor.TypedIORelation">
|
627
|
<property name="width" class="ptolemy.data.expr.Parameter" value="-1">
|
628
|
</property>
|
629
|
<vertex name="vertex1" value="[100.0, 210.0]">
|
630
|
</vertex>
|
631
|
</relation>
|
632
|
<link port="a.z" relation="relation2"/>
|
633
|
<link port="b plot.input" relation="relation3"/>
|
634
|
<link port="b.out" relation="relation3"/>
|
635
|
<link port="a plot.input" relation="relation2"/>
|
636
|
</entity>
|