tmf : Add test suite for the pattern segment builder
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.analysis.xml.core.tests / test_xml_files / test_valid / state_provider_placement.xml
CommitLineData
f91c03f0
GB
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<tmfxml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11 xsi:noNamespaceSchemaLocation="xmlDefinition.xsd">
12
13 <stateProvider id="test.element.placement" version="1">
14
15 <location id="CurrentWorker">
16 <stateAttribute type="constant" value="Worker" />
17 <stateAttribute type="eventField" value="workerno" />
18 </location>
19
20 <!-- StateValues -->
21 <definedValue name="WORKING" value="3" />
22 <eventHandler eventName="start">
23 <stateChange>
24 <stateAttribute type="location" value="CurrentWorker" />
25 <stateValue type="int" value="$WORKING" />
26 </stateChange>
27 </eventHandler>
28
29 <definedValue name="WAIT" value="4" />
30 <eventHandler eventName="wait">
31 <stateChange>
32 <stateAttribute type="location" value="CurrentWorker" />
33 <stateValue type="int" value="$WAIT" />
34 </stateChange>
35 </eventHandler>
36
37 <definedValue name="IDLE" value="5" />
38 <eventHandler eventName="awake">
39 <stateChange>
40 <stateAttribute type="location" value="CurrentWorker" />
41 <stateValue type="int" value="$IDLE" />
42 </stateChange>
43 </eventHandler>
44 </stateProvider>
45</tmfxml>
This page took 0.024618 seconds and 5 git commands to generate.