<?xml version="1.0" encoding="UTF-8"?>
<XMI verified="false" xmi.version="1.2" timestamp="2011-06-14T11:34:18" xmlns:UML="http://schema.omg.org/spec/UML/1.3">
 <XMI.header>
  <XMI.documentation>
   <XMI.exporter>umbrello uml modeller http://uml.sf.net</XMI.exporter>
   <XMI.exporterVersion>1.5.8</XMI.exporterVersion>
   <XMI.exporterEncoding>UnicodeUTF8</XMI.exporterEncoding>
  </XMI.documentation>
  <XMI.metamodel xmi.version="1.3" href="UML.xml" xmi.name="UML"/>
 </XMI.header>
 <XMI.content>
  <UML:Model isSpecification="false" isAbstract="false" isLeaf="false" xmi.id="m1" isRoot="false" name="UML Model">
   <UML:Namespace.ownedElement>
    <UML:Stereotype visibility="public" isSpecification="false" namespace="m1" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="folder" name="folder"/>
    <UML:Stereotype visibility="public" isSpecification="false" namespace="m1" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="datatype" name="datatype"/>
    <UML:Model stereotype="folder" visibility="public" isSpecification="false" namespace="m1" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="Logical View" name="Logical View">
     <UML:Namespace.ownedElement>
      <UML:Package stereotype="folder" visibility="public" isSpecification="false" namespace="Logical View" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="Datatypes" name="Datatypes">
       <UML:Namespace.ownedElement>
        <UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="NuquBRP7C5fA" name="int"/>
        <UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="WLH7Sy0rOA8d" name="char"/>
        <UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="GthpKFOh7EZG" name="bool"/>
        <UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="ewLo2zyYIDdl" name="float"/>
        <UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="9dcXni82bqpv" name="double"/>
        <UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="3Ba8QAM26iq6" name="short"/>
        <UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="fnex0Ig8tIdf" name="long"/>
        <UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="zmhaaUUdf4j3" name="unsigned int"/>
        <UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="C55HluNQh2Of" name="unsigned short"/>
        <UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="I4nBLRoKBVul" name="unsigned long"/>
        <UML:DataType stereotype="datatype" visibility="public" isSpecification="false" namespace="Datatypes" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="5gdAmuwgGMLI" name="string"/>
       </UML:Namespace.ownedElement>
      </UML:Package>
     </UML:Namespace.ownedElement>
     <XMI.extension xmi.extender="umbrello">
      <diagrams>
       <diagram showopsig="1" linecolor="#ff0000" snapx="10" showattribassocs="1" snapy="10" linewidth="0" showattsig="1" showpubliconly="1" showpackage="1" showstereotype="1" name="AgencyAgent state" font="Sans Serif,9,-1,0,50,0,0,0,0,0" canvasheight="827" canvaswidth="1509" localid="" snapcsgrid="0" showgrid="0" showops="1" usefillcolor="1" fillcolor="#ffff00" zoom="100" xmi.id="MwFcdtdDUF3P" documentation="" showscope="1" snapgrid="0" showatts="1" type="5">
        <widgets>
         <statewidget width="185" showstereotype="1" x="137" y="108" usesdiagramusefillcolor="0" statename="initiating" usesdiagramfillcolor="0" isinstance="0" fillcolor="#ffff00" height="38" linecolor="#ff0000" xmi.id="k4YZ3rBut6h6" statetype="1" usefillcolor="1" documentation="" linewidth="none" font="Sans Serif,9,-1,0,50,0,0,0,0,0">
          <Activities>
           <Activity name="wait for initiate() to finish"/>
          </Activities>
         </statewidget>
         <statewidget width="146" showstereotype="1" x="151" y="43" usesdiagramusefillcolor="0" statename="not_initiated" usesdiagramfillcolor="0" isinstance="0" fillcolor="#ffff00" height="38" linecolor="#ff0000" xmi.id="Jfp8ZeluNU8v" statetype="1" usefillcolor="1" documentation="Initial state of the AgencyAgent" linewidth="none" font="Sans Serif,9,-1,5,50,0,0,0,0,0">
          <Activities>
           <Activity name="call IAgent.initiate()"/>
          </Activities>
         </statewidget>
         <statewidget width="148" showstereotype="1" x="147" y="172" usesdiagramusefillcolor="0" statename="initiated" usesdiagramfillcolor="0" isinstance="0" fillcolor="#ffff00" height="38" linecolor="#ff0000" xmi.id="oELx9C1oHgsS" statetype="1" usefillcolor="1" documentation="" linewidth="none" font="Sans Serif,9,-1,0,50,0,0,0,0,0">
          <Activities>
           <Activity name="call IAgent.startup()"/>
          </Activities>
         </statewidget>
         <statewidget width="290" showstereotype="1" x="98" y="229" usesdiagramusefillcolor="0" statename="starting_up" usesdiagramfillcolor="0" isinstance="0" fillcolor="#ffff00" height="66" linecolor="#ff0000" xmi.id="qqTyP7hHUCQN" statetype="1" usefillcolor="1" documentation="" linewidth="none" font="Sans Serif,9,-1,0,50,0,0,0,0,0">
          <Activities>
           <Activity name="wait for startup() to finish"/>
           <Activity name="If startup is successfull go to ready state"/>
           <Activity name="If startup() failed go to terminating state"/>
          </Activities>
         </statewidget>
         <statewidget width="149" showstereotype="1" x="92" y="358" usesdiagramusefillcolor="0" statename="ready" usesdiagramfillcolor="0" isinstance="0" fillcolor="#ffff00" height="38" linecolor="#ff0000" xmi.id="QbrCpC7yM9ld" statetype="1" usefillcolor="1" documentation="Agent stays in this state for majority of his lifetime.&#xa;If connection to db/messaging is lost, go to terminated state." linewidth="none" font="Sans Serif,9,-1,5,50,0,0,0,0,0">
          <Activities>
           <Activity name="perform agent tasks"/>
          </Activities>
         </statewidget>
         <statewidget width="299" showstereotype="1" x="402" y="349" usesdiagramusefillcolor="0" statename="terminating" usesdiagramfillcolor="0" isinstance="0" fillcolor="#ffff00" height="38" linecolor="#ff0000" xmi.id="pd5GAHw05NwT" statetype="1" usefillcolor="1" documentation="" linewidth="none" font="Sans Serif,9,-1,0,50,0,0,0,0,0">
          <Activities>
           <Activity name="wait for _termination_procedure to finish()"/>
          </Activities>
         </statewidget>
         <statewidget width="126" showstereotype="1" x="418" y="432" usesdiagramusefillcolor="0" statename="terminated" usesdiagramfillcolor="0" isinstance="0" fillcolor="#ffff00" height="38" linecolor="#ff0000" xmi.id="Ueiwq8KEj9RX" statetype="1" usefillcolor="1" documentation="" linewidth="none" font="Sans Serif,9,-1,0,50,0,0,0,0,0">
          <Activities>
           <Activity name="unregister agent"/>
          </Activities>
         </statewidget>
         <statewidget width="275" showstereotype="1" x="32" y="452" usesdiagramusefillcolor="0" statename="disconnected" usesdiagramfillcolor="0" isinstance="0" fillcolor="#ffff00" height="66" linecolor="#ff0000" xmi.id="LYVfhEJUsMl0" statetype="1" usefillcolor="1" documentation="" linewidth="none" font="Sans Serif,9,-1,0,75,0,0,0,0,0">
          <Activities>
           <Activity name="call IAgent.on_disconnect()"/>
           <Activity name="wait for reconnector to fix the problem"/>
           <Activity name="run IAgent.on_reconnect()"/>
          </Activities>
         </statewidget>
         <statewidget width="24" showstereotype="1" x="449" y="497" usesdiagramusefillcolor="1" statename="State" usesdiagramfillcolor="1" isinstance="0" fillcolor="none" height="25" linecolor="none" xmi.id="cq4WCn8R1UkA" statetype="2" usefillcolor="1" documentation="" linewidth="none" font="Sans Serif,9,-1,0,50,0,0,0,0,0">
          <Activities/>
         </statewidget>
         <statewidget width="25" showstereotype="1" x="207" y="4" usesdiagramusefillcolor="1" statename="State" usesdiagramfillcolor="1" isinstance="0" fillcolor="none" height="19" linecolor="none" xmi.id="uUL9Mq52dNdR" statetype="0" usefillcolor="1" documentation="" linewidth="none" font="Sans Serif,9,-1,0,50,0,0,0,0,0">
          <Activities/>
         </statewidget>
         <floatingtext linecolor="none" usesdiagramfillcolor="1" linewidth="none" usesdiagramusefillcolor="1" x="274" showstereotype="1" y="350" text=".terminate() called" font="Sans Serif,9,-1,0,50,0,0,0,0,0" pretext="" role="700" width="120" isinstance="0" posttext="" usefillcolor="1" fillcolor="none" xmi.id="BrINeOngtXo1" height="18"/>
         <floatingtext linecolor="none" usesdiagramfillcolor="1" linewidth="none" usesdiagramusefillcolor="1" x="282" showstereotype="1" y="405" text=".terminate() called" font="Sans Serif,9,-1,0,50,0,0,0,0,0" pretext="" role="700" width="120" isinstance="0" posttext="" usefillcolor="1" fillcolor="none" xmi.id="BrINeOngtXo1" height="18"/>
         <floatingtext linecolor="none" usesdiagramfillcolor="1" linewidth="none" usesdiagramusefillcolor="1" x="417" showstereotype="1" y="161" text="initiate() failed" font="Sans Serif,9,-1,0,50,0,0,0,0,0" pretext="" role="700" width="95" isinstance="0" posttext="" usefillcolor="1" fillcolor="none" xmi.id="iCAsWCJZpYyx" height="18"/>
        </widgets>
        <messages/>
        <associations>
         <assocwidget indexa="1" indexb="1" visibilityA="0" widgetaid="Jfp8ZeluNU8v" visibilityB="0" roleBdoc="" roleAdoc="" linecolor="none" changeabilityA="900" totalcounta="2" changeabilityB="900" widgetbid="k4YZ3rBut6h6" totalcountb="2" type="514" documentation="" linewidth="none">
          <linepath>
           <startpoint startx="214" starty="81"/>
           <endpoint endx="214" endy="108"/>
          </linepath>
         </assocwidget>
         <assocwidget indexa="1" indexb="1" visibilityA="0" widgetaid="k4YZ3rBut6h6" visibilityB="0" roleBdoc="" roleAdoc="" linecolor="none" changeabilityA="900" totalcounta="3" changeabilityB="900" widgetbid="oELx9C1oHgsS" totalcountb="2" type="514" documentation="" linewidth="none">
          <linepath>
           <startpoint startx="214" starty="146"/>
           <endpoint endx="214" endy="172"/>
          </linepath>
         </assocwidget>
         <assocwidget indexa="1" indexb="1" visibilityA="0" widgetaid="oELx9C1oHgsS" visibilityB="0" roleBdoc="" roleAdoc="" linecolor="none" changeabilityA="900" totalcounta="2" changeabilityB="900" widgetbid="qqTyP7hHUCQN" totalcountb="2" type="514" documentation="" linewidth="none">
          <linepath>
           <startpoint startx="214" starty="210"/>
           <endpoint endx="214" endy="229"/>
          </linepath>
         </assocwidget>
         <assocwidget indexa="1" indexb="1" visibilityA="0" widgetaid="qqTyP7hHUCQN" visibilityB="0" roleBdoc="" roleAdoc="" linecolor="none" changeabilityA="900" totalcounta="3" changeabilityB="900" widgetbid="QbrCpC7yM9ld" totalcountb="2" type="514" documentation="" linewidth="none">
          <linepath>
           <startpoint startx="170" starty="295"/>
           <endpoint endx="170" endy="358"/>
          </linepath>
         </assocwidget>
         <assocwidget indexa="2" indexb="1" visibilityA="0" widgetaid="qqTyP7hHUCQN" visibilityB="0" roleBdoc="" roleAdoc="" linecolor="none" changeabilityA="900" totalcounta="3" changeabilityB="900" widgetbid="pd5GAHw05NwT" totalcountb="3" type="514" documentation="" linewidth="none">
          <linepath>
           <startpoint startx="388" starty="295"/>
           <endpoint endx="458" endy="349"/>
           <point x="458" y="319"/>
          </linepath>
         </assocwidget>
         <assocwidget indexa="2" indexb="1" visibilityA="0" widgetaid="pd5GAHw05NwT" visibilityB="0" roleBdoc="" roleAdoc="" linecolor="none" changeabilityA="900" totalcounta="3" changeabilityB="900" widgetbid="Ueiwq8KEj9RX" totalcountb="2" type="514" documentation="" linewidth="none">
          <linepath>
           <startpoint startx="455" starty="387"/>
           <endpoint endx="455" endy="432"/>
          </linepath>
         </assocwidget>
         <assocwidget indexa="1" indexb="1" visibilityA="0" widgetaid="QbrCpC7yM9ld" visibilityB="0" roleBdoc="" roleAdoc="" linecolor="none" changeabilityA="900" totalcounta="2" changeabilityB="900" widgetbid="pd5GAHw05NwT" totalcountb="2" type="514" documentation="" linewidth="none">
          <linepath>
           <startpoint startx="241" starty="369"/>
           <endpoint endx="402" endy="369"/>
           <point x="258" y="369"/>
          </linepath>
         </assocwidget>
         <assocwidget indexa="2" indexb="1" visibilityA="0" widgetaid="QbrCpC7yM9ld" visibilityB="0" roleBdoc="" roleAdoc="" linecolor="none" changeabilityA="900" totalcounta="3" changeabilityB="900" widgetbid="LYVfhEJUsMl0" totalcountb="4" type="514" documentation="" linewidth="none">
          <linepath>
           <startpoint startx="226" starty="396"/>
           <endpoint endx="226" endy="452"/>
          </linepath>
         </assocwidget>
         <assocwidget indexa="2" indexb="1" visibilityA="0" widgetaid="LYVfhEJUsMl0" visibilityB="0" roleBdoc="" roleAdoc="" linecolor="none" changeabilityA="900" totalcounta="4" changeabilityB="900" widgetbid="QbrCpC7yM9ld" totalcountb="3" type="514" documentation="" linewidth="none">
          <linepath>
           <startpoint startx="117" starty="452"/>
           <endpoint endx="117" endy="396"/>
          </linepath>
         </assocwidget>
         <assocwidget indexa="3" indexb="1" visibilityA="0" widgetaid="LYVfhEJUsMl0" visibilityB="0" roleBdoc="" roleAdoc="" linecolor="none" changeabilityA="900" totalcounta="4" changeabilityB="900" widgetbid="pd5GAHw05NwT" totalcountb="3" type="514" documentation="" linewidth="none">
          <linepath>
           <startpoint startx="261" starty="452"/>
           <endpoint endx="402" endy="387"/>
           <point x="261" y="450"/>
           <point x="292" y="420"/>
          </linepath>
         </assocwidget>
         <assocwidget indexa="1" indexb="1" visibilityA="0" widgetaid="Ueiwq8KEj9RX" visibilityB="0" roleBdoc="" roleAdoc="" linecolor="none" changeabilityA="900" totalcounta="2" changeabilityB="900" widgetbid="cq4WCn8R1UkA" totalcountb="2" type="514" documentation="" linewidth="none">
          <linepath>
           <startpoint startx="459" starty="470"/>
           <endpoint endx="459" endy="497"/>
          </linepath>
         </assocwidget>
         <assocwidget indexa="1" indexb="1" visibilityA="0" widgetaid="uUL9Mq52dNdR" visibilityB="0" roleBdoc="" roleAdoc="" linecolor="none" changeabilityA="900" totalcounta="2" changeabilityB="900" widgetbid="Jfp8ZeluNU8v" totalcountb="2" type="514" documentation="" linewidth="none">
          <linepath>
           <startpoint startx="219" starty="23"/>
           <endpoint endx="219" endy="43"/>
          </linepath>
         </assocwidget>
         <assocwidget indexa="2" indexb="2" visibilityA="0" widgetaid="k4YZ3rBut6h6" visibilityB="0" roleBdoc="" roleAdoc="" linecolor="none" changeabilityA="900" totalcounta="3" changeabilityB="900" widgetbid="pd5GAHw05NwT" totalcountb="3" type="514" documentation="" linewidth="none">
          <linepath>
           <startpoint startx="322" starty="146"/>
           <endpoint endx="547" endy="349"/>
           <point x="547" y="204"/>
          </linepath>
         </assocwidget>
        </associations>
       </diagram>
      </diagrams>
     </XMI.extension>
    </UML:Model>
    <UML:Model stereotype="folder" visibility="public" isSpecification="false" namespace="m1" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="Use Case View" name="Use Case View">
     <UML:Namespace.ownedElement/>
    </UML:Model>
    <UML:Model stereotype="folder" visibility="public" isSpecification="false" namespace="m1" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="Component View" name="Component View">
     <UML:Namespace.ownedElement/>
    </UML:Model>
    <UML:Model stereotype="folder" visibility="public" isSpecification="false" namespace="m1" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="Deployment View" name="Deployment View">
     <UML:Namespace.ownedElement/>
    </UML:Model>
    <UML:Model stereotype="folder" visibility="public" isSpecification="false" namespace="m1" isAbstract="false" isLeaf="false" isRoot="false" xmi.id="Entity Relationship Model" name="Entity Relationship Model">
     <UML:Namespace.ownedElement/>
    </UML:Model>
   </UML:Namespace.ownedElement>
  </UML:Model>
 </XMI.content>
 <XMI.extensions xmi.extender="umbrello">
  <docsettings viewid="MwFcdtdDUF3P" uniqueid="iCAsWCJZpYyx" documentation=""/>
  <listview>
   <listitem open="1" type="800" id="Views">
    <listitem open="1" type="801" id="Logical View">
     <listitem open="0" type="808" id="MwFcdtdDUF3P" label="AgencyAgent state"/>
     <listitem open="0" type="830" id="Datatypes">
      <listitem open="1" type="829" id="GthpKFOh7EZG"/>
      <listitem open="1" type="829" id="WLH7Sy0rOA8d"/>
      <listitem open="1" type="829" id="9dcXni82bqpv"/>
      <listitem open="1" type="829" id="ewLo2zyYIDdl"/>
      <listitem open="1" type="829" id="NuquBRP7C5fA"/>
      <listitem open="1" type="829" id="fnex0Ig8tIdf"/>
      <listitem open="1" type="829" id="3Ba8QAM26iq6"/>
      <listitem open="1" type="829" id="5gdAmuwgGMLI"/>
      <listitem open="1" type="829" id="zmhaaUUdf4j3"/>
      <listitem open="1" type="829" id="I4nBLRoKBVul"/>
      <listitem open="1" type="829" id="C55HluNQh2Of"/>
     </listitem>
    </listitem>
    <listitem open="1" type="802" id="Use Case View"/>
    <listitem open="1" type="821" id="Component View"/>
    <listitem open="1" type="827" id="Deployment View"/>
    <listitem open="1" type="836" id="Entity Relationship Model"/>
   </listitem>
  </listview>
  <codegeneration>
   <codegenerator language="C++"/>
  </codegeneration>
 </XMI.extensions>
</XMI>
