arduinoml
NamedElement
name

App
bricks
states
conditions
transitions
Brick
pin
type
DIGITAL
Sensor
Actuator
Transition
next
condition
previous
State
actions
transitions
Condition
Action
actuator
value
OPERATOR
AND
AND
OR
OR
SimpleCondition
value
comparator
sensor
COMPARATOR
EQUALS
EQUALS
NON_EQUALS
NON_EQUALS
SUPERIOR
>
INFERIOR
<
SUPERIOR_OR_EQUALS
>=
INFERIOR_OR_EQUALS
<=
BrickType
DIGITAL
DIGITAL
ANALOGICAL
ANALOGICAL
MultipleCondition
conditions
operators
<?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://www.example.org/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"
        defaultValueLiteral=""/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="App" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="bricks" lowerBound="1"
        upperBound="-1" eType="#//Brick" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="states" upperBound="-1"
        eType="#//State" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="conditions" upperBound="-1"
        eType="#//Condition" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="transitions" upperBound="-1"
        eType="#//Transition" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Brick" abstract="true" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="pin" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" lowerBound="1" eType="#//BrickType"
        defaultValueLiteral="DIGITAL"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Sensor" eSuperTypes="#//Brick"/>
  <eClassifiers xsi:type="ecore:EClass" name="Actuator" eSuperTypes="#//Brick"/>
  <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="#//Condition"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="previous" lowerBound="1"
        eType="#//State"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="State" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="actions" upperBound="-1"
        eType="#//Action" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="transitions" upperBound="-1"
        eType="#//Transition"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Condition" abstract="true" eSuperTypes="#//NamedElement"/>
  <eClassifiers xsi:type="ecore:EClass" name="Action" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="actuator" lowerBound="1"
        eType="#//Actuator"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="OPERATOR">
    <eLiterals name="AND"/>
    <eLiterals name="OR" value="1"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="SimpleCondition" eSuperTypes="#//Condition">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="comparator" eType="#//COMPARATOR"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="sensor" lowerBound="1"
        eType="#//Sensor"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="COMPARATOR">
    <eLiterals name="EQUALS"/>
    <eLiterals name="NON_EQUALS" value="1"/>
    <eLiterals name="SUPERIOR" value="2" literal=">"/>
    <eLiterals name="INFERIOR" value="3" literal="&lt;"/>
    <eLiterals name="SUPERIOR_OR_EQUALS" value="4" literal=">="/>
    <eLiterals name="INFERIOR_OR_EQUALS" value="5" literal="&lt;="/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="BrickType">
    <eLiterals name="DIGITAL"/>
    <eLiterals name="ANALOGICAL" value="1"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="MultipleCondition" eSuperTypes="#//Condition">
    <eStructuralFeatures xsi:type="ecore:EReference" name="conditions" lowerBound="1"
        upperBound="-1" eType="#//SimpleCondition" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="operators" lowerBound="1"
        upperBound="-1" eType="#//OPERATOR"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"arduinoml","nsURI":"http://www.example.org/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":"Brick","instanceClass":null,"abstract":true,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Sensor","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Actuator","instanceClass":null,"abstract":false,"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":"State","instanceClass":null,"abstract":false,"id":7,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Condition","instanceClass":null,"abstract":true,"id":8,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Action","instanceClass":null,"abstract":false,"id":9,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"instanceClassName":null,"name":"OPERATOR","instanceClass":null,"id":10,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"SimpleCondition","instanceClass":null,"abstract":false,"id":11,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"instanceClassName":null,"name":"COMPARATOR","instanceClass":null,"id":12,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"instanceClassName":null,"name":"BrickType","instanceClass":null,"id":13,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"MultipleCondition","instanceClass":null,"abstract":false,"id":14,"interface":false,"eClass":"EClass"},{"ordered":true,"upperBound":1,"defaultValue":"","volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":"","unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":0,"iD":false,"id":15,"derived":false},{"id":16,"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":"bricks","changeable":true,"resolveProxies":true,"lowerBound":1,"id":17,"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":"states","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":"conditions","changeable":true,"resolveProxies":true,"lowerBound":0,"id":19,"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":"transitions","changeable":true,"resolveProxies":true,"lowerBound":0,"id":20,"derived":false},{"id":21,"eClass":"EGenericType"},{"id":22,"eClass":"EGenericType"},{"id":23,"eClass":"EGenericType"},{"id":24,"eClass":"EGenericType"},{"id":25,"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":"pin","changeable":true,"lowerBound":0,"iD":false,"id":26,"derived":false},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":"DIGITAL","unsettable":false,"transient":false,"unique":true,"name":"type","changeable":true,"lowerBound":1,"iD":false,"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":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"next","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":"condition","changeable":true,"resolveProxies":true,"lowerBound":1,"id":34,"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":"previous","changeable":true,"resolveProxies":true,"lowerBound":1,"id":35,"derived":false},{"id":36,"eClass":"EGenericType"},{"id":37,"eClass":"EGenericType"},{"id":38,"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":"actions","changeable":true,"resolveProxies":true,"lowerBound":0,"id":39,"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":true,"name":"transitions","changeable":true,"resolveProxies":true,"lowerBound":0,"id":40,"derived":false},{"id":41,"eClass":"EGenericType"},{"id":42,"eClass":"EGenericType"},{"id":43,"eClass":"EGenericType"},{"id":44,"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":45,"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":"value","changeable":true,"lowerBound":0,"iD":false,"id":46,"derived":false},{"id":47,"eClass":"EGenericType"},{"id":48,"eClass":"EGenericType"},{"id":49,"eClass":"EGenericType"},{"name":"AND","id":50,"value":0,"literal":"AND","eClass":"EEnumLiteral"},{"name":"OR","id":51,"value":1,"literal":"OR","eClass":"EEnumLiteral"},{"ordered":true,"upperBound":1,"defaultValue":null,"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":52,"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":53,"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":54,"derived":false},{"id":55,"eClass":"EGenericType"},{"id":56,"eClass":"EGenericType"},{"id":57,"eClass":"EGenericType"},{"id":58,"eClass":"EGenericType"},{"name":"EQUALS","id":59,"value":0,"literal":"EQUALS","eClass":"EEnumLiteral"},{"name":"NON_EQUALS","id":60,"value":1,"literal":"NON_EQUALS","eClass":"EEnumLiteral"},{"name":"SUPERIOR","id":61,"value":2,"literal":">","eClass":"EEnumLiteral"},{"name":"INFERIOR","id":62,"value":3,"literal":"<","eClass":"EEnumLiteral"},{"name":"SUPERIOR_OR_EQUALS","id":63,"value":4,"literal":">=","eClass":"EEnumLiteral"},{"name":"INFERIOR_OR_EQUALS","id":64,"value":5,"literal":"<=","eClass":"EEnumLiteral"},{"name":"DIGITAL","id":65,"value":0,"literal":"DIGITAL","eClass":"EEnumLiteral"},{"name":"ANALOGICAL","id":66,"value":1,"literal":"ANALOGICAL","eClass":"EEnumLiteral"},{"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":67,"derived":false},{"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"operators","changeable":true,"lowerBound":1,"iD":false,"id":68,"derived":false},{"id":69,"eClass":"EGenericType"},{"id":70,"eClass":"EGenericType"},{"id":71,"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":1,"target":0},{"source":1,"target":15},{"source":15,"target":16},{"source":15,"target":1},{"source":2,"target":0},{"source":2,"target":1},{"source":2,"target":17},{"source":2,"target":18},{"source":2,"target":19},{"source":2,"target":20},{"source":2,"target":21},{"source":17,"target":3},{"source":17,"target":22},{"source":17,"target":2},{"source":22,"target":3},{"source":18,"target":7},{"source":18,"target":23},{"source":18,"target":2},{"source":23,"target":7},{"source":19,"target":8},{"source":19,"target":24},{"source":19,"target":2},{"source":24,"target":8},{"source":20,"target":6},{"source":20,"target":25},{"source":20,"target":2},{"source":25,"target":6},{"source":21,"target":1},{"source":3,"target":0},{"source":3,"target":1},{"source":3,"target":26},{"source":3,"target":27},{"source":3,"target":28},{"source":26,"target":29},{"source":26,"target":3},{"source":27,"target":13},{"source":27,"target":30},{"source":27,"target":3},{"source":30,"target":13},{"source":28,"target":1},{"source":4,"target":0},{"source":4,"target":3},{"source":4,"target":31},{"source":31,"target":3},{"source":5,"target":0},{"source":5,"target":3},{"source":5,"target":32},{"source":32,"target":3},{"source":6,"target":0},{"source":6,"target":33},{"source":6,"target":34},{"source":6,"target":35},{"source":33,"target":7},{"source":33,"target":36},{"source":33,"target":6},{"source":36,"target":7},{"source":34,"target":8},{"source":34,"target":37},{"source":34,"target":6},{"source":37,"target":8},{"source":35,"target":7},{"source":35,"target":38},{"source":35,"target":6},{"source":38,"target":7},{"source":7,"target":0},{"source":7,"target":1},{"source":7,"target":39},{"source":7,"target":40},{"source":7,"target":41},{"source":39,"target":9},{"source":39,"target":42},{"source":39,"target":7},{"source":42,"target":9},{"source":40,"target":6},{"source":40,"target":43},{"source":40,"target":7},{"source":43,"target":6},{"source":41,"target":1},{"source":8,"target":0},{"source":8,"target":1},{"source":8,"target":44},{"source":44,"target":1},{"source":9,"target":0},{"source":9,"target":1},{"source":9,"target":45},{"source":9,"target":46},{"source":9,"target":47},{"source":45,"target":5},{"source":45,"target":48},{"source":45,"target":9},{"source":48,"target":5},{"source":46,"target":49},{"source":46,"target":9},{"source":47,"target":1},{"source":10,"target":0},{"source":10,"target":50},{"source":10,"target":51},{"source":50,"target":10},{"source":51,"target":10},{"source":11,"target":0},{"source":11,"target":8},{"source":11,"target":52},{"source":11,"target":53},{"source":11,"target":54},{"source":11,"target":55},{"source":52,"target":56},{"source":52,"target":11},{"source":53,"target":12},{"source":53,"target":57},{"source":53,"target":11},{"source":57,"target":12},{"source":54,"target":4},{"source":54,"target":58},{"source":54,"target":11},{"source":58,"target":4},{"source":55,"target":8},{"source":12,"target":0},{"source":12,"target":59},{"source":12,"target":60},{"source":12,"target":61},{"source":12,"target":62},{"source":12,"target":63},{"source":12,"target":64},{"source":59,"target":12},{"source":60,"target":12},{"source":61,"target":12},{"source":62,"target":12},{"source":63,"target":12},{"source":64,"target":12},{"source":13,"target":0},{"source":13,"target":65},{"source":13,"target":66},{"source":65,"target":13},{"source":66,"target":13},{"source":14,"target":0},{"source":14,"target":8},{"source":14,"target":67},{"source":14,"target":68},{"source":14,"target":69},{"source":67,"target":11},{"source":67,"target":70},{"source":67,"target":14},{"source":70,"target":11},{"source":68,"target":10},{"source":68,"target":71},{"source":68,"target":14},{"source":71,"target":10},{"source":69,"target":8}],"multigraph":true}