PetriNets
PetriNet
places
trans
arcs
Place
tokens
net
itokens
bound
ctokens
Token
Arc
weight
ArcPT
from
to
ArcTP
from
to
Transition
inputs
outputs
net
ins
outs
inh
read
reset
priority
<?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/" nsPrefix="ex">
  <eAnnotations source="features">
    <details key="file" value="model.xml"/>
  </eAnnotations>
  <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">
    <eStructuralFeatures xsi:type="ecore:EReference" name="places" ordered="false"
        upperBound="-1" eType="#//Place" containment="true" eOpposite="#//Place/net"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="trans" ordered="false"
        upperBound="-1" eType="#//Transition" containment="true" eOpposite="#//Transition/net"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="arcs" ordered="false" upperBound="-1"
        eType="#//Arc" containment="true">
      <eAnnotations source="presence">
        <details key="condition" value="Weight"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Place">
    <eAnnotations source="presence">
      <details key="condition" value="Bounded"/>
      <details key="constraint" value="boundedTokens"/>
    </eAnnotations>
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="constraints" value="boundedTokens"/>
    </eAnnotations>
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
      <details key="boundedTokens" value="self.tokens() &lt;= self.bound"/>
    </eAnnotations>
    <eOperations name="tokens" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="net" lowerBound="1" eType="#//PetriNet"
        eOpposite="#//PetriNet/places"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="itokens" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
      <eAnnotations source="presence">
        <details key="condition" value="Simple"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="bound" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
      <eAnnotations source="presence">
        <details key="condition" value="Bounded"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="ctokens" ordered="false"
        upperBound="-1" eType="#//Token" containment="true">
      <eAnnotations source="presence">
        <details key="condition" value="Object"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Token">
    <eAnnotations source="presence">
      <details key="condition" value="Object"/>
    </eAnnotations>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Arc" abstract="true">
    <eAnnotations source="presence">
      <details key="condition" value="Weight"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="weight" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
      <eAnnotations source="presence">
        <details key="condition" value="Weight"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="ArcPT" eSuperTypes="#//Arc">
    <eAnnotations source="presence">
      <details key="condition" value="Weight"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EReference" name="from" lowerBound="1" eType="#//Place">
      <eAnnotations source="presence">
        <details key="condition" value="Weight"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="to" lowerBound="1" eType="#//Transition">
      <eAnnotations source="presence">
        <details key="condition" value="Weight"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="ArcTP" eSuperTypes="#//Arc">
    <eAnnotations source="presence">
      <details key="condition" value="Weight"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EReference" name="from" lowerBound="1" eType="#//Transition">
      <eAnnotations source="presence">
        <details key="condition" value="Weight"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="to" lowerBound="1" eType="#//Place">
      <eAnnotations source="presence">
        <details key="condition" value="Weight"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Transition">
    <eOperations name="inputs" ordered="false" upperBound="-1" eType="#//Place">
      <eAnnotations source="http://www.eclipse.org/OCL/Collection">
        <details key="nullFree" value="false"/>
      </eAnnotations>
    </eOperations>
    <eOperations name="outputs" ordered="false" upperBound="-1" eType="#//Place">
      <eAnnotations source="http://www.eclipse.org/OCL/Collection">
        <details key="nullFree" value="false"/>
      </eAnnotations>
    </eOperations>
    <eStructuralFeatures xsi:type="ecore:EReference" name="net" lowerBound="1" eType="#//PetriNet"
        eOpposite="#//PetriNet/trans"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="ins" ordered="false" upperBound="-1"
        eType="#//Place">
      <eAnnotations source="presence">
        <details key="condition" value="not Weight"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="outs" ordered="false" upperBound="-1"
        eType="#//Place">
      <eAnnotations source="presence">
        <details key="condition" value="not Weight"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="inh" ordered="false" upperBound="-1"
        eType="#//Place">
      <eAnnotations source="presence">
        <details key="condition" value="Inhibitor"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="read" ordered="false" upperBound="-1"
        eType="#//Place">
      <eAnnotations source="presence">
        <details key="condition" value="Read"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="reset" ordered="false"
        upperBound="-1" eType="#//Place">
      <eAnnotations source="presence">
        <details key="condition" value="Reset"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="priority" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble">
      <eAnnotations source="presence">
        <details key="condition" value="Priority"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"ex","nsURI":"http://www.petrinets.org/","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":"Token","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Arc","instanceClass":null,"abstract":true,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"ArcPT","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"ArcTP","instanceClass":null,"abstract":false,"id":6,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Transition","instanceClass":null,"abstract":false,"id":7,"interface":false,"eClass":"EClass"},{"container":false,"ordered":false,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"places","changeable":true,"resolveProxies":true,"lowerBound":0,"id":8,"derived":false},{"container":false,"ordered":false,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"trans","changeable":true,"resolveProxies":true,"lowerBound":0,"id":9,"derived":false},{"container":false,"ordered":false,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"arcs","changeable":true,"resolveProxies":true,"lowerBound":0,"id":10,"derived":false},{"id":11,"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":"net","changeable":true,"resolveProxies":true,"lowerBound":1,"id":12,"derived":false},{"id":13,"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":"net","changeable":true,"resolveProxies":true,"lowerBound":1,"id":14,"derived":false},{"id":15,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"tokens","lowerBound":1,"id":16,"many":false,"required":true,"eClass":"EOperation"},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"itokens","changeable":true,"lowerBound":1,"iD":false,"id":17,"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":"bound","changeable":true,"lowerBound":1,"iD":false,"id":18,"derived":false},{"container":false,"ordered":false,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"ctokens","changeable":true,"resolveProxies":true,"lowerBound":0,"id":19,"derived":false},{"id":20,"eClass":"EGenericType"},{"id":21,"eClass":"EGenericType"},{"id":22,"eClass":"EGenericType"},{"id":23,"eClass":"EGenericType"},{"id":24,"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":"weight","changeable":true,"lowerBound":1,"iD":false,"id":25,"derived":false},{"id":26,"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":"from","changeable":true,"resolveProxies":true,"lowerBound":1,"id":27,"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":"to","changeable":true,"resolveProxies":true,"lowerBound":1,"id":28,"derived":false},{"id":29,"eClass":"EGenericType"},{"id":30,"eClass":"EGenericType"},{"id":31,"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":"from","changeable":true,"resolveProxies":true,"lowerBound":1,"id":32,"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":"to","changeable":true,"resolveProxies":true,"lowerBound":1,"id":33,"derived":false},{"id":34,"eClass":"EGenericType"},{"id":35,"eClass":"EGenericType"},{"id":36,"eClass":"EGenericType"},{"ordered":false,"upperBound":-1,"unique":true,"name":"inputs","lowerBound":0,"id":37,"many":true,"required":false,"eClass":"EOperation"},{"ordered":false,"upperBound":-1,"unique":true,"name":"outputs","lowerBound":0,"id":38,"many":true,"required":false,"eClass":"EOperation"},{"container":false,"ordered":false,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"ins","changeable":true,"resolveProxies":true,"lowerBound":0,"id":39,"derived":false},{"container":false,"ordered":false,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"outs","changeable":true,"resolveProxies":true,"lowerBound":0,"id":40,"derived":false},{"container":false,"ordered":false,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"inh","changeable":true,"resolveProxies":true,"lowerBound":0,"id":41,"derived":false},{"container":false,"ordered":false,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"read","changeable":true,"resolveProxies":true,"lowerBound":0,"id":42,"derived":false},{"container":false,"ordered":false,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"reset","changeable":true,"resolveProxies":true,"lowerBound":0,"id":43,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":0.0,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"priority","changeable":true,"lowerBound":1,"iD":false,"id":44,"derived":false},{"id":45,"eClass":"EGenericType"},{"id":46,"eClass":"EGenericType"},{"id":47,"eClass":"EGenericType"},{"id":48,"eClass":"EGenericType"},{"id":49,"eClass":"EGenericType"},{"id":50,"eClass":"EGenericType"},{"id":51,"eClass":"EGenericType"},{"id":52,"eClass":"EGenericType"},{"id":53,"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":0,"target":7},{"source":1,"target":0},{"source":1,"target":8},{"source":1,"target":9},{"source":1,"target":10},{"source":8,"target":2},{"source":8,"target":11},{"source":8,"target":1},{"source":8,"target":12},{"source":11,"target":2},{"source":9,"target":7},{"source":9,"target":13},{"source":9,"target":1},{"source":9,"target":14},{"source":13,"target":7},{"source":10,"target":4},{"source":10,"target":15},{"source":10,"target":1},{"source":15,"target":4},{"source":2,"target":0},{"source":2,"target":16},{"source":2,"target":12},{"source":2,"target":17},{"source":2,"target":18},{"source":2,"target":19},{"source":16,"target":20},{"source":16,"target":2},{"source":12,"target":1},{"source":12,"target":21},{"source":12,"target":2},{"source":12,"target":8},{"source":21,"target":1},{"source":17,"target":22},{"source":17,"target":2},{"source":18,"target":23},{"source":18,"target":2},{"source":19,"target":3},{"source":19,"target":24},{"source":19,"target":2},{"source":24,"target":3},{"source":3,"target":0},{"source":4,"target":0},{"source":4,"target":25},{"source":25,"target":26},{"source":25,"target":4},{"source":5,"target":0},{"source":5,"target":4},{"source":5,"target":27},{"source":5,"target":28},{"source":5,"target":29},{"source":27,"target":2},{"source":27,"target":30},{"source":27,"target":5},{"source":30,"target":2},{"source":28,"target":7},{"source":28,"target":31},{"source":28,"target":5},{"source":31,"target":7},{"source":29,"target":4},{"source":6,"target":0},{"source":6,"target":4},{"source":6,"target":32},{"source":6,"target":33},{"source":6,"target":34},{"source":32,"target":7},{"source":32,"target":35},{"source":32,"target":6},{"source":35,"target":7},{"source":33,"target":2},{"source":33,"target":36},{"source":33,"target":6},{"source":36,"target":2},{"source":34,"target":4},{"source":7,"target":0},{"source":7,"target":37},{"source":7,"target":38},{"source":7,"target":14},{"source":7,"target":39},{"source":7,"target":40},{"source":7,"target":41},{"source":7,"target":42},{"source":7,"target":43},{"source":7,"target":44},{"source":37,"target":2},{"source":37,"target":45},{"source":37,"target":7},{"source":45,"target":2},{"source":38,"target":2},{"source":38,"target":46},{"source":38,"target":7},{"source":46,"target":2},{"source":14,"target":1},{"source":14,"target":47},{"source":14,"target":7},{"source":14,"target":9},{"source":47,"target":1},{"source":39,"target":2},{"source":39,"target":48},{"source":39,"target":7},{"source":48,"target":2},{"source":40,"target":2},{"source":40,"target":49},{"source":40,"target":7},{"source":49,"target":2},{"source":41,"target":2},{"source":41,"target":50},{"source":41,"target":7},{"source":50,"target":2},{"source":42,"target":2},{"source":42,"target":51},{"source":42,"target":7},{"source":51,"target":2},{"source":43,"target":2},{"source":43,"target":52},{"source":43,"target":7},{"source":52,"target":2},{"source":44,"target":53},{"source":44,"target":7}],"multigraph":true}