minidrone
MiniDroneProgram
instructions
name
Instruction
Go
distance
Turn
angle
Jump
jumpType
JumpType
JUMP_LONG
JUMP_LONG
JUMP_HIGH
JUMP_HIGH
JUMP_MAX
JUMP_MAX
<?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="minidrone" nsURI="http://www.obeo.fr/dsl/minidrone/1.0.0" nsPrefix="minidrone">
  <eClassifiers xsi:type="ecore:EClass" name="MiniDroneProgram">
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
      <details key="documentation" value="Represent a program allowing to pilot a minidrone (Jumping Sumo or Rolling Spider)."/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EReference" name="instructions" upperBound="-1"
        eType="#//Instruction" containment="true">
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
        <details key="documentation" value="The referenced instructions contained in a program."/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
        <details key="documentation" value="The name of the program."/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Instruction" abstract="true">
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
      <details key="documentation" value="Represent a program instruction used to send command to the minidrone."/>
    </eAnnotations>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Go" eSuperTypes="#//Instruction">
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
      <details key="documentation" value="A program instruction which send go backward/forward command to the minidrone."/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="distance" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
        <details key="documentation" value="The distance of movement."/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Turn" eSuperTypes="#//Instruction">
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
      <details key="documentation" value="A program instruction which send a turn command to the minidrone."/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="angle" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
        <details key="documentation" value="The rotation angle."/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Jump" eSuperTypes="#//Instruction">
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
      <details key="documentation" value="A program instruction which send a jump command to the minidrone. This command is specific to the Jumping Sumo."/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="jumpType" eType="#//JumpType">
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
        <details key="documentation" value="The height of the jump."/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="JumpType">
    <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
      <details key="documentation" value="Enumeration of jump types (only for Jumping Sumo)"/>
    </eAnnotations>
    <eLiterals name="JUMP_LONG"/>
    <eLiterals name="JUMP_HIGH" value="1"/>
    <eLiterals name="JUMP_MAX" value="2"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"minidrone","nsURI":"http://www.obeo.fr/dsl/minidrone/1.0.0","name":"minidrone","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"MiniDroneProgram","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Instruction","instanceClass":null,"abstract":true,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Go","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Turn","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Jump","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"instanceClassName":null,"name":"JumpType","instanceClass":null,"id":6,"serializable":true,"eClass":"EEnum"},{"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":"instructions","changeable":true,"resolveProxies":true,"lowerBound":0,"id":7,"derived":false},{"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":false,"id":8,"derived":false},{"id":9,"eClass":"EGenericType"},{"id":10,"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":"distance","changeable":true,"lowerBound":0,"iD":false,"id":11,"derived":false},{"id":12,"eClass":"EGenericType"},{"id":13,"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":"angle","changeable":true,"lowerBound":0,"iD":false,"id":14,"derived":false},{"id":15,"eClass":"EGenericType"},{"id":16,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"jumpType","changeable":true,"lowerBound":0,"iD":false,"id":17,"derived":false},{"id":18,"eClass":"EGenericType"},{"id":19,"eClass":"EGenericType"},{"name":"JUMP_LONG","id":20,"value":0,"literal":"JUMP_LONG","eClass":"EEnumLiteral"},{"name":"JUMP_HIGH","id":21,"value":1,"literal":"JUMP_HIGH","eClass":"EEnumLiteral"},{"name":"JUMP_MAX","id":22,"value":2,"literal":"JUMP_MAX","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":7,"target":2},{"source":7,"target":9},{"source":7,"target":1},{"source":9,"target":2},{"source":8,"target":10},{"source":8,"target":1},{"source":2,"target":0},{"source":3,"target":0},{"source":3,"target":2},{"source":3,"target":11},{"source":3,"target":12},{"source":11,"target":13},{"source":11,"target":3},{"source":12,"target":2},{"source":4,"target":0},{"source":4,"target":2},{"source":4,"target":14},{"source":4,"target":15},{"source":14,"target":16},{"source":14,"target":4},{"source":15,"target":2},{"source":5,"target":0},{"source":5,"target":2},{"source":5,"target":17},{"source":5,"target":18},{"source":17,"target":6},{"source":17,"target":19},{"source":17,"target":5},{"source":19,"target":6},{"source":18,"target":2},{"source":6,"target":0},{"source":6,"target":20},{"source":6,"target":21},{"source":6,"target":22},{"source":20,"target":6},{"source":21,"target":6},{"source":22,"target":6}],"multigraph":true}