sihuhu
World
tracks
trains
Track
rails
switches
TrackElement
train
Rail
allowedTo
allowedFrom
from
to
Switch
connections
connectedRails
activeConnection
SwitchConnection
Train
nextElement
onTracks
Signal
nextRail
enabled
NamedElement
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="sihuhu" nsURI="hu.bme.mit.rnd.sihuhu" nsPrefix="hu.bme.mit.rnd">
  <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
    <details key="settingDelegates" value="org.eclipse.incquery.querybasedfeature"/>
  </eAnnotations>
  <eClassifiers xsi:type="ecore:EClass" name="World" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="tracks" upperBound="-1"
        eType="#//Track" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="trains" upperBound="-1"
        eType="#//Train" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Track" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="rails" upperBound="-1"
        eType="#//Rail" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="switches" upperBound="-1"
        eType="#//Switch" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="TrackElement" abstract="true" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="train" eType="#//Train"
        eOpposite="#//Train/onTracks"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Rail" eSuperTypes="#//TrackElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="allowedTo" lowerBound="1"
        eType="#//Signal" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="allowedFrom" lowerBound="1"
        eType="#//Signal" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="from" eType="#//TrackElement"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="to" eType="#//TrackElement"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Switch" eSuperTypes="#//TrackElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="connections" upperBound="-1"
        eType="#//SwitchConnection" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="connectedRails" upperBound="-1"
        eType="#//Rail" changeable="false" volatile="true" transient="true" derived="true">
      <eAnnotations source="org.eclipse.incquery.querybasedfeature">
        <details key="patternFQN" value="hu.bme.mit.rnd.sihuhu.incquery.connectedRails"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="activeConnection" eType="#//SwitchConnection"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="SwitchConnection" eSuperTypes="#//Rail"/>
  <eClassifiers xsi:type="ecore:EClass" name="Train" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="nextElement" eType="#//TrackElement"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="onTracks" upperBound="-1"
        eType="#//TrackElement" eOpposite="#//TrackElement/train"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Signal" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="nextRail" eType="#//Rail"
        changeable="false" volatile="true" transient="true" derived="true">
      <eAnnotations source="org.eclipse.incquery.querybasedfeature">
        <details key="patternFQN" value="hu.bme.mit.rnd.sihuhu.incquery.nextRail"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="enabled" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
        changeable="false" volatile="true" transient="true" derived="true">
      <eAnnotations source="org.eclipse.incquery.querybasedfeature">
        <details key="patternFQN" value="hu.bme.mit.rnd.sihuhu.incquery.enabled"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="NamedElement" abstract="true">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
        iD="true"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"hu.bme.mit.rnd","nsURI":"hu.bme.mit.rnd.sihuhu","name":"sihuhu","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"World","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Track","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"TrackElement","instanceClass":null,"abstract":true,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Rail","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Switch","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"SwitchConnection","instanceClass":null,"abstract":false,"id":6,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Train","instanceClass":null,"abstract":false,"id":7,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Signal","instanceClass":null,"abstract":false,"id":8,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"NamedElement","instanceClass":null,"abstract":true,"id":9,"interface":false,"eClass":"EClass"},{"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":"tracks","changeable":true,"resolveProxies":true,"lowerBound":0,"id":10,"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":"trains","changeable":true,"resolveProxies":true,"lowerBound":0,"id":11,"derived":false},{"id":12,"eClass":"EGenericType"},{"id":13,"eClass":"EGenericType"},{"id":14,"eClass":"EGenericType"},{"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":"rails","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":"switches","changeable":true,"resolveProxies":true,"lowerBound":0,"id":16,"derived":false},{"id":17,"eClass":"EGenericType"},{"id":18,"eClass":"EGenericType"},{"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":"train","changeable":true,"resolveProxies":true,"lowerBound":0,"id":20,"derived":false},{"id":21,"eClass":"EGenericType"},{"id":22,"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":"onTracks","changeable":true,"resolveProxies":true,"lowerBound":0,"id":23,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"allowedTo","changeable":true,"resolveProxies":true,"lowerBound":1,"id":24,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"allowedFrom","changeable":true,"resolveProxies":true,"lowerBound":1,"id":25,"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":"from","changeable":true,"resolveProxies":true,"lowerBound":0,"id":26,"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":"to","changeable":true,"resolveProxies":true,"lowerBound":0,"id":27,"derived":false},{"id":28,"eClass":"EGenericType"},{"id":29,"eClass":"EGenericType"},{"id":30,"eClass":"EGenericType"},{"id":31,"eClass":"EGenericType"},{"id":32,"eClass":"EGenericType"},{"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":"connections","changeable":true,"resolveProxies":true,"lowerBound":0,"id":33,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":true,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":true,"unique":true,"name":"connectedRails","changeable":false,"resolveProxies":true,"lowerBound":0,"id":34,"derived":true},{"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":"activeConnection","changeable":true,"resolveProxies":true,"lowerBound":0,"id":35,"derived":false},{"id":36,"eClass":"EGenericType"},{"id":37,"eClass":"EGenericType"},{"id":38,"eClass":"EGenericType"},{"id":39,"eClass":"EGenericType"},{"id":40,"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":"nextElement","changeable":true,"resolveProxies":true,"lowerBound":0,"id":41,"derived":false},{"id":42,"eClass":"EGenericType"},{"id":43,"eClass":"EGenericType"},{"id":44,"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":"nextRail","changeable":false,"resolveProxies":true,"lowerBound":0,"id":45,"derived":true},{"ordered":true,"upperBound":1,"defaultValue":false,"volatile":true,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":true,"unique":true,"name":"enabled","changeable":false,"lowerBound":0,"iD":false,"id":46,"derived":true},{"id":47,"eClass":"EGenericType"},{"id":48,"eClass":"EGenericType"},{"id":49,"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":true,"id":50,"derived":false},{"id":51,"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":0,"target":8},{"source":0,"target":9},{"source":1,"target":0},{"source":1,"target":9},{"source":1,"target":10},{"source":1,"target":11},{"source":1,"target":12},{"source":10,"target":2},{"source":10,"target":13},{"source":10,"target":1},{"source":13,"target":2},{"source":11,"target":7},{"source":11,"target":14},{"source":11,"target":1},{"source":14,"target":7},{"source":12,"target":9},{"source":2,"target":0},{"source":2,"target":9},{"source":2,"target":15},{"source":2,"target":16},{"source":2,"target":17},{"source":15,"target":4},{"source":15,"target":18},{"source":15,"target":2},{"source":18,"target":4},{"source":16,"target":5},{"source":16,"target":19},{"source":16,"target":2},{"source":19,"target":5},{"source":17,"target":9},{"source":3,"target":0},{"source":3,"target":9},{"source":3,"target":20},{"source":3,"target":21},{"source":20,"target":7},{"source":20,"target":22},{"source":20,"target":3},{"source":20,"target":23},{"source":22,"target":7},{"source":21,"target":9},{"source":4,"target":0},{"source":4,"target":3},{"source":4,"target":24},{"source":4,"target":25},{"source":4,"target":26},{"source":4,"target":27},{"source":4,"target":28},{"source":24,"target":8},{"source":24,"target":29},{"source":24,"target":4},{"source":29,"target":8},{"source":25,"target":8},{"source":25,"target":30},{"source":25,"target":4},{"source":30,"target":8},{"source":26,"target":3},{"source":26,"target":31},{"source":26,"target":4},{"source":31,"target":3},{"source":27,"target":3},{"source":27,"target":32},{"source":27,"target":4},{"source":32,"target":3},{"source":28,"target":3},{"source":5,"target":0},{"source":5,"target":3},{"source":5,"target":33},{"source":5,"target":34},{"source":5,"target":35},{"source":5,"target":36},{"source":33,"target":6},{"source":33,"target":37},{"source":33,"target":5},{"source":37,"target":6},{"source":34,"target":4},{"source":34,"target":38},{"source":34,"target":5},{"source":38,"target":4},{"source":35,"target":6},{"source":35,"target":39},{"source":35,"target":5},{"source":39,"target":6},{"source":36,"target":3},{"source":6,"target":0},{"source":6,"target":4},{"source":6,"target":40},{"source":40,"target":4},{"source":7,"target":0},{"source":7,"target":9},{"source":7,"target":41},{"source":7,"target":23},{"source":7,"target":42},{"source":41,"target":3},{"source":41,"target":43},{"source":41,"target":7},{"source":43,"target":3},{"source":23,"target":3},{"source":23,"target":44},{"source":23,"target":7},{"source":23,"target":20},{"source":44,"target":3},{"source":42,"target":9},{"source":8,"target":0},{"source":8,"target":9},{"source":8,"target":45},{"source":8,"target":46},{"source":8,"target":47},{"source":45,"target":4},{"source":45,"target":48},{"source":45,"target":8},{"source":48,"target":4},{"source":46,"target":49},{"source":46,"target":8},{"source":47,"target":9},{"source":9,"target":0},{"source":9,"target":50},{"source":50,"target":51},{"source":50,"target":9}],"multigraph":true}