<?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>// Place global declarations here.
clock c;
chan press;</declaration><template><name x="5" y="5">Lamp</name><declaration>// Place local declarations here.
</declaration><location id="id0" x="-8" y="-176"><name x="-8" y="-216">High</name></location><location id="id1" x="-144" y="-176"><name x="-144" y="-216">Low</name></location><location id="id2" x="-280" y="-176"><name x="-312" y="-208">Off</name></location><init ref="id2"/><transition><source ref="id1"/><target ref="id2"/><label kind="guard" x="-224" y="-120">c&gt;=5</label><label kind="synchronisation" x="-232" y="-144">press?</label><nail x="-160" y="-120"/><nail x="-256" y="-120"/></transition><transition><source ref="id0"/><target ref="id2"/><label kind="synchronisation" x="-152" y="-104">press?</label><nail x="-40" y="-80"/><nail x="-264" y="-80"/></transition><transition><source ref="id1"/><target ref="id0"/><label kind="guard" x="-88" y="-176">c&lt;5</label><label kind="synchronisation" x="-96" y="-200">press?</label></transition><transition><source ref="id2"/><target ref="id1"/><label kind="synchronisation" x="-232" y="-256">press?</label><label kind="assignment" x="-224" y="-232">c:=0</label><nail x="-256" y="-232"/><nail x="-168" y="-232"/></transition></template><template><name>User</name><location id="id3" x="-312" y="-208"><name x="-336" y="-248">Idle</name></location><init ref="id3"/><transition><source ref="id3"/><target ref="id3"/><label kind="synchronisation" x="-256" y="-224">press!</label><nail x="-264" y="-264"/><nail x="-264" y="-152"/></transition></template><system>// Place template instantiations here.

// List one or more processes to be composed into a system.
system Lamp, User;</system></nta>