rental
RentalAgency
book
customer
rentedObject
from
to
addCustomer
customer
addObject
object
removeCustomer
customer
removeObject
object
isAvailable
rentedObject
from
to
name
objectsToRent
customers
rentals
Customer
getDisplayName
firstName
lastName
parentAgency
StreetType
Street
Street
Road
Road
RentalObject
rent
customer
ID
name
picture
parentAgency
Image
org.eclipse.swt.graphics.Image
org.eclipse.swt.graphics.Image
Rental
nbDaysBooked
customer
rentedObject
startDate
endDate
parentAgency
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="rental" nsURI="http://com.opcoach.training/rentalSansGmfAnnot/1.0"
    nsPrefix="rental">
  <eClassifiers xsi:type="ecore:EClass" name="RentalAgency">
    <eOperations name="book" eType="#//Rental">
      <eParameters name="customer" eType="#//Customer"/>
      <eParameters name="rentedObject" eType="#//RentalObject"/>
      <eParameters name="from" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/>
      <eParameters name="to" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/>
    </eOperations>
    <eOperations name="addCustomer">
      <eParameters name="customer" eType="#//Customer"/>
    </eOperations>
    <eOperations name="addObject">
      <eParameters name="object" eType="#//RentalObject"/>
    </eOperations>
    <eOperations name="removeCustomer">
      <eParameters name="customer" eType="#//Customer"/>
    </eOperations>
    <eOperations name="removeObject">
      <eParameters name="object" eType="#//RentalObject"/>
    </eOperations>
    <eOperations name="isAvailable" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
      <eParameters name="rentedObject" eType="#//RentalObject"/>
      <eParameters name="from" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/>
      <eParameters name="to" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/>
    </eOperations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="objectsToRent" upperBound="-1"
        eType="#//RentalObject" containment="true" eOpposite="#//RentalObject/parentAgency"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="customers" upperBound="-1"
        eType="#//Customer" containment="true" eOpposite="#//Customer/parentAgency"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="rentals" upperBound="-1"
        eType="#//Rental" containment="true" eOpposite="#//Rental/parentAgency"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Customer">
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="constraints" value="consistentName"/>
    </eAnnotations>
    <eOperations name="getDisplayName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="firstName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="lastName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="parentAgency" lowerBound="1"
        eType="#//RentalAgency" eOpposite="#//RentalAgency/customers"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="StreetType">
    <eLiterals name="Street"/>
    <eLiterals name="Road" value="1"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="RentalObject">
    <eOperations name="rent" eType="#//Rental">
      <eParameters name="customer" eType="#//Customer"/>
    </eOperations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="ID" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELong"
        iD="true"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="picture" eType="#//Image"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="parentAgency" lowerBound="1"
        eType="#//RentalAgency" eOpposite="#//RentalAgency/objectsToRent"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EDataType" name="Image" instanceClassName="org.eclipse.swt.graphics.Image"/>
  <eClassifiers xsi:type="ecore:EClass" name="Rental">
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="constraints" value="startDateBeforeEndDate"/>
    </eAnnotations>
    <eOperations name="nbDaysBooked" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="customer" lowerBound="1"
        eType="#//Customer">
      <eAnnotations source="gmf.link">
        <details key="target.decoration" value="arrow"/>
        <details key="style" value="dash"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="rentedObject" eType="#//RentalObject">
      <eAnnotations source="gmf.link">
        <details key="target.decoration" value="arrow"/>
        <details key="style" value="solid"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="startDate" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="endDate" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="parentAgency" lowerBound="1"
        eType="#//RentalAgency" eOpposite="#//RentalAgency/rentals"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"rental","nsURI":"http://com.opcoach.training/rentalSansGmfAnnot/1.0","name":"rental","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"RentalAgency","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Customer","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"instanceClassName":null,"name":"StreetType","instanceClass":null,"id":3,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"RentalObject","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":"org.eclipse.swt.graphics.Image","defaultValue":null,"instanceClassName":"org.eclipse.swt.graphics.Image","name":"Image","instanceClass":null,"id":5,"serializable":true,"eClass":"EDataType"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Rental","instanceClass":null,"abstract":false,"id":6,"interface":false,"eClass":"EClass"},{"ordered":true,"upperBound":1,"unique":true,"name":"book","lowerBound":0,"id":7,"many":false,"required":false,"eClass":"EOperation"},{"ordered":true,"upperBound":1,"unique":true,"name":"addCustomer","lowerBound":0,"id":8,"many":false,"required":false,"eClass":"EOperation"},{"ordered":true,"upperBound":1,"unique":true,"name":"addObject","lowerBound":0,"id":9,"many":false,"required":false,"eClass":"EOperation"},{"ordered":true,"upperBound":1,"unique":true,"name":"removeCustomer","lowerBound":0,"id":10,"many":false,"required":false,"eClass":"EOperation"},{"ordered":true,"upperBound":1,"unique":true,"name":"removeObject","lowerBound":0,"id":11,"many":false,"required":false,"eClass":"EOperation"},{"ordered":true,"upperBound":1,"unique":true,"name":"isAvailable","lowerBound":0,"id":12,"many":false,"required":false,"eClass":"EOperation"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":0,"iD":false,"id":13,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"objectsToRent","changeable":true,"resolveProxies":true,"lowerBound":0,"id":14,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"customers","changeable":true,"resolveProxies":true,"lowerBound":0,"id":15,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"rentals","changeable":true,"resolveProxies":true,"lowerBound":0,"id":16,"derived":false},{"id":17,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"customer","lowerBound":0,"id":18,"many":false,"required":false,"eClass":"EParameter"},{"ordered":true,"upperBound":1,"unique":true,"name":"rentedObject","lowerBound":0,"id":19,"many":false,"required":false,"eClass":"EParameter"},{"ordered":true,"upperBound":1,"unique":true,"name":"from","lowerBound":0,"id":20,"many":false,"required":false,"eClass":"EParameter"},{"ordered":true,"upperBound":1,"unique":true,"name":"to","lowerBound":0,"id":21,"many":false,"required":false,"eClass":"EParameter"},{"id":22,"eClass":"EGenericType"},{"id":23,"eClass":"EGenericType"},{"id":24,"eClass":"EGenericType"},{"id":25,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"customer","lowerBound":0,"id":26,"many":false,"required":false,"eClass":"EParameter"},{"id":27,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"object","lowerBound":0,"id":28,"many":false,"required":false,"eClass":"EParameter"},{"id":29,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"customer","lowerBound":0,"id":30,"many":false,"required":false,"eClass":"EParameter"},{"id":31,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"object","lowerBound":0,"id":32,"many":false,"required":false,"eClass":"EParameter"},{"id":33,"eClass":"EGenericType"},{"id":34,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"rentedObject","lowerBound":0,"id":35,"many":false,"required":false,"eClass":"EParameter"},{"ordered":true,"upperBound":1,"unique":true,"name":"from","lowerBound":0,"id":36,"many":false,"required":false,"eClass":"EParameter"},{"ordered":true,"upperBound":1,"unique":true,"name":"to","lowerBound":0,"id":37,"many":false,"required":false,"eClass":"EParameter"},{"id":38,"eClass":"EGenericType"},{"id":39,"eClass":"EGenericType"},{"id":40,"eClass":"EGenericType"},{"id":41,"eClass":"EGenericType"},{"id":42,"eClass":"EGenericType"},{"container":true,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"parentAgency","changeable":true,"resolveProxies":true,"lowerBound":1,"id":43,"derived":false},{"id":44,"eClass":"EGenericType"},{"container":true,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"parentAgency","changeable":true,"resolveProxies":true,"lowerBound":1,"id":45,"derived":false},{"id":46,"eClass":"EGenericType"},{"container":true,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"parentAgency","changeable":true,"resolveProxies":true,"lowerBound":1,"id":47,"derived":false},{"ordered":true,"upperBound":1,"unique":true,"name":"getDisplayName","lowerBound":0,"id":48,"many":false,"required":false,"eClass":"EOperation"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"firstName","changeable":true,"lowerBound":0,"iD":false,"id":49,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"lastName","changeable":true,"lowerBound":0,"iD":false,"id":50,"derived":false},{"id":51,"eClass":"EGenericType"},{"id":52,"eClass":"EGenericType"},{"id":53,"eClass":"EGenericType"},{"id":54,"eClass":"EGenericType"},{"name":"Street","id":55,"value":0,"literal":"Street","eClass":"EEnumLiteral"},{"name":"Road","id":56,"value":1,"literal":"Road","eClass":"EEnumLiteral"},{"ordered":true,"upperBound":1,"unique":true,"name":"rent","lowerBound":0,"id":57,"many":false,"required":false,"eClass":"EOperation"},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"ID","changeable":true,"lowerBound":0,"iD":true,"id":58,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":0,"iD":false,"id":59,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"picture","changeable":true,"lowerBound":0,"iD":false,"id":60,"derived":false},{"id":61,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"customer","lowerBound":0,"id":62,"many":false,"required":false,"eClass":"EParameter"},{"id":63,"eClass":"EGenericType"},{"id":64,"eClass":"EGenericType"},{"id":65,"eClass":"EGenericType"},{"id":66,"eClass":"EGenericType"},{"id":67,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"nbDaysBooked","lowerBound":0,"id":68,"many":false,"required":false,"eClass":"EOperation"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"customer","changeable":true,"resolveProxies":true,"lowerBound":1,"id":69,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"rentedObject","changeable":true,"resolveProxies":true,"lowerBound":0,"id":70,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"startDate","changeable":true,"lowerBound":0,"iD":false,"id":71,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"endDate","changeable":true,"lowerBound":0,"iD":false,"id":72,"derived":false},{"id":73,"eClass":"EGenericType"},{"id":74,"eClass":"EGenericType"},{"id":75,"eClass":"EGenericType"},{"id":76,"eClass":"EGenericType"},{"id":77,"eClass":"EGenericType"},{"id":78,"eClass":"EGenericType"}],"links":[{"source":0,"target":1},{"source":0,"target":2},{"source":0,"target":3},{"source":0,"target":4},{"source":0,"target":5},{"source":0,"target":6},{"source":1,"target":0},{"source":1,"target":7},{"source":1,"target":8},{"source":1,"target":9},{"source":1,"target":10},{"source":1,"target":11},{"source":1,"target":12},{"source":1,"target":13},{"source":1,"target":14},{"source":1,"target":15},{"source":1,"target":16},{"source":7,"target":6},{"source":7,"target":17},{"source":7,"target":1},{"source":7,"target":18},{"source":7,"target":19},{"source":7,"target":20},{"source":7,"target":21},{"source":17,"target":6},{"source":18,"target":2},{"source":18,"target":22},{"source":18,"target":7},{"source":22,"target":2},{"source":19,"target":4},{"source":19,"target":23},{"source":19,"target":7},{"source":23,"target":4},{"source":20,"target":24},{"source":20,"target":7},{"source":21,"target":25},{"source":21,"target":7},{"source":8,"target":1},{"source":8,"target":26},{"source":26,"target":2},{"source":26,"target":27},{"source":26,"target":8},{"source":27,"target":2},{"source":9,"target":1},{"source":9,"target":28},{"source":28,"target":4},{"source":28,"target":29},{"source":28,"target":9},{"source":29,"target":4},{"source":10,"target":1},{"source":10,"target":30},{"source":30,"target":2},{"source":30,"target":31},{"source":30,"target":10},{"source":31,"target":2},{"source":11,"target":1},{"source":11,"target":32},{"source":32,"target":4},{"source":32,"target":33},{"source":32,"target":11},{"source":33,"target":4},{"source":12,"target":34},{"source":12,"target":1},{"source":12,"target":35},{"source":12,"target":36},{"source":12,"target":37},{"source":35,"target":4},{"source":35,"target":38},{"source":35,"target":12},{"source":38,"target":4},{"source":36,"target":39},{"source":36,"target":12},{"source":37,"target":40},{"source":37,"target":12},{"source":13,"target":41},{"source":13,"target":1},{"source":14,"target":4},{"source":14,"target":42},{"source":14,"target":1},{"source":14,"target":43},{"source":42,"target":4},{"source":15,"target":2},{"source":15,"target":44},{"source":15,"target":1},{"source":15,"target":45},{"source":44,"target":2},{"source":16,"target":6},{"source":16,"target":46},{"source":16,"target":1},{"source":16,"target":47},{"source":46,"target":6},{"source":2,"target":0},{"source":2,"target":48},{"source":2,"target":49},{"source":2,"target":50},{"source":2,"target":45},{"source":48,"target":51},{"source":48,"target":2},{"source":49,"target":52},{"source":49,"target":2},{"source":50,"target":53},{"source":50,"target":2},{"source":45,"target":1},{"source":45,"target":54},{"source":45,"target":2},{"source":45,"target":15},{"source":54,"target":1},{"source":3,"target":0},{"source":3,"target":55},{"source":3,"target":56},{"source":55,"target":3},{"source":56,"target":3},{"source":4,"target":0},{"source":4,"target":57},{"source":4,"target":58},{"source":4,"target":59},{"source":4,"target":60},{"source":4,"target":43},{"source":57,"target":6},{"source":57,"target":61},{"source":57,"target":4},{"source":57,"target":62},{"source":61,"target":6},{"source":62,"target":2},{"source":62,"target":63},{"source":62,"target":57},{"source":63,"target":2},{"source":58,"target":64},{"source":58,"target":4},{"source":59,"target":65},{"source":59,"target":4},{"source":60,"target":5},{"source":60,"target":66},{"source":60,"target":4},{"source":66,"target":5},{"source":43,"target":1},{"source":43,"target":67},{"source":43,"target":4},{"source":43,"target":14},{"source":67,"target":1},{"source":5,"target":0},{"source":6,"target":0},{"source":6,"target":68},{"source":6,"target":69},{"source":6,"target":70},{"source":6,"target":71},{"source":6,"target":72},{"source":6,"target":47},{"source":68,"target":73},{"source":68,"target":6},{"source":69,"target":2},{"source":69,"target":74},{"source":69,"target":6},{"source":74,"target":2},{"source":70,"target":4},{"source":70,"target":75},{"source":70,"target":6},{"source":75,"target":4},{"source":71,"target":76},{"source":71,"target":6},{"source":72,"target":77},{"source":72,"target":6},{"source":47,"target":1},{"source":47,"target":78},{"source":47,"target":6},{"source":47,"target":16},{"source":78,"target":1}],"multigraph":true}