<?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">
   <absolute>
      <name>Chen76</name>
      <composition>
         <cardinality>
            <OneOrMore/>
         </cardinality>
         <type>DEPT</type>
      </composition>
      <composition>
         <cardinality>
            <OneOrMore/>
         </cardinality>
         <type>EMP</type>
      </composition>
      <composition>
         <cardinality>
            <OneOrMore/>
         </cardinality>
         <type>PROJ</type>
      </composition>
      <composition>
         <cardinality>
            <OneOrMore/>
         </cardinality>
         <type>PART</type>
      </composition>
      <composition>
         <cardinality>
            <OneOrMore/>
         </cardinality>
         <type>SUPP</type>
      </composition>
   </absolute>
   <group>
      <name>body</name>
      <presentation>
         <y>1.0</y>
      </presentation>
      <entity_type>
         <name>DEPT</name>
         <presentation>
            <x>0.2</x>
            <deltaw>0.5</deltaw>
         </presentation>
         <attribute xmlns:era="http://www.entitymodelling.org/ERmodel">
            <name>DEPT-NO</name>
            <type>
               <string/>
            </type>
            <identifying/>
         </attribute>
         <composition>
            <cardinality>
               <OneOrMore/>
            </cardinality>
            <type>DEPT-EMP</type>
            <identifying/>
            <diagram>
               <path>
                  <destattach>0.3</destattach>
               </path>
            </diagram>
         </composition>
      </entity_type>
      <entity_type>
         <name>DEPT-EMP</name>
         <presentation>
            <below>DEPT</below>
            <deltaw>0.3</deltaw>
            <x>0.95</x>
         </presentation>
      </entity_type>
      <entity_type>
         <name>EMP</name>
         <presentation>
            <rightOf>DEPT</rightOf>
            <w>2.5</w>
         </presentation>
         <attribute xmlns:era="http://www.entitymodelling.org/ERmodel">
            <name>EMPLOYEE-NO</name>
            <type>
               <string/>
            </type>
            <identifying/>
         </attribute>
         <composition>
            <cardinality>
               <OneOrMore/>
            </cardinality>
            <type>DEPT-EMP</type>
            <identifying/>
            <diagram>
               <path>
                  <destattach>0.7</destattach>
               </path>
            </diagram>
         </composition>
         <composition>
            <cardinality>
               <OneOrMore/>
            </cardinality>
            <type>DEP</type>
            <identifying/>
         </composition>
         <composition>
            <cardinality>
               <OneOrMore/>
            </cardinality>
            <type>PROJ-WORKER</type>
            <identifying/>
            <diagram>
               <path>
                  <destattach>0.25</destattach>
               </path>
            </diagram>
         </composition>
      </entity_type>
      <entity_type>
         <name>DEP</name>
         <presentation>
            <below>EMP</below>
         </presentation>
         <reference>
            <type>EMP</type>
            <cardinality>
               <OneOrMore/>
            </cardinality>
         </reference>
      </entity_type>
      <group>
         <name>project_group</name>
         <presentation>
            <rightOf>EMP</rightOf>
            <x>1.0</x>
         </presentation>
         <entity_type>
            <name>PROJ</name>
            <presentation>
               <w>3.0</w>
            </presentation>
            <attribute xmlns:era="http://www.entitymodelling.org/ERmodel">
               <name>PROJECT-NO</name>
               <type>
                  <string/>
               </type>
               <identifying/>
            </attribute>
            <composition>
               <cardinality>
                  <ExactlyOne/>
               </cardinality>
               <type>PROJ-MAN</type>
               <identifying/>
               <diagram>
                  <path>
                     <align>
                        <ToDest/>
                     </align>
                  </path>
               </diagram>
            </composition>
            <composition>
               <cardinality>
                  <OneOrMore/>
               </cardinality>
               <type>PROJ-WORKER</type>
               <identifying/>
               <diagram>
                  <path>
                     <srcattach>0.75</srcattach>
                     <destattach>0.75</destattach>
                  </path>
               </diagram>
            </composition>
            <composition>
               <cardinality>
                  <OneOrMore/>
               </cardinality>
               <type>PROJ-PART</type>
               <identifying/>
               <diagram>
                  <path>
                     <srcattach>0.875</srcattach>
                     <destattach>0.25</destattach>
                  </path>
               </diagram>
            </composition>
         </entity_type>
         <group>
            <name>project_children</name>
            <presentation>
               <below>PROJ</below>
               <x>1.25</x>
            </presentation>
            <entity_type>
               <name>PROJ-MAN</name>
               <presentation>
                  <y>-0.75</y>
                  <deltaw>0.3</deltaw>
               </presentation>
               <reference>
                  <type>EMP</type>
                  <cardinality>
                     <ExactlyOne/>
                  </cardinality>
                  <diagram>
                     <path>
                        <srcarmlen>0.2</srcarmlen>
                     </path>
                  </diagram>
               </reference>
            </entity_type>
            <entity_type>
               <name>PROJ-WORKER</name>
               <presentation>
                  <below>PROJ-MAN</below>
                  <y>1.0</y>
                  <deltaw>0.55</deltaw>
               </presentation>
            </entity_type>
            <entity_type>
               <name>PROJ-PART</name>
               <presentation>
                  <rightOf>PROJ-MAN</rightOf>
                  <x>1.5</x>
                  <y>0.35</y>
                  <deltaw>0.2</deltaw>
               </presentation>
               <composition>
                  <cardinality>
                     <OneOrMore/>
                  </cardinality>
                  <type>PROJ-PART-SUPP</type>
                  <identifying/>
                  <diagram>
                     <path>
                        <destattach>0.25</destattach>
                     </path>
                  </diagram>
               </composition>
            </entity_type>
            <entity_type>
               <name>PROJ-PART-SUPP</name>
               <presentation>
                  <below>PROJ-PART</below>
                  <x>1.0</x>
                  <deltaw>0.35</deltaw>
               </presentation>
            </entity_type>
         </group>
      </group>
      <entity_type>
         <name>PART</name>
         <presentation>
            <rightOf>PROJ</rightOf>
            <deltaw>.4</deltaw>
         </presentation>
         <attribute xmlns:era="http://www.entitymodelling.org/ERmodel">
            <name>PART-NO</name>
            <type>
               <string/>
            </type>
            <identifying/>
         </attribute>
         <composition>
            <cardinality>
               <OneOrMore/>
            </cardinality>
            <type>PROJ-PART</type>
            <identifying/>
            <diagram>
               <path>
                  <destattach>0.75</destattach>
               </path>
            </diagram>
         </composition>
      </entity_type>
      <entity_type>
         <name>SUPP</name>
         <presentation>
            <rightOf>PART</rightOf>
            <deltaw>0.45</deltaw>
         </presentation>
         <attribute xmlns:era="http://www.entitymodelling.org/ERmodel">
            <name>SUPP-NO</name>
            <type>
               <string/>
            </type>
            <identifying/>
         </attribute>
         <composition>
            <cardinality>
               <OneOrMore/>
            </cardinality>
            <type>PROJ-PART-SUPP</type>
            <identifying/>
            <diagram>
               <path>
                  <destattach>0.75</destattach>
               </path>
            </diagram>
         </composition>
      </entity_type>
   </group>
</entity_model>
