ArduinoMetamodel
Project
boards
metodos
fsm
ArduinoBoardUNO
digitalpins
analogpins
Pin
label
pinMode
Digital
ID
Analog
ID
PWM
AnalogID
A0
A0
A1
A1
A2
A2
A3
A3
A4
A4
A5
A5
A6
A6
DigitalID
D2
D2
D4
D4
D7
D7
D8
D8
D12
D12
D13
D13
PinMode
INPUT
INPUT
OUTPUT
OUTPUT
INPUT_PULLUP
INPUT_PULLUP
Metodo
nombre
instrucciones
Instruccion
codigo
delay
State
incoming
outgoing
name
isInitial
Transition
actions
source
target
FiniteStateMachine
states
Action
<?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="ArduinoMetamodel" nsURI="http://ArduinoMetamodel" nsPrefix="ArduinoMetamodel">
  <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
    <details key="invocationDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot"/>
    <details key="settingDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot"/>
    <details key="validationDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot"/>
  </eAnnotations>
  <eClassifiers xsi:type="ecore:EClass" name="Project">
    <eStructuralFeatures xsi:type="ecore:EReference" name="boards" lowerBound="1"
        upperBound="-1" eType="#//ArduinoBoardUNO" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="metodos" lowerBound="1"
        upperBound="-1" eType="#//Metodo" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="fsm" eType="#//FiniteStateMachine"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="ArduinoBoardUNO">
    <eStructuralFeatures xsi:type="ecore:EReference" name="digitalpins" upperBound="6"
        eType="#//Digital" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="analogpins" upperBound="6"
        eType="#//Analog" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Pin" abstract="true">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="label" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="pinMode" eType="#//PinMode"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Digital" eSuperTypes="#//Pin">
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="constraints" value="uniqueNames"/>
    </eAnnotations>
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
      <details key="uniqueNames" value="Digital.allInstances()->forAll(d1, d2 | d1 &lt;> d2 implies d1.label &lt;> d2.label )"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="ID" eType="#//DigitalID"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Analog" eSuperTypes="#//Pin">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="ID" eType="#//AnalogID"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="PWM" eSuperTypes="#//Analog"/>
  <eClassifiers xsi:type="ecore:EEnum" name="AnalogID">
    <eLiterals name="A0"/>
    <eLiterals name="A1"/>
    <eLiterals name="A2"/>
    <eLiterals name="A3"/>
    <eLiterals name="A4"/>
    <eLiterals name="A5"/>
    <eLiterals name="A6"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="DigitalID">
    <eLiterals name="D2"/>
    <eLiterals name="D4"/>
    <eLiterals name="D7"/>
    <eLiterals name="D8"/>
    <eLiterals name="D12"/>
    <eLiterals name="D13"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="PinMode">
    <eLiterals name="INPUT"/>
    <eLiterals name="OUTPUT"/>
    <eLiterals name="INPUT_PULLUP"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Metodo">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="nombre" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="instrucciones" lowerBound="1"
        upperBound="-1" eType="#//Instruccion" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Instruccion">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="codigo" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="delay" eSuperTypes="#//Instruccion"/>
  <eClassifiers xsi:type="ecore:EClass" name="State">
    <eStructuralFeatures xsi:type="ecore:EReference" name="incoming" upperBound="-1"
        eType="#//Transition" eOpposite="#//Transition/target"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="outgoing" upperBound="-1"
        eType="#//Transition" eOpposite="#//Transition/source"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="isInitial" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Transition">
    <eStructuralFeatures xsi:type="ecore:EReference" name="actions" upperBound="-1"
        eType="#//Action" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="source" lowerBound="1"
        eType="#//State" eOpposite="#//State/outgoing"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="target" lowerBound="1"
        eType="#//State" eOpposite="#//State/incoming"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="FiniteStateMachine">
    <eStructuralFeatures xsi:type="ecore:EReference" name="states" upperBound="-1"
        eType="#//State" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Action"/>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"ArduinoMetamodel","nsURI":"http://ArduinoMetamodel","name":"ArduinoMetamodel","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Project","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"ArduinoBoardUNO","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Pin","instanceClass":null,"abstract":true,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Digital","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Analog","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"PWM","instanceClass":null,"abstract":false,"id":6,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"instanceClassName":null,"name":"AnalogID","instanceClass":null,"id":7,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"instanceClassName":null,"name":"DigitalID","instanceClass":null,"id":8,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"instanceClassName":null,"name":"PinMode","instanceClass":null,"id":9,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Metodo","instanceClass":null,"abstract":false,"id":10,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Instruccion","instanceClass":null,"abstract":false,"id":11,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"delay","instanceClass":null,"abstract":false,"id":12,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"State","instanceClass":null,"abstract":false,"id":13,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Transition","instanceClass":null,"abstract":false,"id":14,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"FiniteStateMachine","instanceClass":null,"abstract":false,"id":15,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Action","instanceClass":null,"abstract":false,"id":16,"interface":false,"eClass":"EClass"},{"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":"boards","changeable":true,"resolveProxies":true,"lowerBound":1,"id":17,"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":"metodos","changeable":true,"resolveProxies":true,"lowerBound":1,"id":18,"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":"fsm","changeable":true,"resolveProxies":true,"lowerBound":0,"id":19,"derived":false},{"id":20,"eClass":"EGenericType"},{"id":21,"eClass":"EGenericType"},{"id":22,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":6,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"digitalpins","changeable":true,"resolveProxies":true,"lowerBound":0,"id":23,"derived":false},{"container":false,"ordered":true,"upperBound":6,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"analogpins","changeable":true,"resolveProxies":true,"lowerBound":0,"id":24,"derived":false},{"id":25,"eClass":"EGenericType"},{"id":26,"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":"label","changeable":true,"lowerBound":0,"iD":false,"id":27,"derived":false},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"pinMode","changeable":true,"lowerBound":0,"iD":false,"id":28,"derived":false},{"id":29,"eClass":"EGenericType"},{"id":30,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"ID","changeable":true,"lowerBound":0,"iD":false,"id":31,"derived":false},{"id":32,"eClass":"EGenericType"},{"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":"ID","changeable":true,"lowerBound":0,"iD":false,"id":34,"derived":false},{"id":35,"eClass":"EGenericType"},{"id":36,"eClass":"EGenericType"},{"id":37,"eClass":"EGenericType"},{"name":"A0","id":38,"value":0,"literal":"A0","eClass":"EEnumLiteral"},{"name":"A1","id":39,"value":0,"literal":"A1","eClass":"EEnumLiteral"},{"name":"A2","id":40,"value":0,"literal":"A2","eClass":"EEnumLiteral"},{"name":"A3","id":41,"value":0,"literal":"A3","eClass":"EEnumLiteral"},{"name":"A4","id":42,"value":0,"literal":"A4","eClass":"EEnumLiteral"},{"name":"A5","id":43,"value":0,"literal":"A5","eClass":"EEnumLiteral"},{"name":"A6","id":44,"value":0,"literal":"A6","eClass":"EEnumLiteral"},{"name":"D2","id":45,"value":0,"literal":"D2","eClass":"EEnumLiteral"},{"name":"D4","id":46,"value":0,"literal":"D4","eClass":"EEnumLiteral"},{"name":"D7","id":47,"value":0,"literal":"D7","eClass":"EEnumLiteral"},{"name":"D8","id":48,"value":0,"literal":"D8","eClass":"EEnumLiteral"},{"name":"D12","id":49,"value":0,"literal":"D12","eClass":"EEnumLiteral"},{"name":"D13","id":50,"value":0,"literal":"D13","eClass":"EEnumLiteral"},{"name":"INPUT","id":51,"value":0,"literal":"INPUT","eClass":"EEnumLiteral"},{"name":"OUTPUT","id":52,"value":0,"literal":"OUTPUT","eClass":"EEnumLiteral"},{"name":"INPUT_PULLUP","id":53,"value":0,"literal":"INPUT_PULLUP","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":"nombre","changeable":true,"lowerBound":0,"iD":false,"id":54,"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":"instrucciones","changeable":true,"resolveProxies":true,"lowerBound":1,"id":55,"derived":false},{"id":56,"eClass":"EGenericType"},{"id":57,"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":"codigo","changeable":true,"lowerBound":0,"iD":false,"id":58,"derived":false},{"id":59,"eClass":"EGenericType"},{"id":60,"eClass":"EGenericType"},{"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":"incoming","changeable":true,"resolveProxies":true,"lowerBound":0,"id":61,"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":"outgoing","changeable":true,"resolveProxies":true,"lowerBound":0,"id":62,"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":63,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":false,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"isInitial","changeable":true,"lowerBound":1,"iD":false,"id":64,"derived":false},{"id":65,"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":"target","changeable":true,"resolveProxies":true,"lowerBound":1,"id":66,"derived":false},{"id":67,"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":"source","changeable":true,"resolveProxies":true,"lowerBound":1,"id":68,"derived":false},{"id":69,"eClass":"EGenericType"},{"id":70,"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":71,"derived":false},{"id":72,"eClass":"EGenericType"},{"id":73,"eClass":"EGenericType"},{"id":74,"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":"states","changeable":true,"resolveProxies":true,"lowerBound":0,"id":75,"derived":false},{"id":76,"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":1,"target":0},{"source":1,"target":17},{"source":1,"target":18},{"source":1,"target":19},{"source":17,"target":2},{"source":17,"target":20},{"source":17,"target":1},{"source":20,"target":2},{"source":18,"target":10},{"source":18,"target":21},{"source":18,"target":1},{"source":21,"target":10},{"source":19,"target":15},{"source":19,"target":22},{"source":19,"target":1},{"source":22,"target":15},{"source":2,"target":0},{"source":2,"target":23},{"source":2,"target":24},{"source":23,"target":4},{"source":23,"target":25},{"source":23,"target":2},{"source":25,"target":4},{"source":24,"target":5},{"source":24,"target":26},{"source":24,"target":2},{"source":26,"target":5},{"source":3,"target":0},{"source":3,"target":27},{"source":3,"target":28},{"source":27,"target":29},{"source":27,"target":3},{"source":28,"target":9},{"source":28,"target":30},{"source":28,"target":3},{"source":30,"target":9},{"source":4,"target":0},{"source":4,"target":3},{"source":4,"target":31},{"source":4,"target":32},{"source":31,"target":8},{"source":31,"target":33},{"source":31,"target":4},{"source":33,"target":8},{"source":32,"target":3},{"source":5,"target":0},{"source":5,"target":3},{"source":5,"target":34},{"source":5,"target":35},{"source":34,"target":7},{"source":34,"target":36},{"source":34,"target":5},{"source":36,"target":7},{"source":35,"target":3},{"source":6,"target":0},{"source":6,"target":5},{"source":6,"target":37},{"source":37,"target":5},{"source":7,"target":0},{"source":7,"target":38},{"source":7,"target":39},{"source":7,"target":40},{"source":7,"target":41},{"source":7,"target":42},{"source":7,"target":43},{"source":7,"target":44},{"source":38,"target":7},{"source":39,"target":7},{"source":40,"target":7},{"source":41,"target":7},{"source":42,"target":7},{"source":43,"target":7},{"source":44,"target":7},{"source":8,"target":0},{"source":8,"target":45},{"source":8,"target":46},{"source":8,"target":47},{"source":8,"target":48},{"source":8,"target":49},{"source":8,"target":50},{"source":45,"target":8},{"source":46,"target":8},{"source":47,"target":8},{"source":48,"target":8},{"source":49,"target":8},{"source":50,"target":8},{"source":9,"target":0},{"source":9,"target":51},{"source":9,"target":52},{"source":9,"target":53},{"source":51,"target":9},{"source":52,"target":9},{"source":53,"target":9},{"source":10,"target":0},{"source":10,"target":54},{"source":10,"target":55},{"source":54,"target":56},{"source":54,"target":10},{"source":55,"target":11},{"source":55,"target":57},{"source":55,"target":10},{"source":57,"target":11},{"source":11,"target":0},{"source":11,"target":58},{"source":58,"target":59},{"source":58,"target":11},{"source":12,"target":0},{"source":12,"target":11},{"source":12,"target":60},{"source":60,"target":11},{"source":13,"target":0},{"source":13,"target":61},{"source":13,"target":62},{"source":13,"target":63},{"source":13,"target":64},{"source":61,"target":14},{"source":61,"target":65},{"source":61,"target":13},{"source":61,"target":66},{"source":65,"target":14},{"source":62,"target":14},{"source":62,"target":67},{"source":62,"target":13},{"source":62,"target":68},{"source":67,"target":14},{"source":63,"target":69},{"source":63,"target":13},{"source":64,"target":70},{"source":64,"target":13},{"source":14,"target":0},{"source":14,"target":71},{"source":14,"target":68},{"source":14,"target":66},{"source":71,"target":16},{"source":71,"target":72},{"source":71,"target":14},{"source":72,"target":16},{"source":68,"target":13},{"source":68,"target":73},{"source":68,"target":14},{"source":68,"target":62},{"source":73,"target":13},{"source":66,"target":13},{"source":66,"target":74},{"source":66,"target":14},{"source":66,"target":61},{"source":74,"target":13},{"source":15,"target":0},{"source":15,"target":75},{"source":75,"target":13},{"source":75,"target":76},{"source":75,"target":15},{"source":76,"target":13},{"source":16,"target":0}],"multigraph":true}