<?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>ABC0.ABstarC</name>
    <composition>
      <type>A</type>
      <cardinality>
        <OneOrMore/>
      </cardinality>
      <inverse>..</inverse>
    </composition>
    <composition>
      <type>C</type>
      <cardinality>
        <OneOrMore/>
      </cardinality>
      <inverse>..</inverse>
    </composition>
  </absolute>

  <entity_type>
    <name>A</name>
    <presentation>
      <x>0.3</x>
      <y>1.3</y>
    </presentation>
    <dependency>
      <name>..</name>
    </dependency>
    <composition>
      <type>B</type>
      <cardinality>
        <OneOrMore/>
      </cardinality>
      <inverse>a</inverse>
    </composition>
    <attribute xmlns:era="http://www.entitymodelling.org/ERmodel">
      <name>name</name>
      <type>
        <string/>
      </type>
      <identifying/>
    </attribute>
  </entity_type>
  
  <entity_type>
    <name>B</name>
    <presentation>
      <below>A</below>
      <deltaw>0.2</deltaw>
    </presentation>
    <dependency>
      <name>a</name>
      <type>A</type>
    </dependency>
    <reference>
      <name>c</name>
      <type>C</type>
      <cardinality>
        <ExactlyOne/>
      </cardinality>
      <diagonal>
        <join>
          <component>
            <rel>a</rel>
          </component>
          <component>
            <rel>..</rel>
          </component>
        </join>
      </diagonal>
      <riser>
        <join>
          <component>
            <rel>..</rel>
          </component>
        </join>
      </riser>
      <diagram>
        <path>
          <align>
            <ToSrc/>
          </align>
          <label>
            <position>
              <Upside/>
            </position>
          </label>
          <id>
            <label>
              <position>
                <Downside/>
              </position>
              <xAdjustment>-0.1</xAdjustment>
            </label>
          </id>
          <scope>
            <label>
              <xAdjustment>-0.5</xAdjustment>
              <yAdjustment>0.5</yAdjustment>
            </label>
          </scope>
        </path>
      </diagram>
    </reference>
    <attribute xmlns:era="http://www.entitymodelling.org/ERmodel">
      <name>name</name>
      <type>
        <string/>
      </type>
      <identifying/>
    </attribute>
  </entity_type>
  
  <entity_type>
    <name>C</name>
    <presentation>
      <rightOf>B</rightOf>
      <x>3.0</x>
      <y>0.1</y>
    </presentation>
    <dependency>
      <name>..</name>
    </dependency>
    <attribute xmlns:era="http://www.entitymodelling.org/ERmodel">
      <name>name</name>
      <type>
        <string/>
      </type>
      <identifying/>
    </attribute>
  </entity_type>
  
</entity_model>
