platoon
Platoon
leader
follower
follows
joinplatoonCord
length
desiredGapSize
members
Vehicle
id
follows
isAwareOf
joinCord
JoinPlatoonCoord
cordManager
gapMaker
joiningVehicle
JoiningVehicle
insertsIn
wantsToJoin
locatedIn
FrontGap
actualGapSize
PlatoonVehicle
forms
position
marks
joiningRequest
platoon
PlatooningSystem
vehicles
platoon
JoiningPosition
<?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="platoon" nsURI="http://www.example.org/platoon" nsPrefix="platoon">
  <eClassifiers xsi:type="ecore:EClass" name="Platoon">
    <eStructuralFeatures xsi:type="ecore:EReference" name="leader" lowerBound="1"
        eType="#//PlatoonVehicle" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="follower" upperBound="-1"
        eType="#//PlatoonVehicle" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="follows" eType="#//Platoon"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="joinplatoonCord" eType="#//JoinPlatoonCoord"
        containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="length" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="desiredGapSize" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="members" lowerBound="1"
        upperBound="-1" eType="#//PlatoonVehicle" eOpposite="#//PlatoonVehicle/platoon"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Vehicle" abstract="true">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
        iD="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="follows" eType="#//Vehicle"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="isAwareOf" eType="#//Vehicle"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="joinCord" eType="#//JoinPlatoonCoord"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="JoinPlatoonCoord">
    <eStructuralFeatures xsi:type="ecore:EReference" name="cordManager" lowerBound="1"
        eType="#//Vehicle"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="gapMaker" lowerBound="1"
        eType="#//Vehicle"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="joiningVehicle" lowerBound="1"
        eType="#//Vehicle"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="JoiningVehicle" eSuperTypes="#//Vehicle">
    <eStructuralFeatures xsi:type="ecore:EReference" name="insertsIn" eType="#//FrontGap"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="wantsToJoin" eType="#//PlatoonVehicle"
        eOpposite="#//PlatoonVehicle/joiningRequest"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="locatedIn" eType="#//JoiningPosition"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="FrontGap">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="actualGapSize" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="PlatoonVehicle" eSuperTypes="#//Vehicle">
    <eStructuralFeatures xsi:type="ecore:EReference" name="forms" eType="#//FrontGap"
        containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="position" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="marks" eType="#//JoiningPosition"
        containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="joiningRequest" eType="#//JoiningVehicle"
        eOpposite="#//JoiningVehicle/wantsToJoin"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="platoon" eType="#//Platoon"
        eOpposite="#//Platoon/members"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="PlatooningSystem">
    <eStructuralFeatures xsi:type="ecore:EReference" name="vehicles" upperBound="-1"
        eType="#//Vehicle" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="platoon" upperBound="-1"
        eType="#//Platoon" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="JoiningPosition"/>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"platoon","nsURI":"http://www.example.org/platoon","name":"platoon","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Platoon","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Vehicle","instanceClass":null,"abstract":true,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"JoinPlatoonCoord","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"JoiningVehicle","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"FrontGap","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"PlatoonVehicle","instanceClass":null,"abstract":false,"id":6,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"PlatooningSystem","instanceClass":null,"abstract":false,"id":7,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"JoiningPosition","instanceClass":null,"abstract":false,"id":8,"interface":false,"eClass":"EClass"},{"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":"leader","changeable":true,"resolveProxies":true,"lowerBound":1,"id":9,"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":"follower","changeable":true,"resolveProxies":true,"lowerBound":0,"id":10,"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":"follows","changeable":true,"resolveProxies":true,"lowerBound":0,"id":11,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"joinplatoonCord","changeable":true,"resolveProxies":true,"lowerBound":0,"id":12,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"length","changeable":true,"lowerBound":0,"iD":false,"id":13,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"desiredGapSize","changeable":true,"lowerBound":0,"iD":false,"id":14,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"members","changeable":true,"resolveProxies":true,"lowerBound":1,"id":15,"derived":false},{"id":16,"eClass":"EGenericType"},{"id":17,"eClass":"EGenericType"},{"id":18,"eClass":"EGenericType"},{"id":19,"eClass":"EGenericType"},{"id":20,"eClass":"EGenericType"},{"id":21,"eClass":"EGenericType"},{"id":22,"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":"platoon","changeable":true,"resolveProxies":true,"lowerBound":0,"id":23,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"id","changeable":true,"lowerBound":0,"iD":true,"id":24,"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":"follows","changeable":true,"resolveProxies":true,"lowerBound":0,"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":"isAwareOf","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":"joinCord","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"},{"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":"cordManager","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":"gapMaker","changeable":true,"resolveProxies":true,"lowerBound":1,"id":33,"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":"joiningVehicle","changeable":true,"resolveProxies":true,"lowerBound":1,"id":34,"derived":false},{"id":35,"eClass":"EGenericType"},{"id":36,"eClass":"EGenericType"},{"id":37,"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":"insertsIn","changeable":true,"resolveProxies":true,"lowerBound":0,"id":38,"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":"wantsToJoin","changeable":true,"resolveProxies":true,"lowerBound":0,"id":39,"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":"locatedIn","changeable":true,"resolveProxies":true,"lowerBound":0,"id":40,"derived":false},{"id":41,"eClass":"EGenericType"},{"id":42,"eClass":"EGenericType"},{"id":43,"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":"joiningRequest","changeable":true,"resolveProxies":true,"lowerBound":0,"id":44,"derived":false},{"id":45,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"actualGapSize","changeable":true,"lowerBound":0,"iD":false,"id":46,"derived":false},{"id":47,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"forms","changeable":true,"resolveProxies":true,"lowerBound":0,"id":48,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"position","changeable":true,"lowerBound":0,"iD":false,"id":49,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"marks","changeable":true,"resolveProxies":true,"lowerBound":0,"id":50,"derived":false},{"id":51,"eClass":"EGenericType"},{"id":52,"eClass":"EGenericType"},{"id":53,"eClass":"EGenericType"},{"id":54,"eClass":"EGenericType"},{"id":55,"eClass":"EGenericType"},{"id":56,"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":"vehicles","changeable":true,"resolveProxies":true,"lowerBound":0,"id":57,"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":"platoon","changeable":true,"resolveProxies":true,"lowerBound":0,"id":58,"derived":false},{"id":59,"eClass":"EGenericType"},{"id":60,"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":1,"target":0},{"source":1,"target":9},{"source":1,"target":10},{"source":1,"target":11},{"source":1,"target":12},{"source":1,"target":13},{"source":1,"target":14},{"source":1,"target":15},{"source":9,"target":6},{"source":9,"target":16},{"source":9,"target":1},{"source":16,"target":6},{"source":10,"target":6},{"source":10,"target":17},{"source":10,"target":1},{"source":17,"target":6},{"source":11,"target":1},{"source":11,"target":18},{"source":11,"target":1},{"source":18,"target":1},{"source":12,"target":3},{"source":12,"target":19},{"source":12,"target":1},{"source":19,"target":3},{"source":13,"target":20},{"source":13,"target":1},{"source":14,"target":21},{"source":14,"target":1},{"source":15,"target":6},{"source":15,"target":22},{"source":15,"target":1},{"source":15,"target":23},{"source":22,"target":6},{"source":2,"target":0},{"source":2,"target":24},{"source":2,"target":25},{"source":2,"target":26},{"source":2,"target":27},{"source":24,"target":28},{"source":24,"target":2},{"source":25,"target":2},{"source":25,"target":29},{"source":25,"target":2},{"source":29,"target":2},{"source":26,"target":2},{"source":26,"target":30},{"source":26,"target":2},{"source":30,"target":2},{"source":27,"target":3},{"source":27,"target":31},{"source":27,"target":2},{"source":31,"target":3},{"source":3,"target":0},{"source":3,"target":32},{"source":3,"target":33},{"source":3,"target":34},{"source":32,"target":2},{"source":32,"target":35},{"source":32,"target":3},{"source":35,"target":2},{"source":33,"target":2},{"source":33,"target":36},{"source":33,"target":3},{"source":36,"target":2},{"source":34,"target":2},{"source":34,"target":37},{"source":34,"target":3},{"source":37,"target":2},{"source":4,"target":0},{"source":4,"target":2},{"source":4,"target":38},{"source":4,"target":39},{"source":4,"target":40},{"source":4,"target":41},{"source":38,"target":5},{"source":38,"target":42},{"source":38,"target":4},{"source":42,"target":5},{"source":39,"target":6},{"source":39,"target":43},{"source":39,"target":4},{"source":39,"target":44},{"source":43,"target":6},{"source":40,"target":8},{"source":40,"target":45},{"source":40,"target":4},{"source":45,"target":8},{"source":41,"target":2},{"source":5,"target":0},{"source":5,"target":46},{"source":46,"target":47},{"source":46,"target":5},{"source":6,"target":0},{"source":6,"target":2},{"source":6,"target":48},{"source":6,"target":49},{"source":6,"target":50},{"source":6,"target":44},{"source":6,"target":23},{"source":6,"target":51},{"source":48,"target":5},{"source":48,"target":52},{"source":48,"target":6},{"source":52,"target":5},{"source":49,"target":53},{"source":49,"target":6},{"source":50,"target":8},{"source":50,"target":54},{"source":50,"target":6},{"source":54,"target":8},{"source":44,"target":4},{"source":44,"target":55},{"source":44,"target":6},{"source":44,"target":39},{"source":55,"target":4},{"source":23,"target":1},{"source":23,"target":56},{"source":23,"target":6},{"source":23,"target":15},{"source":56,"target":1},{"source":51,"target":2},{"source":7,"target":0},{"source":7,"target":57},{"source":7,"target":58},{"source":57,"target":2},{"source":57,"target":59},{"source":57,"target":7},{"source":59,"target":2},{"source":58,"target":1},{"source":58,"target":60},{"source":58,"target":7},{"source":60,"target":1},{"source":8,"target":0}],"multigraph":true}