arduinoml
NamedElement
name
App
states
bricks
initial
State
actions
transition
Brick
pin
Action
actuator
Transition
next
condition
Sensor
Actuator
SIGNAL
HIGH
HIGH
LOW
LOW
Condition
SingleElementCondition
sensor
value
MultipleElementCondition
conditions
operators
OPERATOR
and
and
or
or
ValueElementCondition
value
sensor
comparator
BinarySensor
AnalogSensor
COMPARATOR
SUPERIOR
SUPERIOR
INFERIOR
INFERIOR
EQUAL
EQUAL
AnalogActuator
BinaryActuator
AnalogAction
actionValue
BinaryAction
actionValue
<?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="arduinoml" nsURI="http://fr.unice.polytech.dsl/arduinoml" nsPrefix="arduinoml">
  <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"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="App" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="states" lowerBound="1"
        upperBound="-1" eType="#//State" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="bricks" lowerBound="1"
        upperBound="-1" eType="#//Brick" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="initial" lowerBound="1"
        eType="#//State"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="State" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="actions" lowerBound="1"
        upperBound="-1" eType="#//Action" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="transition" lowerBound="1"
        eType="#//Transition" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Brick" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="pin" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Action" abstract="true">
    <eStructuralFeatures xsi:type="ecore:EReference" name="actuator" lowerBound="1"
        eType="#//Actuator"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Transition">
    <eStructuralFeatures xsi:type="ecore:EReference" name="next" lowerBound="1" eType="#//State"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="condition" lowerBound="1"
        eType="#//MultipleElementCondition" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Sensor" abstract="true" eSuperTypes="#//Brick"/>
  <eClassifiers xsi:type="ecore:EClass" name="Actuator" abstract="true" eSuperTypes="#//Brick"/>
  <eClassifiers xsi:type="ecore:EEnum" name="SIGNAL">
    <eLiterals name="HIGH"/>
    <eLiterals name="LOW" value="1"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Condition" abstract="true"/>
  <eClassifiers xsi:type="ecore:EClass" name="SingleElementCondition" eSuperTypes="#//Condition">
    <eStructuralFeatures xsi:type="ecore:EReference" name="sensor" lowerBound="1"
        eType="#//BinarySensor"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="#//SIGNAL"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="MultipleElementCondition" eSuperTypes="#//Condition">
    <eStructuralFeatures xsi:type="ecore:EReference" name="conditions" lowerBound="1"
        upperBound="-1" eType="#//Condition" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="operators" upperBound="-1"
        eType="#//OPERATOR"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="OPERATOR">
    <eLiterals name="and"/>
    <eLiterals name="or" value="1"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="ValueElementCondition" eSuperTypes="#//Condition">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="sensor" lowerBound="1"
        eType="#//AnalogSensor"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="comparator" eType="#//COMPARATOR"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="BinarySensor" eSuperTypes="#//Sensor"/>
  <eClassifiers xsi:type="ecore:EClass" name="AnalogSensor" eSuperTypes="#//Sensor"/>
  <eClassifiers xsi:type="ecore:EEnum" name="COMPARATOR">
    <eLiterals name="SUPERIOR"/>
    <eLiterals name="INFERIOR" value="1"/>
    <eLiterals name="EQUAL" value="2"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="AnalogActuator" eSuperTypes="#//Actuator"/>
  <eClassifiers xsi:type="ecore:EClass" name="BinaryActuator" eSuperTypes="#//Actuator"/>
  <eClassifiers xsi:type="ecore:EClass" name="AnalogAction" eSuperTypes="#//Action">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="actionValue" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="BinaryAction" eSuperTypes="#//Action">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="actionValue" eType="#//SIGNAL"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"arduinoml","nsURI":"http://fr.unice.polytech.dsl/arduinoml","name":"arduinoml","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"NamedElement","instanceClass":null,"abstract":true,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"App","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"State","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Brick","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Action","instanceClass":null,"abstract":true,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Transition","instanceClass":null,"abstract":false,"id":6,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Sensor","instanceClass":null,"abstract":true,"id":7,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Actuator","instanceClass":null,"abstract":true,"id":8,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"instanceClassName":null,"name":"SIGNAL","instanceClass":null,"id":9,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Condition","instanceClass":null,"abstract":true,"id":10,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"SingleElementCondition","instanceClass":null,"abstract":false,"id":11,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"MultipleElementCondition","instanceClass":null,"abstract":false,"id":12,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"instanceClassName":null,"name":"OPERATOR","instanceClass":null,"id":13,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"ValueElementCondition","instanceClass":null,"abstract":false,"id":14,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"BinarySensor","instanceClass":null,"abstract":false,"id":15,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"AnalogSensor","instanceClass":null,"abstract":false,"id":16,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"instanceClassName":null,"name":"COMPARATOR","instanceClass":null,"id":17,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"AnalogActuator","instanceClass":null,"abstract":false,"id":18,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"BinaryActuator","instanceClass":null,"abstract":false,"id":19,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"AnalogAction","instanceClass":null,"abstract":false,"id":20,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"BinaryAction","instanceClass":null,"abstract":false,"id":21,"interface":false,"eClass":"EClass"},{"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},{"id":23,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"states","changeable":true,"resolveProxies":true,"lowerBound":1,"id":24,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"bricks","changeable":true,"resolveProxies":true,"lowerBound":1,"id":25,"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":"initial","changeable":true,"resolveProxies":true,"lowerBound":1,"id":26,"derived":false},{"id":27,"eClass":"EGenericType"},{"id":28,"eClass":"EGenericType"},{"id":29,"eClass":"EGenericType"},{"id":30,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"actions","changeable":true,"resolveProxies":true,"lowerBound":1,"id":31,"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":"transition","changeable":true,"resolveProxies":true,"lowerBound":1,"id":32,"derived":false},{"id":33,"eClass":"EGenericType"},{"id":34,"eClass":"EGenericType"},{"id":35,"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":"pin","changeable":true,"lowerBound":0,"iD":false,"id":36,"derived":false},{"id":37,"eClass":"EGenericType"},{"id":38,"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":"actuator","changeable":true,"resolveProxies":true,"lowerBound":1,"id":39,"derived":false},{"id":40,"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":"next","changeable":true,"resolveProxies":true,"lowerBound":1,"id":41,"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":"condition","changeable":true,"resolveProxies":true,"lowerBound":1,"id":42,"derived":false},{"id":43,"eClass":"EGenericType"},{"id":44,"eClass":"EGenericType"},{"id":45,"eClass":"EGenericType"},{"id":46,"eClass":"EGenericType"},{"name":"HIGH","id":47,"value":0,"literal":"HIGH","eClass":"EEnumLiteral"},{"name":"LOW","id":48,"value":1,"literal":"LOW","eClass":"EEnumLiteral"},{"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":"sensor","changeable":true,"resolveProxies":true,"lowerBound":1,"id":49,"derived":false},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"value","changeable":true,"lowerBound":0,"iD":false,"id":50,"derived":false},{"id":51,"eClass":"EGenericType"},{"id":52,"eClass":"EGenericType"},{"id":53,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"conditions","changeable":true,"resolveProxies":true,"lowerBound":1,"id":54,"derived":false},{"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"operators","changeable":true,"lowerBound":0,"iD":false,"id":55,"derived":false},{"id":56,"eClass":"EGenericType"},{"id":57,"eClass":"EGenericType"},{"id":58,"eClass":"EGenericType"},{"name":"and","id":59,"value":0,"literal":"and","eClass":"EEnumLiteral"},{"name":"or","id":60,"value":1,"literal":"or","eClass":"EEnumLiteral"},{"ordered":true,"upperBound":1,"defaultValue":0.0,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"value","changeable":true,"lowerBound":0,"iD":false,"id":61,"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":"sensor","changeable":true,"resolveProxies":true,"lowerBound":1,"id":62,"derived":false},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"comparator","changeable":true,"lowerBound":0,"iD":false,"id":63,"derived":false},{"id":64,"eClass":"EGenericType"},{"id":65,"eClass":"EGenericType"},{"id":66,"eClass":"EGenericType"},{"id":67,"eClass":"EGenericType"},{"id":68,"eClass":"EGenericType"},{"id":69,"eClass":"EGenericType"},{"name":"SUPERIOR","id":70,"value":0,"literal":"SUPERIOR","eClass":"EEnumLiteral"},{"name":"INFERIOR","id":71,"value":1,"literal":"INFERIOR","eClass":"EEnumLiteral"},{"name":"EQUAL","id":72,"value":2,"literal":"EQUAL","eClass":"EEnumLiteral"},{"id":73,"eClass":"EGenericType"},{"id":74,"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":"actionValue","changeable":true,"lowerBound":0,"iD":false,"id":75,"derived":false},{"id":76,"eClass":"EGenericType"},{"id":77,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"actionValue","changeable":true,"lowerBound":0,"iD":false,"id":78,"derived":false},{"id":79,"eClass":"EGenericType"},{"id":80,"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":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":0,"target":18},{"source":0,"target":19},{"source":0,"target":20},{"source":0,"target":21},{"source":1,"target":0},{"source":1,"target":22},{"source":22,"target":23},{"source":22,"target":1},{"source":2,"target":0},{"source":2,"target":1},{"source":2,"target":24},{"source":2,"target":25},{"source":2,"target":26},{"source":2,"target":27},{"source":24,"target":3},{"source":24,"target":28},{"source":24,"target":2},{"source":28,"target":3},{"source":25,"target":4},{"source":25,"target":29},{"source":25,"target":2},{"source":29,"target":4},{"source":26,"target":3},{"source":26,"target":30},{"source":26,"target":2},{"source":30,"target":3},{"source":27,"target":1},{"source":3,"target":0},{"source":3,"target":1},{"source":3,"target":31},{"source":3,"target":32},{"source":3,"target":33},{"source":31,"target":5},{"source":31,"target":34},{"source":31,"target":3},{"source":34,"target":5},{"source":32,"target":6},{"source":32,"target":35},{"source":32,"target":3},{"source":35,"target":6},{"source":33,"target":1},{"source":4,"target":0},{"source":4,"target":1},{"source":4,"target":36},{"source":4,"target":37},{"source":36,"target":38},{"source":36,"target":4},{"source":37,"target":1},{"source":5,"target":0},{"source":5,"target":39},{"source":39,"target":8},{"source":39,"target":40},{"source":39,"target":5},{"source":40,"target":8},{"source":6,"target":0},{"source":6,"target":41},{"source":6,"target":42},{"source":41,"target":3},{"source":41,"target":43},{"source":41,"target":6},{"source":43,"target":3},{"source":42,"target":12},{"source":42,"target":44},{"source":42,"target":6},{"source":44,"target":12},{"source":7,"target":0},{"source":7,"target":4},{"source":7,"target":45},{"source":45,"target":4},{"source":8,"target":0},{"source":8,"target":4},{"source":8,"target":46},{"source":46,"target":4},{"source":9,"target":0},{"source":9,"target":47},{"source":9,"target":48},{"source":47,"target":9},{"source":48,"target":9},{"source":10,"target":0},{"source":11,"target":0},{"source":11,"target":10},{"source":11,"target":49},{"source":11,"target":50},{"source":11,"target":51},{"source":49,"target":15},{"source":49,"target":52},{"source":49,"target":11},{"source":52,"target":15},{"source":50,"target":9},{"source":50,"target":53},{"source":50,"target":11},{"source":53,"target":9},{"source":51,"target":10},{"source":12,"target":0},{"source":12,"target":10},{"source":12,"target":54},{"source":12,"target":55},{"source":12,"target":56},{"source":54,"target":10},{"source":54,"target":57},{"source":54,"target":12},{"source":57,"target":10},{"source":55,"target":13},{"source":55,"target":58},{"source":55,"target":12},{"source":58,"target":13},{"source":56,"target":10},{"source":13,"target":0},{"source":13,"target":59},{"source":13,"target":60},{"source":59,"target":13},{"source":60,"target":13},{"source":14,"target":0},{"source":14,"target":10},{"source":14,"target":61},{"source":14,"target":62},{"source":14,"target":63},{"source":14,"target":64},{"source":61,"target":65},{"source":61,"target":14},{"source":62,"target":16},{"source":62,"target":66},{"source":62,"target":14},{"source":66,"target":16},{"source":63,"target":17},{"source":63,"target":67},{"source":63,"target":14},{"source":67,"target":17},{"source":64,"target":10},{"source":15,"target":0},{"source":15,"target":7},{"source":15,"target":68},{"source":68,"target":7},{"source":16,"target":0},{"source":16,"target":7},{"source":16,"target":69},{"source":69,"target":7},{"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},{"source":18,"target":0},{"source":18,"target":8},{"source":18,"target":73},{"source":73,"target":8},{"source":19,"target":0},{"source":19,"target":8},{"source":19,"target":74},{"source":74,"target":8},{"source":20,"target":0},{"source":20,"target":5},{"source":20,"target":75},{"source":20,"target":76},{"source":75,"target":77},{"source":75,"target":20},{"source":76,"target":5},{"source":21,"target":0},{"source":21,"target":5},{"source":21,"target":78},{"source":21,"target":79},{"source":78,"target":9},{"source":78,"target":80},{"source":78,"target":21},{"source":80,"target":9},{"source":79,"target":5}],"multigraph":true}