taskDSL
DSL
missions
tasks
Mission
name
tasks
Task
name
action
detector
Action
Detector
avoiders
DriveUntil
speed
color
object
Investigate
speed
Speak
text
FollowLine
distance
Avoid
color
object
driveActions
DriveAction
MoveBack
meters
TurnLeft
degrees
TurnRight
degrees
Object
ROCK
ROCK
LAKE
LAKE
Speed
FAST
FAST
NORMAL
NORMAL
SLOW
SLOW
Color
RED
RED
GREEN
GREEN
BLUE
BLUE
<?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="taskDSL" nsURI="http://www.ru.mars/des/robot/TaskDSL" nsPrefix="taskDSL">
  <eClassifiers xsi:type="ecore:EClass" name="DSL">
    <eStructuralFeatures xsi:type="ecore:EReference" name="missions" upperBound="-1"
        eType="#//Mission" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="tasks" upperBound="-1"
        eType="#//Task" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Mission">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="tasks" unique="false" upperBound="-1"
        eType="#//Task"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Task">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="action" eType="#//Action"
        containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="detector" eType="#//Detector"
        containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Action"/>
  <eClassifiers xsi:type="ecore:EClass" name="Detector">
    <eStructuralFeatures xsi:type="ecore:EReference" name="avoiders" upperBound="-1"
        eType="#//Avoid" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="DriveUntil" eSuperTypes="#//Action">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="speed" eType="#//Speed"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="color" eType="#//Color"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="object" eType="#//Object"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Investigate" eSuperTypes="#//Action">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="speed" eType="#//Speed"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Speak" eSuperTypes="#//Action">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="text" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="FollowLine" eSuperTypes="#//Action">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="distance" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Avoid">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="color" eType="#//Color"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="object" eType="#//Object"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="driveActions" upperBound="-1"
        eType="#//DriveAction" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="DriveAction"/>
  <eClassifiers xsi:type="ecore:EClass" name="MoveBack" eSuperTypes="#//DriveAction">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="meters" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="TurnLeft" eSuperTypes="#//DriveAction">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="degrees" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="TurnRight" eSuperTypes="#//DriveAction">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="degrees" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="Object">
    <eLiterals name="ROCK" literal="ROCK"/>
    <eLiterals name="LAKE" value="1" literal="LAKE"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="Speed">
    <eLiterals name="FAST" literal="FAST"/>
    <eLiterals name="NORMAL" value="1" literal="NORMAL"/>
    <eLiterals name="SLOW" value="2" literal="SLOW"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="Color">
    <eLiterals name="RED" literal="RED"/>
    <eLiterals name="GREEN" value="1" literal="GREEN"/>
    <eLiterals name="BLUE" value="2" literal="BLUE"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"taskDSL","nsURI":"http://www.ru.mars/des/robot/TaskDSL","name":"taskDSL","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"DSL","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Mission","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Task","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Action","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Detector","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"DriveUntil","instanceClass":null,"abstract":false,"id":6,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Investigate","instanceClass":null,"abstract":false,"id":7,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Speak","instanceClass":null,"abstract":false,"id":8,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"FollowLine","instanceClass":null,"abstract":false,"id":9,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Avoid","instanceClass":null,"abstract":false,"id":10,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"DriveAction","instanceClass":null,"abstract":false,"id":11,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"MoveBack","instanceClass":null,"abstract":false,"id":12,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"TurnLeft","instanceClass":null,"abstract":false,"id":13,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"TurnRight","instanceClass":null,"abstract":false,"id":14,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"instanceClassName":null,"name":"Object","instanceClass":null,"id":15,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"instanceClassName":null,"name":"Speed","instanceClass":null,"id":16,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"instanceClassName":null,"name":"Color","instanceClass":null,"id":17,"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":"missions","changeable":true,"resolveProxies":true,"lowerBound":0,"id":18,"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":"tasks","changeable":true,"resolveProxies":true,"lowerBound":0,"id":19,"derived":false},{"id":20,"eClass":"EGenericType"},{"id":21,"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":false,"id":22,"derived":false},{"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":false,"name":"tasks","changeable":true,"resolveProxies":true,"lowerBound":0,"id":23,"derived":false},{"id":24,"eClass":"EGenericType"},{"id":25,"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":false,"id":26,"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":"action","changeable":true,"resolveProxies":true,"lowerBound":0,"id":27,"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":"detector","changeable":true,"resolveProxies":true,"lowerBound":0,"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":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"avoiders","changeable":true,"resolveProxies":true,"lowerBound":0,"id":32,"derived":false},{"id":33,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"speed","changeable":true,"lowerBound":0,"iD":false,"id":34,"derived":false},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"color","changeable":true,"lowerBound":0,"iD":false,"id":35,"derived":false},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"object","changeable":true,"lowerBound":0,"iD":false,"id":36,"derived":false},{"id":37,"eClass":"EGenericType"},{"id":38,"eClass":"EGenericType"},{"id":39,"eClass":"EGenericType"},{"id":40,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"speed","changeable":true,"lowerBound":0,"iD":false,"id":41,"derived":false},{"id":42,"eClass":"EGenericType"},{"id":43,"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":"text","changeable":true,"lowerBound":0,"iD":false,"id":44,"derived":false},{"id":45,"eClass":"EGenericType"},{"id":46,"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":47,"derived":false},{"id":48,"eClass":"EGenericType"},{"id":49,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"color","changeable":true,"lowerBound":0,"iD":false,"id":50,"derived":false},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"object","changeable":true,"lowerBound":0,"iD":false,"id":51,"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":"driveActions","changeable":true,"resolveProxies":true,"lowerBound":0,"id":52,"derived":false},{"id":53,"eClass":"EGenericType"},{"id":54,"eClass":"EGenericType"},{"id":55,"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":"meters","changeable":true,"lowerBound":0,"iD":false,"id":56,"derived":false},{"id":57,"eClass":"EGenericType"},{"id":58,"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":"degrees","changeable":true,"lowerBound":0,"iD":false,"id":59,"derived":false},{"id":60,"eClass":"EGenericType"},{"id":61,"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":"degrees","changeable":true,"lowerBound":0,"iD":false,"id":62,"derived":false},{"id":63,"eClass":"EGenericType"},{"id":64,"eClass":"EGenericType"},{"name":"ROCK","id":65,"value":0,"literal":"ROCK","eClass":"EEnumLiteral"},{"name":"LAKE","id":66,"value":1,"literal":"LAKE","eClass":"EEnumLiteral"},{"name":"FAST","id":67,"value":0,"literal":"FAST","eClass":"EEnumLiteral"},{"name":"NORMAL","id":68,"value":1,"literal":"NORMAL","eClass":"EEnumLiteral"},{"name":"SLOW","id":69,"value":2,"literal":"SLOW","eClass":"EEnumLiteral"},{"name":"RED","id":70,"value":0,"literal":"RED","eClass":"EEnumLiteral"},{"name":"GREEN","id":71,"value":1,"literal":"GREEN","eClass":"EEnumLiteral"},{"name":"BLUE","id":72,"value":2,"literal":"BLUE","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":0,"target":7},{"source":0,"target":8},{"source":0,"target":9},{"source":0,"target":10},{"source":0,"target":11},{"source":0,"target":12},{"source":0,"target":13},{"source":0,"target":14},{"source":0,"target":15},{"source":0,"target":16},{"source":0,"target":17},{"source":1,"target":0},{"source":1,"target":18},{"source":1,"target":19},{"source":18,"target":2},{"source":18,"target":20},{"source":18,"target":1},{"source":20,"target":2},{"source":19,"target":3},{"source":19,"target":21},{"source":19,"target":1},{"source":21,"target":3},{"source":2,"target":0},{"source":2,"target":22},{"source":2,"target":23},{"source":22,"target":24},{"source":22,"target":2},{"source":23,"target":3},{"source":23,"target":25},{"source":23,"target":2},{"source":25,"target":3},{"source":3,"target":0},{"source":3,"target":26},{"source":3,"target":27},{"source":3,"target":28},{"source":26,"target":29},{"source":26,"target":3},{"source":27,"target":4},{"source":27,"target":30},{"source":27,"target":3},{"source":30,"target":4},{"source":28,"target":5},{"source":28,"target":31},{"source":28,"target":3},{"source":31,"target":5},{"source":4,"target":0},{"source":5,"target":0},{"source":5,"target":32},{"source":32,"target":10},{"source":32,"target":33},{"source":32,"target":5},{"source":33,"target":10},{"source":6,"target":0},{"source":6,"target":4},{"source":6,"target":34},{"source":6,"target":35},{"source":6,"target":36},{"source":6,"target":37},{"source":34,"target":16},{"source":34,"target":38},{"source":34,"target":6},{"source":38,"target":16},{"source":35,"target":17},{"source":35,"target":39},{"source":35,"target":6},{"source":39,"target":17},{"source":36,"target":15},{"source":36,"target":40},{"source":36,"target":6},{"source":40,"target":15},{"source":37,"target":4},{"source":7,"target":0},{"source":7,"target":4},{"source":7,"target":41},{"source":7,"target":42},{"source":41,"target":16},{"source":41,"target":43},{"source":41,"target":7},{"source":43,"target":16},{"source":42,"target":4},{"source":8,"target":0},{"source":8,"target":4},{"source":8,"target":44},{"source":8,"target":45},{"source":44,"target":46},{"source":44,"target":8},{"source":45,"target":4},{"source":9,"target":0},{"source":9,"target":4},{"source":9,"target":47},{"source":9,"target":48},{"source":47,"target":49},{"source":47,"target":9},{"source":48,"target":4},{"source":10,"target":0},{"source":10,"target":50},{"source":10,"target":51},{"source":10,"target":52},{"source":50,"target":17},{"source":50,"target":53},{"source":50,"target":10},{"source":53,"target":17},{"source":51,"target":15},{"source":51,"target":54},{"source":51,"target":10},{"source":54,"target":15},{"source":52,"target":11},{"source":52,"target":55},{"source":52,"target":10},{"source":55,"target":11},{"source":11,"target":0},{"source":12,"target":0},{"source":12,"target":11},{"source":12,"target":56},{"source":12,"target":57},{"source":56,"target":58},{"source":56,"target":12},{"source":57,"target":11},{"source":13,"target":0},{"source":13,"target":11},{"source":13,"target":59},{"source":13,"target":60},{"source":59,"target":61},{"source":59,"target":13},{"source":60,"target":11},{"source":14,"target":0},{"source":14,"target":11},{"source":14,"target":62},{"source":14,"target":63},{"source":62,"target":64},{"source":62,"target":14},{"source":63,"target":11},{"source":15,"target":0},{"source":15,"target":65},{"source":15,"target":66},{"source":65,"target":15},{"source":66,"target":15},{"source":16,"target":0},{"source":16,"target":67},{"source":16,"target":68},{"source":16,"target":69},{"source":67,"target":16},{"source":68,"target":16},{"source":69,"target":16},{"source":17,"target":0},{"source":17,"target":70},{"source":17,"target":71},{"source":17,"target":72},{"source":70,"target":17},{"source":71,"target":17},{"source":72,"target":17}],"multigraph":true}