tmf.xml: Add mapping group to XML description
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.analysis.xml.core.tests / test_xml_files / test_valid / test_consuming_fsm.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <tmfxml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:noNamespaceSchemaLocation="xmlDefinition.xsd">
4 <!-- ***************************************************************************
5 * Copyright (c) 2016 Ericsson
6 *
7 * All rights reserved. This program and the accompanying materials are
8 * made available under the terms of the Eclipse Public License v1.0 which
9 * accompanies this distribution, and is available at
10 * http://www.eclipse.org/legal/epl-v10.html
11 *************************************************************************** -->
12 <pattern version="0" id="syscall.analysis">
13 <mappingGroup id="group">
14 <entry>
15 <stateValue type="int" value="1" />
16 <stateValue type="string" value="open" />
17 </entry>
18 </mappingGroup>
19 <patternHandler>
20 <action id="increment_counter_consuming">
21 <stateChange>
22 <stateAttribute type="constant" value="consuming" />
23 <stateValue increment="true" type="long" value="1"/>
24 </stateChange>
25 </action>
26
27 <fsm id="consuming">
28 <state id="start">
29 <transition event="entry" target="exit_state"/>
30 </state>
31 <state id="exit_state" >
32 <transition event="exit" target="end" action="increment_counter_consuming"/>
33 </state>
34 <final id="end"/>
35 </fsm>
36
37 <action id="increment_counter_non_consuming">
38 <stateChange>
39 <stateAttribute type="constant" value="non_consuming" />
40 <stateValue increment="true" type="long" value="1"/>
41 </stateChange>
42 </action>
43
44 <fsm id="non_consuming" consuming="false">
45 <state id="start">
46 <transition event="entry" target="exit_state"/>
47 </state>
48 <state id="exit_state" >
49 <transition event="exit" target="end" action="increment_counter_non_consuming"/>
50 </state>
51 <final id="end"/>
52 </fsm>
53
54 <action id="segment_create">
55 <segment>
56 <segType>
57 <segName>
58 <stateValue mappingGroup="group" type="int" value="1"/>
59 </segName>
60 </segType>
61 </segment>
62 </action>
63
64 <fsm id="mapping" multiple="false">
65 <state id="start">
66 <transition event="entry" target="end" action="segment_create" />
67 </state>
68 <final id="end"/>
69 </fsm>
70 </patternHandler>
71 </pattern>
72 </tmfxml>
This page took 0.046238 seconds and 5 git commands to generate.