xml: bug 497959 add the possibility to update the current state
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.analysis.xml.core.tests / test_xml_files / test_valid / test_state_values.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- ***************************************************************************
3 * Copyright (c) 2016 École Polytechnique de Montréal
4 *
5 * All rights reserved. This program and the accompanying materials are
6 * made available under the terms of the Eclipse Public License v1.0 which
7 * accompanies this distribution, and is available at
8 * http://www.eclipse.org/legal/epl-v10.html
9 *
10 * Contributors:
11 * Geneviève Bastien - Initial API and implementation
12 *************************************************************************** -->
13 <tmfxml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14 xsi:noNamespaceSchemaLocation="xmlDefinition.xsd">
15
16 <stateProvider id="test.xml.attributes" version="1">
17
18 <!-- Test to see that state values are updated or modified depending on the requested state change -->
19 <eventHandler eventName="entry">
20 <stateChange>
21 <stateAttribute type="constant" value="update" />
22 <stateAttribute type="eventField" value="cpu" />
23 <stateValue type="string" value="UNKNOWN" />
24 </stateChange>
25 <stateChange>
26 <stateAttribute type="constant" value="modify" />
27 <stateAttribute type="eventField" value="cpu" />
28 <stateValue type="string" value="UNKNOWN" />
29 </stateChange>
30 </eventHandler>
31 <eventHandler eventName="exit">
32 <stateChange>
33 <stateAttribute type="constant" value="update" />
34 <stateAttribute type="eventField" value="cpu" />
35 <stateValue type="eventField" value="curState" update="true" />
36 </stateChange>
37 <stateChange>
38 <stateAttribute type="constant" value="update" />
39 <stateAttribute type="eventField" value="cpu" />
40 <stateValue type="null" />
41 </stateChange>
42 <stateChange>
43 <stateAttribute type="constant" value="modify" />
44 <stateAttribute type="eventField" value="cpu" />
45 <stateValue type="eventField" value="curState" />
46 </stateChange>
47 </eventHandler>
48 </stateProvider>
49 </tmfxml>
This page took 0.032235 seconds and 5 git commands to generate.