tmf: Add a method to indicate if a ODA is user-defined
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / schema / org.eclipse.linuxtools.tmf.core.analysis.exsd
1 <?xml version='1.0' encoding='UTF-8'?>
2 <!-- Schema file written by PDE -->
3 <schema targetNamespace="org.eclipse.linuxtools.tmf.core" xmlns="http://www.w3.org/2001/XMLSchema">
4 <annotation>
5 <appinfo>
6 <meta.schema plugin="org.eclipse.linuxtools.tmf.core" id="analysis" name="Trace Analysis Module"/>
7 </appinfo>
8 <documentation>
9 This extension point is used to contribute new analysis modules to the TMF framework. Analysis modules provide new independent functionalities that can be run on traces.
10 </documentation>
11 </annotation>
12
13 <element name="extension">
14 <annotation>
15 <appinfo>
16 <meta.element />
17 </appinfo>
18 </annotation>
19 <complexType>
20 <sequence minOccurs="0" maxOccurs="unbounded">
21 <element ref="module"/>
22 <element ref="source"/>
23 <element ref="output"/>
24 <element ref="parameterProvider"/>
25 <element ref="listener"/>
26 </sequence>
27 <attribute name="point" type="string" use="required">
28 <annotation>
29 <documentation>
30 a fully qualified identifier of the target extension point
31 </documentation>
32 </annotation>
33 </attribute>
34 <attribute name="id" type="string">
35 <annotation>
36 <documentation>
37 an optional identifier of the extension instance
38 </documentation>
39 </annotation>
40 </attribute>
41 <attribute name="name" type="string">
42 <annotation>
43 <documentation>
44 an optional name of the extension instance
45 </documentation>
46 <appinfo>
47 <meta.attribute translatable="true"/>
48 </appinfo>
49 </annotation>
50 </attribute>
51 </complexType>
52 </element>
53
54 <element name="module">
55 <complexType>
56 <sequence minOccurs="0" maxOccurs="unbounded">
57 <element ref="parameter"/>
58 <element ref="tracetype"/>
59 </sequence>
60 <attribute name="id" type="string" use="required">
61 <annotation>
62 <documentation>
63 The unique ID that identifies this analysis module.
64 </documentation>
65 </annotation>
66 </attribute>
67 <attribute name="name" type="string" use="required">
68 <annotation>
69 <documentation>
70 The trace analysis module&apos;s name as it is displayed to the end user
71 </documentation>
72 </annotation>
73 </attribute>
74 <attribute name="analysis_module" type="string" use="required">
75 <annotation>
76 <documentation>
77 The fully qualified name of a class that implements the &lt;samp&gt;IAnalysisModule&lt;/samp&gt; interface.
78 </documentation>
79 <appinfo>
80 <meta.attribute kind="java" basedOn=":org.eclipse.tracecompass.tmf.core.analysis.IAnalysisModule"/>
81 </appinfo>
82 </annotation>
83 </attribute>
84 <attribute name="icon" type="string">
85 <annotation>
86 <documentation>
87 The icon associated to this analysis module.
88 </documentation>
89 <appinfo>
90 <meta.attribute kind="resource"/>
91 </appinfo>
92 </annotation>
93 </attribute>
94 <attribute name="automatic" type="boolean">
95 <annotation>
96 <documentation>
97 Whether to execute this analysis automatically when trace is opened, or wait for the user to ask for it
98 </documentation>
99 </annotation>
100 </attribute>
101 <attribute name="applies_experiment" type="boolean">
102 <annotation>
103 <documentation>
104 If true, indicate that an instance of this analysis will also be added to an experiment containing one or more trace(s) it applies to. In this case, the analysis will be run on the full experiment and the result is more than just the aggregation of each trace&apos;s analysis (default false).
105 </documentation>
106 </annotation>
107 </attribute>
108 </complexType>
109 </element>
110
111 <element name="parameter">
112 <annotation>
113 <documentation>
114 Parameter for this module
115 </documentation>
116 </annotation>
117 <complexType>
118 <attribute name="name" type="string" use="required">
119 <annotation>
120 <documentation>
121 The parameter name
122 </documentation>
123 </annotation>
124 </attribute>
125 <attribute name="default_value" type="string">
126 <annotation>
127 <documentation>
128 A default value for this parameter
129 </documentation>
130 </annotation>
131 </attribute>
132 </complexType>
133 </element>
134
135 <element name="tracetype">
136 <annotation>
137 <documentation>
138 Allow to define the tracetypes this analysis applies to.
139 </documentation>
140 </annotation>
141 <complexType>
142 <attribute name="class" type="string" use="required">
143 <annotation>
144 <documentation>
145 The base trace class this analysis applies to or not (it also applies to traces extending this class).
146 </documentation>
147 <appinfo>
148 <meta.attribute kind="java" basedOn=":org.eclipse.tracecompass.tmf.core.trace.ITmfTrace"/>
149 </appinfo>
150 </annotation>
151 </attribute>
152 <attribute name="applies" type="boolean">
153 <annotation>
154 <documentation>
155 Does this tracetype element mean the class applies or not (default true)
156 </documentation>
157 </annotation>
158 </attribute>
159 </complexType>
160 </element>
161
162 <element name="source">
163 <annotation>
164 <documentation>
165 Specifies a class that provides analysis modules.
166 </documentation>
167 </annotation>
168 <complexType>
169 <attribute name="class" type="string" use="required">
170 <annotation>
171 <documentation>
172 The fully qualified name of a class that implements the &lt;samp&gt;IAnalysisModuleSource&lt;/samp&gt; interface.
173 </documentation>
174 <appinfo>
175 <meta.attribute kind="java" basedOn=":org.eclipse.tracecompass.tmf.core.analysis.IAnalysisModuleSource"/>
176 </appinfo>
177 </annotation>
178 </attribute>
179 </complexType>
180 </element>
181
182 <element name="output">
183 <annotation>
184 <documentation>
185 Associates an output with an analysis module or a class of analysis modules.
186 </documentation>
187 </annotation>
188 <complexType>
189 <choice>
190 <element ref="analysisId"/>
191 <element ref="analysisModuleClass"/>
192 </choice>
193 <attribute name="class" type="string" use="required">
194 <annotation>
195 <documentation>
196 The class of this output.
197 </documentation>
198 <appinfo>
199 <meta.attribute kind="java" basedOn=":org.eclipse.tracecompass.tmf.core.analysis.IAnalysisOutput"/>
200 </appinfo>
201 </annotation>
202 </attribute>
203 <attribute name="id" type="string">
204 <annotation>
205 <documentation>
206 An ID for this output. For example, for a view, it would be the view ID.
207 </documentation>
208 </annotation>
209 </attribute>
210 </complexType>
211 </element>
212
213 <element name="parameterProvider">
214 <annotation>
215 <documentation>
216 Associates a parameter provider class with an analysis ID.
217 </documentation>
218 </annotation>
219 <complexType>
220 <sequence>
221 <element ref="analysisId"/>
222 </sequence>
223 <attribute name="class" type="string" use="required">
224 <annotation>
225 <documentation>
226 The class that contains this analysis parameter provider.
227 </documentation>
228 <appinfo>
229 <meta.attribute kind="java" basedOn=":org.eclipse.linuxtools.tmf.core.analysis.IAnalysisParameterProvider"/>
230 </appinfo>
231 </annotation>
232 </attribute>
233 </complexType>
234 </element>
235
236 <element name="analysisId">
237 <annotation>
238 <documentation>
239 The output will be associated with a single analysis identified by the ID attribute.
240 </documentation>
241 </annotation>
242 <complexType>
243 <attribute name="id" type="string" use="required">
244 <annotation>
245 <documentation>
246 The full ID of the analysis.
247 </documentation>
248 <appinfo>
249 <meta.attribute kind="identifier" basedOn="org.eclipse.linuxtools.tmf.core.analysis/module/@id"/>
250 </appinfo>
251 </annotation>
252 </attribute>
253 </complexType>
254 </element>
255
256 <element name="analysisModuleClass">
257 <annotation>
258 <documentation>
259 The output will be associated with all modules extending or implementing the &apos;class&apos; attribute.
260 </documentation>
261 </annotation>
262 <complexType>
263 <attribute name="class" type="string" use="required">
264 <annotation>
265 <documentation>
266 The module class or interface the modules need to extend or implement for this output to be applicable.
267 </documentation>
268 <appinfo>
269 <meta.attribute kind="java" basedOn=":org.eclipse.tracecompass.tmf.core.analysis.IAnalysisModule"/>
270 </appinfo>
271 </annotation>
272 </attribute>
273 </complexType>
274 </element>
275
276 <element name="listener">
277 <complexType>
278 <attribute name="class" type="string" use="required">
279 <annotation>
280 <documentation>
281 Specify a class that will listen to new modules created. This listener will listen to the creation of any module.
282 </documentation>
283 <appinfo>
284 <meta.attribute kind="java" basedOn=":org.eclipse.tracecompass.tmf.core.analysis.ITmfNewAnalysisModuleListener"/>
285 </appinfo>
286 </annotation>
287 </attribute>
288 </complexType>
289 </element>
290
291 <annotation>
292 <appinfo>
293 <meta.section type="since"/>
294 </appinfo>
295 <documentation>
296 3.0
297 </documentation>
298 </annotation>
299
300 <annotation>
301 <appinfo>
302 <meta.section type="examples"/>
303 </appinfo>
304 <documentation>
305 &lt;p&gt;
306 For an example implementation of an analysis module see:
307 &lt;pre&gt;
308 plug-in: org.eclipse.linuxtools.tmf.core.tests
309 package: org.eclipse.linuxtools.tmf.core.tests.stubs.analysis
310 class: TestCtfAnalysis
311 &lt;/pre&gt;
312 &lt;/p&gt;
313
314 &lt;p&gt;
315 The following is an example of the extension point:
316 &lt;pre&gt;
317 &lt;extension
318 point=&quot;org.eclipse.linuxtools.tmf.core.analysis&quot;&gt;
319 &lt;module
320 id=&quot;org.eclipse.linuxtools.tmf.core.tests.analysis.testctf&quot;
321 name=&quot;Test analysis ctf&quot;
322 analysis_module=&quot;org.eclipse.linuxtools.tmf.tests.stubs.analysis.TestCtfAnalysis&quot;
323 automatic=&quot;true&quot;&gt;
324 &lt;/module&gt;
325 &lt;/extension&gt;
326 &lt;/pre&gt;
327 &lt;/p&gt;
328 </documentation>
329 </annotation>
330
331 <annotation>
332 <appinfo>
333 <meta.section type="apiinfo"/>
334 </appinfo>
335 <documentation>
336 &lt;p&gt;
337 For this extension point, a class implementing IAnalysisModule must be defined (org.eclipse.linuxtools.tmf.core.analysis.IAnalysisModule). Most analysis can just extend the org.eclipse.linuxtools.tmf.core.analysis.TmfAbstractAnalysisModule class, since it already contains everything to manage the trace&apos;s, the analysis&apos; execution, cancellation, completion, the help texts, etc.
338 &lt;/p&gt;
339 &lt;p&gt;
340 The key method to implement if extending TmfAbstractAnalysisModule is executeAnalysis(final IProgressMonitor monitor). It contains the code of the analysis itself and is executed inside an Eclipse job.
341 &lt;/p&gt;
342 </documentation>
343 </annotation>
344
345
346 <annotation>
347 <appinfo>
348 <meta.section type="copyright"/>
349 </appinfo>
350 <documentation>
351 Copyright (c) 2013 École Polytechnique de Montréal
352
353 All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at &lt;a href=&quot;http://www.eclipse.org/legal/epl-v10.html&quot;&gt;http://www.eclipse.org/legal/epl-v10.html&lt;/a&gt;
354 </documentation>
355 </annotation>
356
357 </schema>
This page took 0.04048 seconds and 5 git commands to generate.