<?xml version="1.0" encoding="UTF-8"?>
<!--
  ****************************************************************
ERmodel_v1.2/instances/catalogue/src/conceptualModels/2RegularHypergraph.xml 
****************************************************************

Copyright 2016, 2107 Cyprotex Discovery Ltd.

This file is part of the the ERmodel suite of models and transforms.

The ERmodel suite is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

ERmodel suite is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
****************************************************************
-->
<entity_model xmlns="http://www.entitymodelling.org/ERmodel">
   <defaults>
      <et_width>2.2</et_width>
   </defaults>
   <entity_type>
      <name>A</name>
      <presentation>
         <x>8.4</x>
         <y>0.1</y>
         <h>2.0</h>
      </presentation>
      <attribute xmlns:era="http://www.entitymodelling.org/ERmodel">
         <name>name</name>
         <type>
            <string/>
         </type>
         <identifying/>
      </attribute>
   </entity_type>
   <entity_type>
      <name>B</name>
      <presentation>
         <x>0.1</x>
         <y>0.1</y>
         <h>2.0</h>
      </presentation>
      <reference>
         <name>h</name>
         <type>A</type>
         <cardinality>
            <ExactlyOne/>
         </cardinality>
         <id>R1</id>
         <diagram>
            <path>
               <align>
                  <ToSrc/>
               </align>
               <label>
                  <position>
                     <Upside/>
                  </position>
               </label>
            </path>
         </diagram>
      </reference>
      <reference>
         <name>f</name>
         <type>C</type>
         <cardinality>
            <ZeroOrOne/>
         </cardinality>
         <id>R2</id>
         <diagram>
            <path>
               <align>
                  <ToDest/>
               </align>
               <destattach>0.5</destattach>
               <label>
                  <position>
                     <Downside/>
                  </position>
               </label>
            </path>
         </diagram>
      </reference>
      <attribute xmlns:era="http://www.entitymodelling.org/ERmodel">
         <name>name</name>
         <type>
            <string/>
         </type>
         <identifying/>
      </attribute>
      <attribute xmlns:era="http://www.entitymodelling.org/ERmodel">
         <name>hname (R1)</name>
         <type>
            <string/>
         </type>
      </attribute>
      <attribute xmlns:era="http://www.entitymodelling.org/ERmodel">
         <name>fname (R2)</name>
         <type>
            <string/>
         </type>
      </attribute>
      <attribute xmlns:era="http://www.entitymodelling.org/ERmodel">
         <name>fgname (R2)</name>
         <type>
            <string/>
         </type>
      </attribute>
   </entity_type>
   <entity_type>
      <name>C</name>
      <presentation>
         <rightOf>B</rightOf>
         <x>2.0</x>
         <y>1.0</y>
         <h>1.1</h>
      </presentation>
      <reference>
         <name>g</name>
         <type>A</type>
         <cardinality>
            <ExactlyOne/>
         </cardinality>
         <identifying/>
         <id>R3</id>
         <diagram>
            <path>
               <align>
                  <ToSrc/>
               </align>
               <label>
                  <position>
                     <Downside/>
                  </position>
               </label>
            </path>
         </diagram>
      </reference>
      <attribute xmlns:era="http://www.entitymodelling.org/ERmodel">
         <name>name</name>
         <type>
            <string/>
         </type>
         <identifying/>
      </attribute>
      <attribute xmlns:era="http://www.entitymodelling.org/ERmodel">
         <name>gname (R3)</name>
         <type>
            <string/>
         </type>
         <identifying/>
      </attribute>
   </entity_type>
</entity_model>
