PetriNet
Place
jeton
Arc
successor
predecessor
isReadArc
poids
Transition
ReseauPetri
name
petrielement
PetriElement
reseauPetri
Noeud
linksToPredecessors
LinksToSuccessors
name
<?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="PetriNet" nsURI="http://petrinet" nsPrefix="petrinet">
  <eAnnotations source="http://www.eclipse.org/OCL/Import">
    <details key="ecore" value="http://www.eclipse.org/emf/2002/Ecore"/>
  </eAnnotations>
  <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
    <details key="invocationDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot"/>
    <details key="settingDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot"/>
    <details key="validationDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot"/>
  </eAnnotations>
  <eClassifiers xsi:type="ecore:EClass" name="Place" eSuperTypes="#//Noeud">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="jeton" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Arc" eSuperTypes="#//PetriElement">
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="constraints" value="poidsPos previousNodeinSamePetri nextNodeinSamePetri notSameNodeType"/>
    </eAnnotations>
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
      <details key="poidsPos" value="poids > 0"/>
      <details key="previousNodeinSamePetri" value="self.reseauPetri = self.predecessor.reseauPetri"/>
      <details key="nextNodeinSamePetri" value="self.reseauPetri = self.successor.reseauPetri"/>
      <details key="notSameNodeType" value="(self.successor.oclIsKindOf(Place) and self.predecessor.oclIsKindOf(Transition))&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;or (self.successor.oclIsKindOf(Transition) and self.predecessor.oclIsKindOf(Place))"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EReference" name="successor" lowerBound="1"
        eType="#//Noeud" eOpposite="#//Noeud/linksToPredecessors"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="predecessor" lowerBound="1"
        eType="#//Noeud" eOpposite="#//Noeud/LinksToSuccessors"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="isReadArc" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="poids" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Transition" eSuperTypes="#//Noeud">
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="constraints" value="notExtremity"/>
    </eAnnotations>
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
      <details key="notExtremity" value="self.LinksToSuccessors->asSequence()->notEmpty() and self.linksToPredecessors->asSequence()->notEmpty()"/>
    </eAnnotations>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="ReseauPetri">
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="constraints" value="noEmptyName"/>
    </eAnnotations>
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
      <details key="noEmptyName" value="name.size() > 0"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="petrielement" upperBound="-1"
        eType="#//PetriElement" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="PetriElement" abstract="true">
    <eStructuralFeatures xsi:type="ecore:EReference" name="reseauPetri" eType="#//ReseauPetri"
        changeable="false" volatile="true" transient="true" derived="true" resolveProxies="false">
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
        <details key="derivation" value="ReseauPetri.allInstances()&#xA;&#x9;&#x9;&#x9;&#x9;->select(p | p.petrielement->includes(self))&#xA;&#x9;&#x9;&#x9;&#x9;->asSequence()->first()"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Noeud" abstract="true" eSuperTypes="#//PetriElement">
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="constraints" value="noEmptyName differentNames"/>
    </eAnnotations>
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
      <details key="noEmptyName" value="name.size() > 0"/>
      <details key="differentNames" value="self.reseauPetri.petrielement&#xA;&#x9;&#x9;&#x9;->select(p | p.oclIsKindOf(Noeud))&#xA;&#x9;&#x9;&#x9;->collect(p | p.oclAsType(Noeud))&#xA;&#x9;&#x9;&#x9;->forAll(w1 | w1 = self or w1.name &lt;> self.name)"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EReference" name="linksToPredecessors" upperBound="-1"
        eType="#//Arc" eOpposite="#//Arc/successor"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="LinksToSuccessors" upperBound="-1"
        eType="#//Arc" eOpposite="#//Arc/predecessor"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"petrinet","nsURI":"http://petrinet","name":"PetriNet","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Place","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Arc","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Transition","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"ReseauPetri","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"PetriElement","instanceClass":null,"abstract":true,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Noeud","instanceClass":null,"abstract":true,"id":6,"interface":false,"eClass":"EClass"},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"jeton","changeable":true,"lowerBound":1,"iD":false,"id":7,"derived":false},{"id":8,"eClass":"EGenericType"},{"id":9,"eClass":"EGenericType"},{"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":"successor","changeable":true,"resolveProxies":true,"lowerBound":1,"id":10,"derived":false},{"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":"predecessor","changeable":true,"resolveProxies":true,"lowerBound":1,"id":11,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":false,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"isReadArc","changeable":true,"lowerBound":1,"iD":false,"id":12,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"poids","changeable":true,"lowerBound":1,"iD":false,"id":13,"derived":false},{"id":14,"eClass":"EGenericType"},{"id":15,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"linksToPredecessors","changeable":true,"resolveProxies":true,"lowerBound":0,"id":16,"derived":false},{"id":17,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"LinksToSuccessors","changeable":true,"resolveProxies":true,"lowerBound":0,"id":18,"derived":false},{"id":19,"eClass":"EGenericType"},{"id":20,"eClass":"EGenericType"},{"id":21,"eClass":"EGenericType"},{"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":22,"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":"petrielement","changeable":true,"resolveProxies":true,"lowerBound":0,"id":23,"derived":false},{"id":24,"eClass":"EGenericType"},{"id":25,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":true,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":true,"unique":true,"name":"reseauPetri","changeable":false,"resolveProxies":false,"lowerBound":0,"id":26,"derived":true},{"id":27,"eClass":"EGenericType"},{"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":28,"derived":false},{"id":29,"eClass":"EGenericType"},{"id":30,"eClass":"EGenericType"},{"id":31,"eClass":"EGenericType"},{"id":32,"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":6},{"source":1,"target":7},{"source":1,"target":8},{"source":7,"target":9},{"source":7,"target":1},{"source":8,"target":6},{"source":2,"target":0},{"source":2,"target":5},{"source":2,"target":10},{"source":2,"target":11},{"source":2,"target":12},{"source":2,"target":13},{"source":2,"target":14},{"source":10,"target":6},{"source":10,"target":15},{"source":10,"target":2},{"source":10,"target":16},{"source":15,"target":6},{"source":11,"target":6},{"source":11,"target":17},{"source":11,"target":2},{"source":11,"target":18},{"source":17,"target":6},{"source":12,"target":19},{"source":12,"target":2},{"source":13,"target":20},{"source":13,"target":2},{"source":14,"target":5},{"source":3,"target":0},{"source":3,"target":6},{"source":3,"target":21},{"source":21,"target":6},{"source":4,"target":0},{"source":4,"target":22},{"source":4,"target":23},{"source":22,"target":24},{"source":22,"target":4},{"source":23,"target":5},{"source":23,"target":25},{"source":23,"target":4},{"source":25,"target":5},{"source":5,"target":0},{"source":5,"target":26},{"source":26,"target":4},{"source":26,"target":27},{"source":26,"target":5},{"source":27,"target":4},{"source":6,"target":0},{"source":6,"target":5},{"source":6,"target":16},{"source":6,"target":18},{"source":6,"target":28},{"source":6,"target":29},{"source":16,"target":2},{"source":16,"target":30},{"source":16,"target":6},{"source":16,"target":10},{"source":30,"target":2},{"source":18,"target":2},{"source":18,"target":31},{"source":18,"target":6},{"source":18,"target":11},{"source":31,"target":2},{"source":28,"target":32},{"source":28,"target":6},{"source":29,"target":5}],"multigraph":true}