Commit f6bc18ea authored by Faezeh KHORRAM's avatar Faezeh KHORRAM 💬
Browse files

Update arduino.ecore

parent d162bd85
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
eType="#//Sketch" containment="true" eOpposite="#//Sketch/project"/> eType="#//Sketch" containment="true" eOpposite="#//Sketch/project"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Instruction" abstract="true"/> <eClassifiers xsi:type="ecore:EClass" name="Instruction" abstract="true"/>
<eClassifiers xsi:type="ecore:EClass" name="ModuleAssignment" eSuperTypes="#//ModuleInstruction #//Assignment"/>
<eClassifiers xsi:type="ecore:EClass" name="ModuleInstruction" abstract="true" eSuperTypes="#//Instruction"> <eClassifiers xsi:type="ecore:EClass" name="ModuleInstruction" abstract="true" eSuperTypes="#//Instruction">
<eStructuralFeatures xsi:type="ecore:EReference" name="module" lowerBound="1" <eStructuralFeatures xsi:type="ecore:EReference" name="module" lowerBound="1"
eType="#//Module"/> eType="#//Module"/>
...@@ -48,6 +47,7 @@ ...@@ -48,6 +47,7 @@
<eStructuralFeatures xsi:type="ecore:EAttribute" name="unit" eType="#//Time"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="unit" eType="#//Time"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ModuleAssignment" eSuperTypes="#//ModuleInstruction #//Assignment"/>
<eClassifiers xsi:type="ecore:EEnum" name="Time"> <eClassifiers xsi:type="ecore:EEnum" name="Time">
<eLiterals name="MilliSecond"/> <eLiterals name="MilliSecond"/>
<eLiterals name="MicroSecond"/> <eLiterals name="MicroSecond"/>
...@@ -59,20 +59,30 @@ ...@@ -59,20 +59,30 @@
<eStructuralFeatures xsi:type="ecore:EAttribute" name="iteration" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" <eStructuralFeatures xsi:type="ecore:EAttribute" name="iteration" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
defaultValueLiteral="5"/> defaultValueLiteral="5"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ModuleGet" abstract="true" eSuperTypes="#//Expression"> <eClassifiers xsi:type="ecore:EClass" name="If" eSuperTypes="#//Control">
<eStructuralFeatures xsi:type="ecore:EReference" name="module" lowerBound="1" <eStructuralFeatures xsi:type="ecore:EReference" name="condition" lowerBound="1"
eType="#//Module"/> eType="#//BooleanExpression" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="elseBlock" eType="#//Block"
containment="true"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="While" eSuperTypes="#//Control"> <eClassifiers xsi:type="ecore:EClass" name="While" eSuperTypes="#//Control">
<eStructuralFeatures xsi:type="ecore:EReference" name="condition" lowerBound="1" <eStructuralFeatures xsi:type="ecore:EReference" name="condition" lowerBound="1"
eType="#//BooleanExpression" containment="true"/> eType="#//BooleanExpression" containment="true"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Expression" abstract="true"/>
<eClassifiers xsi:type="ecore:EClass" name="BinaryExpression" abstract="true" eSuperTypes="#//Expression"> <eClassifiers xsi:type="ecore:EClass" name="BinaryExpression" abstract="true" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EReference" name="left" lowerBound="1" eType="#//Expression" <eStructuralFeatures xsi:type="ecore:EReference" name="left" lowerBound="1" eType="#//Expression"
containment="true"/> containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="right" eType="#//Expression" <eStructuralFeatures xsi:type="ecore:EReference" name="right" eType="#//Expression"
containment="true"/> containment="true"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="BooleanExpression" abstract="true" eSuperTypes="#//Expression"/>
<eClassifiers xsi:type="ecore:EClass" name="IntegerExpression" abstract="true" eSuperTypes="#//Expression"/>
<eClassifiers xsi:type="ecore:EClass" name="ModuleGet" abstract="true" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EReference" name="module" lowerBound="1"
eType="#//Module"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Constant" abstract="true" eSuperTypes="#//Expression"/>
<eClassifiers xsi:type="ecore:EEnum" name="BinaryIntegerOperatorKind"> <eClassifiers xsi:type="ecore:EEnum" name="BinaryIntegerOperatorKind">
<eLiterals name="minus"/> <eLiterals name="minus"/>
<eLiterals name="plus" value="1"/> <eLiterals name="plus" value="1"/>
...@@ -93,14 +103,6 @@ ...@@ -93,14 +103,6 @@
<eClassifiers xsi:type="ecore:EClass" name="BinaryBooleanExpression" eSuperTypes="#//BinaryExpression #//BooleanExpression"> <eClassifiers xsi:type="ecore:EClass" name="BinaryBooleanExpression" eSuperTypes="#//BinaryExpression #//BooleanExpression">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="operator" eType="#//BinaryBooleanOperatorKind"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="operator" eType="#//BinaryBooleanOperatorKind"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Expression" abstract="true"/>
<eClassifiers xsi:type="ecore:EClass" name="Constant" abstract="true" eSuperTypes="#//Expression"/>
<eClassifiers xsi:type="ecore:EClass" name="If" eSuperTypes="#//Control">
<eStructuralFeatures xsi:type="ecore:EReference" name="condition" lowerBound="1"
eType="#//BooleanExpression" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="elseBlock" eType="#//Block"
containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="IntegerConstant" eSuperTypes="#//Constant #//IntegerExpression"> <eClassifiers xsi:type="ecore:EClass" name="IntegerConstant" eSuperTypes="#//Constant #//IntegerExpression">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
defaultValueLiteral="0"/> defaultValueLiteral="0"/>
...@@ -109,8 +111,6 @@ ...@@ -109,8 +111,6 @@
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
defaultValueLiteral="false"/> defaultValueLiteral="false"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="BooleanExpression" abstract="true" eSuperTypes="#//Expression"/>
<eClassifiers xsi:type="ecore:EClass" name="IntegerExpression" abstract="true" eSuperTypes="#//Expression"/>
<eClassifiers xsi:type="ecore:EClass" name="Assignment" abstract="true" eSuperTypes="#//Instruction"> <eClassifiers xsi:type="ecore:EClass" name="Assignment" abstract="true" eSuperTypes="#//Instruction">
<eStructuralFeatures xsi:type="ecore:EReference" name="operand" lowerBound="1" <eStructuralFeatures xsi:type="ecore:EReference" name="operand" lowerBound="1"
eType="#//Expression" containment="true"/> eType="#//Expression" containment="true"/>
...@@ -161,20 +161,28 @@ ...@@ -161,20 +161,28 @@
<eStructuralFeatures xsi:type="ecore:EReference" name="variable" lowerBound="1" <eStructuralFeatures xsi:type="ecore:EReference" name="variable" lowerBound="1"
eType="#//IntegerVariable"/> eType="#//IntegerVariable"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ArduinoModule" abstract="true" eSuperTypes="#//Module"/>
<eClassifiers xsi:type="ecore:EClass" name="ArduinoDigitalModule" abstract="true"
eSuperTypes="#//ArduinoModule"/>
<eClassifiers xsi:type="ecore:EClass" name="ArduinoAnalogModule" abstract="true"
eSuperTypes="#//ArduinoModule"/>
<eClassifiers xsi:type="ecore:EClass" name="LED" eSuperTypes="#//ArduinoDigitalModule"> <eClassifiers xsi:type="ecore:EClass" name="LED" eSuperTypes="#//ArduinoDigitalModule">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="color" lowerBound="1" eType="#//Color" <eStructuralFeatures xsi:type="ecore:EAttribute" name="color" lowerBound="1" eType="#//Color"
defaultValueLiteral="blue"/> defaultValueLiteral="blue"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="PushButton" eSuperTypes="#//ArduinoDigitalModule"/> <eClassifiers xsi:type="ecore:EClass" name="PushButton" eSuperTypes="#//ArduinoDigitalModule"/>
<eClassifiers xsi:type="ecore:EClass" name="Buzzer" eSuperTypes="#//ArduinoDigitalModule"/> <eClassifiers xsi:type="ecore:EClass" name="Buzzer" eSuperTypes="#//ArduinoDigitalModule"/>
<eClassifiers xsi:type="ecore:EClass" name="RotationSensor" eSuperTypes="#//ArduinoAnalogModule"/>
<eClassifiers xsi:type="ecore:EClass" name="MicroServo" eSuperTypes="#//ArduinoDigitalModule"/> <eClassifiers xsi:type="ecore:EClass" name="MicroServo" eSuperTypes="#//ArduinoDigitalModule"/>
<eClassifiers xsi:type="ecore:EClass" name="InfraRedSensor" eSuperTypes="#//ArduinoDigitalModule"/> <eClassifiers xsi:type="ecore:EClass" name="InfraRedSensor" eSuperTypes="#//ArduinoDigitalModule"/>
<eClassifiers xsi:type="ecore:EClass" name="Fan" eSuperTypes="#//ArduinoDigitalModule"/>
<eClassifiers xsi:type="ecore:EClass" name="RotationSensor" eSuperTypes="#//ArduinoAnalogModule"/>
<eClassifiers xsi:type="ecore:EClass" name="AmbientLightSensor" eSuperTypes="#//ArduinoAnalogModule"/> <eClassifiers xsi:type="ecore:EClass" name="AmbientLightSensor" eSuperTypes="#//ArduinoAnalogModule"/>
<eClassifiers xsi:type="ecore:EClass" name="SoundSensor" eSuperTypes="#//ArduinoAnalogModule"/> <eClassifiers xsi:type="ecore:EClass" name="SoundSensor" eSuperTypes="#//ArduinoAnalogModule"/>
<eClassifiers xsi:type="ecore:EClass" name="Fan" eSuperTypes="#//ArduinoDigitalModule"/>
<eClassifiers xsi:type="ecore:EClass" name="MusicPlayer" eSuperTypes="#//ArduinoAnalogModule"/> <eClassifiers xsi:type="ecore:EClass" name="MusicPlayer" eSuperTypes="#//ArduinoAnalogModule"/>
<eClassifiers xsi:type="ecore:EClass" name="ArduinoModule" abstract="true" eSuperTypes="#//Module"/> <eClassifiers xsi:type="ecore:EClass" name="BluetoothTransceiver" eSuperTypes="#//ArduinoAnalogModule">
<eStructuralFeatures xsi:type="ecore:EReference" name="connectedTransceiver" upperBound="-1"
eType="#//BluetoothTransceiver"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="WaitFor" eSuperTypes="#//Utilities"> <eClassifiers xsi:type="ecore:EClass" name="WaitFor" eSuperTypes="#//Utilities">
<eStructuralFeatures xsi:type="ecore:EReference" name="pin" eType="#//Pin"/> <eStructuralFeatures xsi:type="ecore:EReference" name="pin" eType="#//Pin"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="mode" eType="#//ChangeType"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="mode" eType="#//ChangeType"/>
...@@ -189,10 +197,6 @@ ...@@ -189,10 +197,6 @@
<eStructuralFeatures xsi:type="ecore:EReference" name="analogPins" upperBound="-1" <eStructuralFeatures xsi:type="ecore:EReference" name="analogPins" upperBound="-1"
eType="#//AnalogPin" containment="true"/> eType="#//AnalogPin" containment="true"/>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ArduinoDigitalModule" abstract="true"
eSuperTypes="#//ArduinoModule"/>
<eClassifiers xsi:type="ecore:EClass" name="ArduinoAnalogModule" abstract="true"
eSuperTypes="#//ArduinoModule"/>
<eClassifiers xsi:type="ecore:EClass" name="BooleanVariableRef" eSuperTypes="#//VariableRef #//BooleanExpression"> <eClassifiers xsi:type="ecore:EClass" name="BooleanVariableRef" eSuperTypes="#//VariableRef #//BooleanExpression">
<eStructuralFeatures xsi:type="ecore:EReference" name="variable" lowerBound="1" <eStructuralFeatures xsi:type="ecore:EReference" name="variable" lowerBound="1"
eType="#//BooleanVariable"/> eType="#//BooleanVariable"/>
...@@ -204,10 +208,6 @@ ...@@ -204,10 +208,6 @@
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ArduinoCommunicationModule" abstract="true" <eClassifiers xsi:type="ecore:EClass" name="ArduinoCommunicationModule" abstract="true"
eSuperTypes="#//ArduinoDigitalModule"/> eSuperTypes="#//ArduinoDigitalModule"/>
<eClassifiers xsi:type="ecore:EClass" name="BluetoothTransceiver" eSuperTypes="#//ArduinoAnalogModule">
<eStructuralFeatures xsi:type="ecore:EReference" name="connectedTransceiver" upperBound="-1"
eType="#//BluetoothTransceiver"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="ChangeType"> <eClassifiers xsi:type="ecore:EEnum" name="ChangeType">
<eLiterals name="RISING"/> <eLiterals name="RISING"/>
<eLiterals name="FALLING" value="1"/> <eLiterals name="FALLING" value="1"/>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment