498875ad6c15ba6f10f08cc59d614b6e1c422d97
[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 <patternHandler>
14 <action id="increment_counter_consuming">
15 <stateChange>
16 <stateAttribute type="constant" value="consuming" />
17 <stateValue increment="true" type="long" value="1"/>
18 </stateChange>
19 </action>
20
21 <fsm id="consuming">
22 <state id="start">
23 <transition event="entry" target="exit_state"/>
24 </state>
25 <state id="exit_state" >
26 <transition event="exit" target="end" action="increment_counter_consuming"/>
27 </state>
28 <final id="end"/>
29 </fsm>
30
31 <action id="increment_counter_non_consuming">
32 <stateChange>
33 <stateAttribute type="constant" value="non_consuming" />
34 <stateValue increment="true" type="long" value="1"/>
35 </stateChange>
36 </action>
37
38 <fsm id="non_consuming" consuming="false">
39 <state id="start">
40 <transition event="entry" target="exit_state"/>
41 </state>
42 <state id="exit_state" >
43 <transition event="exit" target="end" action="increment_counter_non_consuming"/>
44 </state>
45 <final id="end"/>
46 </fsm>
47 </patternHandler>
48 </pattern>
49 </tmfxml>
This page took 0.061992 seconds and 4 git commands to generate.