<?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">
   <presentation>
      <diagram>
         <deltah>0.2</deltah>
      </diagram>
   </presentation>
   <entity_type>
      <name>$A_1$</name>
      <presentation>
         <y>0</y>
         <shape>
            <MiddleLeft/>
         </shape>
      </presentation>
      <reference>
         <name>base</name>
         <type>diagonal</type>
         <cardinality>
            <ZeroOrOne/>
         </cardinality>
         <diagram>
            <path>
               <destattach>0.3</destattach>
               <align>
                  <ToDest/>
               </align>
            </path>
         </diagram>
      </reference>
      <composition>
         <type>$A_2$</type>
         <cardinality>
            <ZeroOneOrMore/>
         </cardinality>
         <inverse>d1</inverse>
         <diagram>
            <path>
               <inverse>
                  <label>
                     <position>
                        <Left/>
                     </position>
                  </label>
               </inverse>
            </path>
         </diagram>
      </composition>
   </entity_type>
   <entity_type>
      <name>$A_2$</name>
      <presentation>
         <below>$A_1$</below>
         <y>0</y>
         <shape>
            <MiddleLeft/>
         </shape>
      </presentation>
      <dependency>
         <name>d1</name>
      </dependency>
      <composition>
         <type>$A_n$</type>
         <cardinality>
            <ZeroOneOrMore/>
         </cardinality>
         <diagram>
            <path/>
         </diagram>
      </composition>
   </entity_type>
   <entity_type>
      <name>$A_n$</name>
      <presentation>
         <below>$A_2$</below>
         <shape>
            <MiddleLeft/>
         </shape>
      </presentation>
      <composition>
         <type>A</type>
         <cardinality>
            <ZeroOneOrMore/>
         </cardinality>
         <inverse>dn</inverse>
         <diagram>
            <path>
               <inverse>
                  <label>
                     <position>
                        <Left/>
                     </position>
                  </label>
               </inverse>
            </path>
         </diagram>
      </composition>
   </entity_type>
   <entity_type>
      <name>A</name>
      <presentation>
         <x>0</x>
         <y>3.85</y>
         <deltah>0.3</deltah>
         <shape>
            <BottomLeft/>
         </shape>
      </presentation>
      <dependency>
         <name>dn</name>
      </dependency>
      <reference>
         <name>d</name>
         <type>diagonal</type>
         <cardinality>
            <ZeroOrOne/>
         </cardinality>
         <diagram>
            <path>
               <srcattach>0.3</srcattach>
               <destattach>0.6</destattach>
               <label>
                  <position>
                     <Upside/>
                  </position>
               </label>
            </path>
         </diagram>
      </reference>
   </entity_type>
   <entity_type>
      <name>diagonal</name>
      <presentation>
         <x>3.5</x>
         <y>0</y>
         <shape>
            <MiddleRight/>
         </shape>
      </presentation>
   </entity_type>
</entity_model>
