<?xml version="1.0" encoding="UTF-8"?>
<model version="2.2.03">
 <documentation>Simple model template for QP/C</documentation>
 <framework name="qpc"/>
 <package name="Events" stereotype="0x01">
  <class name="Tick" superclass="qpc::QEvt"/>
  <class name="Key" superclass="qpc::QEvt">
   <attribute name="nr" type="uint32_t" visibility="0x00" properties="0x00"/>
  </class>
 </package>
 <package name="AOs" stereotype="0x02">
  <class name="MyAO" superclass="qpc::QActive">
   <documentation>Test active object</documentation>
   <attribute name="timer" type="uint32_t" visibility="0x00" properties="0x00"/>
   <statechart>
    <initial target="../1">
     <initial_glyph conn="5,5,5,0,8,4">
      <action box="0,-2,6,2"/>
     </initial_glyph>
    </initial>
    <state name="State1">
     <entry brief="timer = 0"/>
     <tran trig="eTick() [timer &lt; 5]">
      <action brief="timer++"/>
      <tran_glyph conn="11,19,3,-1,20">
       <action box="0,-2,17,3"/>
      </tran_glyph>
     </tran>
     <tran trig="eKey(key)">
      <action brief="led_set(key, 1)"/>
      <tran_glyph conn="11,24,3,-1,20">
       <action box="0,-2,18,2"/>
      </tran_glyph>
     </tran>
     <tran trig="eTick() [timer &gt;= 5]" target="../../2">
      <action brief=" "/>
      <tran_glyph conn="37,15,1,3,30">
       <action box="0,-2,16,2"/>
      </tran_glyph>
     </tran>
     <state_glyph node="11,9,26,19">
      <entry box="1,2,12,2"/>
     </state_glyph>
    </state>
    <state name="State2">
     <tran trig="eTick()" target="../../1">
      <action brief="leds off"/>
      <tran_glyph conn="67,23,3,1,-30">
       <action box="-13,-2,13,2"/>
      </tran_glyph>
     </tran>
     <state_glyph node="67,9,28,19"/>
    </state>
    <state_diagram size="140,90"/>
   </statechart>
  </class>
 </package>
 <directory name=".">
  <file name="project.h">
   <text>#include &quot;qp_port.h&quot;

$define(AOs::MyAO)

/* define some other functions */</text>
  </file>
  <file name="myao.c">
   <text>
$declare(AOs::MyAO)
$define(AOs::MyAO)</text>
  </file>
 </directory>
</model>
