petrinet
PetriNet
name
node
arc
Node
name
outgoings
incomings
Arc
weight
kind
source
target
Transition
min_time
max_time
Place
marking
ArcKind
normal
normal
read_arc
read_arc
<?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="PetriNet">
    <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" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="node" upperBound="-1" eType="#//Node"
        containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="arc" upperBound="-1" eType="#//Arc"
        containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Node">
    <eAnnotations source="http://www.obeo.fr/dsl/dnc/archetype">
      <details key="archetype" value="Role"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="outgoings" eType="#//Arc"
        eOpposite="#//Arc/source"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="incomings" eType="#//Arc"
        eOpposite="#//Arc/target"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Arc">
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="constraints" value="ArcCoherent poidPositif"/>
    </eAnnotations>
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
      <details key="ArcCoherent" value="&#xA;&#x9;&#x9;&#x9;self --un arc doit être entre 1 place et 1 transition&#xA;&#x9;&#x9;&#x9;-> select(e: Arc | e.oclIsKindOf(Arc))&#xA;&#x9;&#x9;&#x9;-> collect(e:Arc |e.oclAsType(Arc))&#xA;&#x9;&#x9;&#x9;-> forAll(a : Arc | (a.source.oclIsKindOf(Place) and a.target.oclIsKindOf(Transition)) or (a.source.oclIsKindOf(Transition) and a.target.oclIsKindOf(Place)))"/>
      <details key="poidPositif" value="weight>=0"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="weight" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="kind" lowerBound="1" eType="#//ArcKind"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="source" eType="#//Node"
        eOpposite="#//Node/outgoings"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="target" eType="#//Node"
        eOpposite="#//Node/incomings"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Transition" eSuperTypes="#//Node">
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="constraints" value="uniqueNamesTransition minmax minPositif"/>
    </eAnnotations>
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
      <details key="uniqueNamesTransition" value="&#xA;&#x9;&#x9;&#x9;self  --2 transitions ne peuvent pas avoir le même nom&#xA;&#x9;&#x9;&#x9;-> select(e: Node | e.oclIsKindOf(Transition)) &#xA;&#x9;&#x9;&#x9;-> collect(e:Node | e.oclAsType(Transition))&#xA;&#x9;&#x9;&#x9;-> forAll(t1,t2 : Transition | t1 &lt;> t2 or t1.name = t2.name)"/>
      <details key="minmax" value="min_time&lt;=max_time"/>
      <details key="minPositif" value="min_time>=0"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="min_time" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="max_time" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Place" eSuperTypes="#//Node">
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="constraints" value="uniqueNamesPlace nbrJetonPositif"/>
    </eAnnotations>
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
      <details key="uniqueNamesPlace" value="&#xA;&#x9;&#x9;&#x9;self  --2 places ne peuvent pas avoir le même nom&#xA;&#x9;&#x9;&#x9;-> select(e: Node | e.oclIsKindOf(Place)) &#xA;&#x9;&#x9;&#x9;-> collect(e:Node | e.oclAsType(Place))&#xA;&#x9;&#x9;&#x9;-> forAll(p1,p2 : Place | p1 &lt;> p2 or p1.name = p2.name)"/>
      <details key="nbrJetonPositif" value="marking>=0"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="marking" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="ArcKind">
    <eLiterals name="normal"/>
    <eLiterals name="read_arc" value="1"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"petrinet","nsURI":"http://petrinet","name":"petrinet","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"PetriNet","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Node","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Arc","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Transition","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Place","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"instanceClassName":null,"name":"ArcKind","instanceClass":null,"id":6,"serializable":true,"eClass":"EEnum"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":1,"iD":false,"id":7,"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":"node","changeable":true,"resolveProxies":true,"lowerBound":0,"id":8,"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":"arc","changeable":true,"resolveProxies":true,"lowerBound":0,"id":9,"derived":false},{"id":10,"eClass":"EGenericType"},{"id":11,"eClass":"EGenericType"},{"id":12,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":1,"iD":false,"id":13,"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":"outgoings","changeable":true,"resolveProxies":true,"lowerBound":0,"id":14,"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":"incomings","changeable":true,"resolveProxies":true,"lowerBound":0,"id":15,"derived":false},{"id":16,"eClass":"EGenericType"},{"id":17,"eClass":"EGenericType"},{"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":"source","changeable":true,"resolveProxies":true,"lowerBound":0,"id":18,"derived":false},{"id":19,"eClass":"EGenericType"},{"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":"target","changeable":true,"resolveProxies":true,"lowerBound":0,"id":20,"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":"weight","changeable":true,"lowerBound":1,"iD":false,"id":21,"derived":false},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"kind","changeable":true,"lowerBound":1,"iD":false,"id":22,"derived":false},{"id":23,"eClass":"EGenericType"},{"id":24,"eClass":"EGenericType"},{"id":25,"eClass":"EGenericType"},{"id":26,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"min_time","changeable":true,"lowerBound":1,"iD":false,"id":27,"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":"max_time","changeable":true,"lowerBound":1,"iD":false,"id":28,"derived":false},{"id":29,"eClass":"EGenericType"},{"id":30,"eClass":"EGenericType"},{"id":31,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"marking","changeable":true,"lowerBound":1,"iD":false,"id":32,"derived":false},{"id":33,"eClass":"EGenericType"},{"id":34,"eClass":"EGenericType"},{"name":"normal","id":35,"value":0,"literal":"normal","eClass":"EEnumLiteral"},{"name":"read_arc","id":36,"value":1,"literal":"read_arc","eClass":"EEnumLiteral"}],"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":7,"target":10},{"source":7,"target":1},{"source":8,"target":2},{"source":8,"target":11},{"source":8,"target":1},{"source":11,"target":2},{"source":9,"target":3},{"source":9,"target":12},{"source":9,"target":1},{"source":12,"target":3},{"source":2,"target":0},{"source":2,"target":13},{"source":2,"target":14},{"source":2,"target":15},{"source":13,"target":16},{"source":13,"target":2},{"source":14,"target":3},{"source":14,"target":17},{"source":14,"target":2},{"source":14,"target":18},{"source":17,"target":3},{"source":15,"target":3},{"source":15,"target":19},{"source":15,"target":2},{"source":15,"target":20},{"source":19,"target":3},{"source":3,"target":0},{"source":3,"target":21},{"source":3,"target":22},{"source":3,"target":18},{"source":3,"target":20},{"source":21,"target":23},{"source":21,"target":3},{"source":22,"target":6},{"source":22,"target":24},{"source":22,"target":3},{"source":24,"target":6},{"source":18,"target":2},{"source":18,"target":25},{"source":18,"target":3},{"source":18,"target":14},{"source":25,"target":2},{"source":20,"target":2},{"source":20,"target":26},{"source":20,"target":3},{"source":20,"target":15},{"source":26,"target":2},{"source":4,"target":0},{"source":4,"target":2},{"source":4,"target":27},{"source":4,"target":28},{"source":4,"target":29},{"source":27,"target":30},{"source":27,"target":4},{"source":28,"target":31},{"source":28,"target":4},{"source":29,"target":2},{"source":5,"target":0},{"source":5,"target":2},{"source":5,"target":32},{"source":5,"target":33},{"source":32,"target":34},{"source":32,"target":5},{"source":33,"target":2},{"source":6,"target":0},{"source":6,"target":35},{"source":6,"target":36},{"source":35,"target":6},{"source":36,"target":6}],"multigraph":true}