~opaal-developers/opaal/trunk

« back to all changes in this revision

Viewing changes to tests/SimpleLeader3_mod.xml

  • Committer: Mads Chr. Olesen
  • Date: 2013-09-24 10:05:34 UTC
  • mfrom: (54.1.134 opaal-ltsmin-succgen)
  • Revision ID: launchpad@shiyee.dk-20130924100534-xg7ijz0sbdabnz36
Make the ltsmin gensuccgen branch the new trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE nta PUBLIC '-//Uppaal Team//DTD Flat System 1.1//EN' 'http://www.it.uu.se/research/group/darts/uppaal/flat-1_1.dtd'><nta><declaration>//Insert declarations of global clocks, variables, constants and channels.
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<!DOCTYPE nta PUBLIC '-//Uppaal Team//DTD Flat System 1.1//EN' 'http://www.it.uu.se/research/group/darts/uppaal/flat-1_1.dtd'>
 
3
<nta>
 
4
        <declaration>//Insert declarations of global clocks, variables, constants and channels.
2
5
 
3
6
const int N = 6;
4
7
const int MaxD = 2;
12
15
broadcast chan receive[N];
13
16
//id_t shared;
14
17
 
15
 
</declaration><template><name>Node</name><parameter>const id_t id, const id_t pr</parameter><declaration>id_t cur := pr;
 
18
</declaration>
 
19
        <template>
 
20
                <name>Node</name>
 
21
                <parameter>const id_t id, const id_t pr</parameter>
 
22
                <declaration>id_t cur := pr;
16
23
 
17
 
clock x;</declaration><location id="id0" x="-736" y="-152"><name x="-760" y="-136">Leader</name><committed/></location><location id="id1" x="-736" y="-288"><label kind="invariant" x="-720" y="-312">x&lt;=MaxD</label></location><init ref="id1"/><transition><source ref="id1"/><target ref="id1"/><label kind="select" x="-808" y="-392">e:id_t</label><label kind="guard" x="-752" y="-392">e&gt;pr</label><label kind="synchronisation" x="-776" y="-368">send[id][e]?</label><label kind="assignment" x="-704" y="-392">cur=e</label><nail x="-664" y="-368"/><nail x="-808" y="-368"/></transition><transition><source ref="id1"/><target ref="id0"/><label kind="synchronisation" x="-776" y="-224">send[id][pr]?</label></transition><transition><source ref="id1"/><target ref="id1"/><label kind="synchronisation" x="-664" y="-280">send[(id+1)%N][cur]!</label><label kind="assignment" x="-664" y="-264">x.reset()</label><nail x="-632" y="-288"/><nail x="-632" y="-200"/></transition><transition><source ref="id1"/><target ref="id1"/><label kind="select" x="-816" y="-312">e:id_t</label><label kind="guard" x="-856" y="-312">e&lt;pr</label><label kind="synchronisation" x="-872" y="-280">send[id][e]?</label><nail x="-840" y="-288"/><nail x="-840" y="-200"/></transition></template><system>//Insert process assignments.
 
24
clock x;</declaration>
 
25
                <location id="id0" x="-736" y="-152">
 
26
                        <name x="-760" y="-136">Leader</name>
 
27
                        <committed/>
 
28
                </location>
 
29
                <location id="id1" x="-736" y="-288">
 
30
                </location>
 
31
                <init ref="id1"/>
 
32
                <transition>
 
33
                        <source ref="id1"/>
 
34
                        <target ref="id1"/>
 
35
                        <label kind="select" x="-808" y="-392">e:id_t</label>
 
36
                        <label kind="guard" x="-752" y="-392">e&gt;pr</label>
 
37
                        <label kind="synchronisation" x="-776" y="-368">send[id][e]?</label>
 
38
                        <label kind="assignment" x="-704" y="-392">cur=e</label>
 
39
                        <nail x="-664" y="-368"/>
 
40
                        <nail x="-808" y="-368"/>
 
41
                </transition>
 
42
                <transition>
 
43
                        <source ref="id1"/>
 
44
                        <target ref="id0"/>
 
45
                        <label kind="synchronisation" x="-776" y="-224">send[id][pr]?</label>
 
46
                </transition>
 
47
                <transition>
 
48
                        <source ref="id1"/>
 
49
                        <target ref="id1"/>
 
50
                        <label kind="synchronisation" x="-664" y="-280">send[(id+1)%N][cur]!</label>
 
51
                        <label kind="assignment" x="-664" y="-264">x.reset()</label>
 
52
                        <nail x="-632" y="-288"/>
 
53
                        <nail x="-632" y="-200"/>
 
54
                </transition>
 
55
                <transition>
 
56
                        <source ref="id1"/>
 
57
                        <target ref="id1"/>
 
58
                        <label kind="select" x="-816" y="-312">e:id_t</label>
 
59
                        <label kind="guard" x="-856" y="-312">e&lt;pr</label>
 
60
                        <label kind="synchronisation" x="-872" y="-280">send[id][e]?</label>
 
61
                        <nail x="-840" y="-288"/>
 
62
                        <nail x="-840" y="-200"/>
 
63
                </transition>
 
64
        </template>
 
65
        <system>//Insert process assignments.
18
66
 
19
67
N0 := Node(0,1);
20
68
N1 := Node(1,0);
25
73
 
26
74
 
27
75
//Edit system definition.
28
 
system N0, N1, N2, N3, N4, N5;</system></nta>
 
 
b'\\ No newline at end of file'
 
76
system N0, N1, N2, N3, N4, N5;</system>
 
77
</nta>