PetriNets
PetriNet
places
trans
Place
tokens
net
Transition
net
ins
outs
<?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="PetriNets" nsURI="http://www.petrinets.org/concept" nsPrefix="ex">
  <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">
    <eOperations name="places" ordered="false" upperBound="-1" eType="#//Place">
      <eAnnotations source="presence">
        <details key="source" value="structure"/>
      </eAnnotations>
    </eOperations>
    <eOperations name="trans" ordered="false" upperBound="-1" eType="#//Transition">
      <eAnnotations source="presence">
        <details key="source" value="structure"/>
      </eAnnotations>
    </eOperations>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Place">
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="constraints" value="posTokens"/>
    </eAnnotations>
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
      <details key="posTokens" value="self.tokens()>=0"/>
    </eAnnotations>
    <eOperations name="tokens" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eOperations name="net" lowerBound="1" eType="#//PetriNet">
      <eAnnotations source="presence">
        <details key="source" value="structure"/>
      </eAnnotations>
    </eOperations>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Transition">
    <eOperations name="net" lowerBound="1" eType="#//PetriNet">
      <eAnnotations source="presence">
        <details key="source" value="structure"/>
      </eAnnotations>
    </eOperations>
    <eOperations name="ins" ordered="false" upperBound="-1" eType="#//Place">
      <eAnnotations source="presence">
        <details key="source" value="structure"/>
      </eAnnotations>
    </eOperations>
    <eOperations name="outs" ordered="false" upperBound="-1" eType="#//Place">
      <eAnnotations source="presence">
        <details key="source" value="structure"/>
      </eAnnotations>
    </eOperations>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"ex","nsURI":"http://www.petrinets.org/concept","name":"PetriNets","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":"Place","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"},{"ordered":false,"upperBound":-1,"unique":true,"name":"places","lowerBound":0,"id":4,"many":true,"required":false,"eClass":"EOperation"},{"ordered":false,"upperBound":-1,"unique":true,"name":"trans","lowerBound":0,"id":5,"many":true,"required":false,"eClass":"EOperation"},{"id":6,"eClass":"EGenericType"},{"id":7,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"tokens","lowerBound":1,"id":8,"many":false,"required":true,"eClass":"EOperation"},{"ordered":true,"upperBound":1,"unique":true,"name":"net","lowerBound":1,"id":9,"many":false,"required":true,"eClass":"EOperation"},{"id":10,"eClass":"EGenericType"},{"id":11,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"net","lowerBound":1,"id":12,"many":false,"required":true,"eClass":"EOperation"},{"ordered":false,"upperBound":-1,"unique":true,"name":"ins","lowerBound":0,"id":13,"many":true,"required":false,"eClass":"EOperation"},{"ordered":false,"upperBound":-1,"unique":true,"name":"outs","lowerBound":0,"id":14,"many":true,"required":false,"eClass":"EOperation"},{"id":15,"eClass":"EGenericType"},{"id":16,"eClass":"EGenericType"},{"id":17,"eClass":"EGenericType"}],"links":[{"source":0,"target":1},{"source":0,"target":2},{"source":0,"target":3},{"source":1,"target":0},{"source":1,"target":4},{"source":1,"target":5},{"source":4,"target":2},{"source":4,"target":6},{"source":4,"target":1},{"source":6,"target":2},{"source":5,"target":3},{"source":5,"target":7},{"source":5,"target":1},{"source":7,"target":3},{"source":2,"target":0},{"source":2,"target":8},{"source":2,"target":9},{"source":8,"target":10},{"source":8,"target":2},{"source":9,"target":1},{"source":9,"target":11},{"source":9,"target":2},{"source":11,"target":1},{"source":3,"target":0},{"source":3,"target":12},{"source":3,"target":13},{"source":3,"target":14},{"source":12,"target":1},{"source":12,"target":15},{"source":12,"target":3},{"source":15,"target":1},{"source":13,"target":2},{"source":13,"target":16},{"source":13,"target":3},{"source":16,"target":2},{"source":14,"target":2},{"source":14,"target":17},{"source":14,"target":3},{"source":17,"target":2}],"multigraph":true}