Initial commit.

This commit is contained in:
2018-12-21 17:53:31 +01:00
parent 59793babbc
commit e177e3d904
6295 changed files with 433543 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View File

@@ -0,0 +1 @@
/bin/

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>com.irtsaintexupery.fiacre.instance</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
</natures>
</projectDescription>

View File

@@ -0,0 +1,17 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: com.irtsaintexupery.fiacre.instance;singleton:=true
Bundle-Version: 0.1.0.qualifier
Bundle-ClassPath: .
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Export-Package: com.irtsaintexupery.fiacre.instance.fiacreinstance,
com.irtsaintexupery.fiacre.instance.fiacreinstance.impl,
com.irtsaintexupery.fiacre.instance.fiacreinstance.util
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.emf.ecore;visibility:=reexport,
fr.irit.fiacre.xtext;visibility:=reexport,
org.eclipse.emf.ecore.xmi;visibility:=reexport
Bundle-ActivationPolicy: lazy

View File

@@ -0,0 +1,20 @@
###############################################################################
# Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exup<75>ry).
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the LGPL 3.0
# which accompanies this distribution, and is available at
# https://www.gnu.org/licenses/lgpl-3.0-standalone.html
#
# Contributors:
# Faiez Zalila - initial API and implementation and/or initial documentation
###############################################################################
#
bin.includes = .,\
model/,\
META-INF/,\
plugin.xml,\
plugin.properties
jars.compile.order = .
source.. = src/
output.. = bin/

View File

@@ -0,0 +1,67 @@
<?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="fiacreinstance" nsURI="http://fiacreinstance/1.0" nsPrefix="fiacreinstance">
<eClassifiers xsi:type="ecore:EClass" name="InstanceModel">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="model" lowerBound="1" eType="ecore:EClass ../../fr.irit.fiacre.xtext/model/generated/Fiacre.ecore#//Model"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="instance" lowerBound="1"
upperBound="-1" eType="#//DeclarationInstance" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="statementBlocks" upperBound="-1"
eType="#//StatementBlock" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="StatementBlock" abstract="true">
<eStructuralFeatures xsi:type="ecore:EReference" name="instanceStatementBlocks"
lowerBound="1" upperBound="-1" eType="#//InstanceStatementBlock"/>
<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="ExecutedStatementBlock" eSuperTypes="#//StatementBlock"/>
<eClassifiers xsi:type="ecore:EClass" name="ExecutableStatementBlock" eSuperTypes="#//StatementBlock">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="date" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="FireableStatementBlock" eSuperTypes="#//ExecutableStatementBlock"/>
<eClassifiers xsi:type="ecore:EClass" name="EnabledStatementBlock" eSuperTypes="#//ExecutableStatementBlock"/>
<eClassifiers xsi:type="ecore:EClass" name="BlockInstance" abstract="true">
<eStructuralFeatures xsi:type="ecore:EReference" name="blockInstances" upperBound="-1"
eType="#//BlockInstance" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="CompositionInstance" eSuperTypes="#//BlockInstance">
<eStructuralFeatures xsi:type="ecore:EReference" name="composition" eType="ecore:EClass ../../fr.irit.fiacre.xtext/model/generated/Fiacre.ecore#//Composition"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="DeclarationInstance" abstract="true"
eSuperTypes="#//BlockInstance">
<eStructuralFeatures xsi:type="ecore:EReference" name="variableDeclarationInstances"
upperBound="-1" eType="#//VariableDeclarationInstance" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="instance" eType="ecore:EClass ../../fr.irit.fiacre.xtext/model/generated/Fiacre.ecore#//ComponentInstance"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="flatname" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ComponentDeclarationInstance" eSuperTypes="#//DeclarationInstance">
<eStructuralFeatures xsi:type="ecore:EReference" name="component" lowerBound="1"
eType="ecore:EClass ../../fr.irit.fiacre.xtext/model/generated/Fiacre.ecore#//ComponentDeclaration"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ProcessDeclarationInstance" eSuperTypes="#//DeclarationInstance">
<eStructuralFeatures xsi:type="ecore:EReference" name="currentState" eType="ecore:EClass ../../fr.irit.fiacre.xtext/model/generated/Fiacre.ecore#//StateDeclaration"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="process" lowerBound="1"
eType="ecore:EClass ../../fr.irit.fiacre.xtext/model/generated/Fiacre.ecore#//ProcessDeclaration"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="instanceStatementBlocks"
upperBound="-1" eType="#//InstanceStatementBlock" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="InstanceStatementBlock" abstract="true">
<eStructuralFeatures xsi:type="ecore:EReference" name="transitionSource" lowerBound="1"
eType="ecore:EClass ../../fr.irit.fiacre.xtext/model/generated/Fiacre.ecore#//TransitionSource"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="statements" upperBound="-1"
eType="ecore:EClass ../../fr.irit.fiacre.xtext/model/generated/Fiacre.ecore#//Statement"/>
<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="InstanceExecutedStatementBlock" eSuperTypes="#//InstanceStatementBlock"/>
<eClassifiers xsi:type="ecore:EClass" name="InstanceExecutableStatementBlock" abstract="true"
eSuperTypes="#//InstanceStatementBlock"/>
<eClassifiers xsi:type="ecore:EClass" name="InstanceFireableStatementBlock" eSuperTypes="#//InstanceExecutableStatementBlock"/>
<eClassifiers xsi:type="ecore:EClass" name="InstanceEnabledStatementBlock" eSuperTypes="#//InstanceExecutableStatementBlock"/>
<eClassifiers xsi:type="ecore:EClass" name="VariableDeclarationInstance">
<eStructuralFeatures xsi:type="ecore:EReference" name="variableDeclaration" lowerBound="1"
eType="ecore:EClass ../../fr.irit.fiacre.xtext/model/generated/Fiacre.ecore#//VariableDeclaration"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="currentValue" eType="ecore:EClass ../../fr.irit.fiacre.xtext/model/generated/Fiacre.ecore#//ValueExpression"
containment="true"/>
</eClassifiers>
</ecore:EPackage>

View File

@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8"?>
<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/com.irtsaintexupery.fiacre.instance/src" modelPluginID="com.irtsaintexupery.fiacre.instance"
modelName="FiacreInstance" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
importerID="org.eclipse.emf.importer.ecore" complianceLevel="8.0" copyrightFields="false"
usedGenPackages="../../fr.irit.fiacre.xtext/model/generated/Fiacre.genmodel#//fiacre"
operationReflection="true" importOrganizing="true">
<foreignModel>FiacreInstance.ecore</foreignModel>
<genPackages prefix="Fiacreinstance" basePackage="com.irtsaintexupery.fiacre.instance"
disposableProviderFactory="true" ecorePackage="FiacreInstance.ecore#/">
<genClasses ecoreClass="FiacreInstance.ecore#//InstanceModel">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute FiacreInstance.ecore#//InstanceModel/name"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference FiacreInstance.ecore#//InstanceModel/model"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FiacreInstance.ecore#//InstanceModel/instance"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FiacreInstance.ecore#//InstanceModel/statementBlocks"/>
</genClasses>
<genClasses image="false" ecoreClass="FiacreInstance.ecore#//StatementBlock">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference FiacreInstance.ecore#//StatementBlock/instanceStatementBlocks"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute FiacreInstance.ecore#//StatementBlock/name"/>
</genClasses>
<genClasses ecoreClass="FiacreInstance.ecore#//ExecutedStatementBlock"/>
<genClasses ecoreClass="FiacreInstance.ecore#//ExecutableStatementBlock">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute FiacreInstance.ecore#//ExecutableStatementBlock/date"/>
</genClasses>
<genClasses ecoreClass="FiacreInstance.ecore#//FireableStatementBlock"/>
<genClasses ecoreClass="FiacreInstance.ecore#//EnabledStatementBlock"/>
<genClasses image="false" ecoreClass="FiacreInstance.ecore#//BlockInstance">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FiacreInstance.ecore#//BlockInstance/blockInstances"/>
</genClasses>
<genClasses ecoreClass="FiacreInstance.ecore#//CompositionInstance">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference FiacreInstance.ecore#//CompositionInstance/composition"/>
</genClasses>
<genClasses image="false" ecoreClass="FiacreInstance.ecore#//DeclarationInstance">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FiacreInstance.ecore#//DeclarationInstance/variableDeclarationInstances"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute FiacreInstance.ecore#//DeclarationInstance/name"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference FiacreInstance.ecore#//DeclarationInstance/instance"/>
</genClasses>
<genClasses ecoreClass="FiacreInstance.ecore#//ComponentDeclarationInstance">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference FiacreInstance.ecore#//ComponentDeclarationInstance/component"/>
</genClasses>
<genClasses ecoreClass="FiacreInstance.ecore#//ProcessDeclarationInstance">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference FiacreInstance.ecore#//ProcessDeclarationInstance/currentState"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference FiacreInstance.ecore#//ProcessDeclarationInstance/process"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FiacreInstance.ecore#//ProcessDeclarationInstance/instanceStatementBlocks"/>
</genClasses>
<genClasses image="false" ecoreClass="FiacreInstance.ecore#//InstanceStatementBlock">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference FiacreInstance.ecore#//InstanceStatementBlock/transitionSource"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference FiacreInstance.ecore#//InstanceStatementBlock/statements"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute FiacreInstance.ecore#//InstanceStatementBlock/name"/>
</genClasses>
<genClasses ecoreClass="FiacreInstance.ecore#//InstanceExecutedStatementBlock"/>
<genClasses image="false" ecoreClass="FiacreInstance.ecore#//InstanceExecutableStatementBlock"/>
<genClasses ecoreClass="FiacreInstance.ecore#//InstanceFireableStatementBlock"/>
<genClasses ecoreClass="FiacreInstance.ecore#//InstanceEnabledStatementBlock"/>
<genClasses ecoreClass="FiacreInstance.ecore#//VariableDeclarationInstance">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference FiacreInstance.ecore#//VariableDeclarationInstance/variableDeclaration"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FiacreInstance.ecore#//VariableDeclarationInstance/currentValue"/>
</genClasses>
</genPackages>
</genmodel:GenModel>

View File

@@ -0,0 +1,14 @@
###############################################################################
# Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exup<75>ry).
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the LGPL 3.0
# which accompanies this distribution, and is available at
# https://www.gnu.org/licenses/lgpl-3.0-standalone.html
#
# Contributors:
# Faiez Zalila - initial API and implementation and/or initial documentation
###############################################################################
#
pluginName = FiacreInstance Model
providerName = www.example.org

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<!--
Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
All rights reserved. This program and the accompanying materials
are made available under the terms of the LGPL 3.0
which accompanies this distribution, and is available at
https://www.gnu.org/licenses/lgpl-3.0-standalone.html
Contributors:
Faiez Zalila - initial API and implementation and/or initial documentation
-->
<!--
-->
<plugin>
<extension point="org.eclipse.emf.ecore.generated_package">
<!-- @generated FiacreInstance -->
<package
uri="http://fiacreinstance/1.0"
class="com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage"
genModel="model/FiacreInstance.genmodel"/>
</extension>
</plugin>

View File

@@ -0,0 +1,52 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Block Instance</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.BlockInstance#getBlockInstances <em>Block Instances</em>}</li>
* </ul>
*
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getBlockInstance()
* @model abstract="true"
* @generated
*/
public interface BlockInstance extends EObject {
/**
* Returns the value of the '<em><b>Block Instances</b></em>' containment reference list.
* The list contents are of type {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.BlockInstance}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Block Instances</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Block Instances</em>' containment reference list.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getBlockInstance_BlockInstances()
* @model containment="true"
* @generated
*/
EList<BlockInstance> getBlockInstances();
} // BlockInstance

View File

@@ -0,0 +1,60 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance;
import fr.irit.fiacre.xtext.fiacre.ComponentDeclaration;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Component Declaration Instance</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.ComponentDeclarationInstance#getComponent <em>Component</em>}</li>
* </ul>
*
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getComponentDeclarationInstance()
* @model
* @generated
*/
public interface ComponentDeclarationInstance extends DeclarationInstance {
/**
* Returns the value of the '<em><b>Component</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Component</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Component</em>' reference.
* @see #setComponent(ComponentDeclaration)
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getComponentDeclarationInstance_Component()
* @model required="true"
* @generated
*/
ComponentDeclaration getComponent();
/**
* Sets the value of the '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.ComponentDeclarationInstance#getComponent <em>Component</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Component</em>' reference.
* @see #getComponent()
* @generated
*/
void setComponent(ComponentDeclaration value);
} // ComponentDeclarationInstance

View File

@@ -0,0 +1,60 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance;
import fr.irit.fiacre.xtext.fiacre.Composition;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Composition Instance</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.CompositionInstance#getComposition <em>Composition</em>}</li>
* </ul>
*
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getCompositionInstance()
* @model
* @generated
*/
public interface CompositionInstance extends BlockInstance {
/**
* Returns the value of the '<em><b>Composition</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Composition</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Composition</em>' reference.
* @see #setComposition(Composition)
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getCompositionInstance_Composition()
* @model
* @generated
*/
Composition getComposition();
/**
* Sets the value of the '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.CompositionInstance#getComposition <em>Composition</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Composition</em>' reference.
* @see #getComposition()
* @generated
*/
void setComposition(Composition value);
} // CompositionInstance

View File

@@ -0,0 +1,133 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance;
import fr.irit.fiacre.xtext.fiacre.ComponentInstance;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Declaration Instance</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.DeclarationInstance#getVariableDeclarationInstances <em>Variable Declaration Instances</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.DeclarationInstance#getName <em>Name</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.DeclarationInstance#getInstance <em>Instance</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.DeclarationInstance#getFlatname <em>Flatname</em>}</li>
* </ul>
*
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getDeclarationInstance()
* @model abstract="true"
* @generated
*/
public interface DeclarationInstance extends BlockInstance {
/**
* Returns the value of the '<em><b>Variable Declaration Instances</b></em>' containment reference list.
* The list contents are of type {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.VariableDeclarationInstance}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Variable Declaration Instances</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Variable Declaration Instances</em>' containment reference list.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getDeclarationInstance_VariableDeclarationInstances()
* @model containment="true"
* @generated
*/
EList<VariableDeclarationInstance> getVariableDeclarationInstances();
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Name</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getDeclarationInstance_Name()
* @model required="true"
* @generated
*/
String getName();
/**
* Sets the value of the '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.DeclarationInstance#getName <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Name</em>' attribute.
* @see #getName()
* @generated
*/
void setName(String value);
/**
* Returns the value of the '<em><b>Instance</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Instance</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Instance</em>' reference.
* @see #setInstance(ComponentInstance)
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getDeclarationInstance_Instance()
* @model
* @generated
*/
ComponentInstance getInstance();
/**
* Sets the value of the '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.DeclarationInstance#getInstance <em>Instance</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Instance</em>' reference.
* @see #getInstance()
* @generated
*/
void setInstance(ComponentInstance value);
/**
* Returns the value of the '<em><b>Flatname</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Flatname</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Flatname</em>' attribute.
* @see #setFlatname(String)
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getDeclarationInstance_Flatname()
* @model
* @generated
*/
String getFlatname();
/**
* Sets the value of the '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.DeclarationInstance#getFlatname <em>Flatname</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Flatname</em>' attribute.
* @see #getFlatname()
* @generated
*/
void setFlatname(String value);
} // DeclarationInstance

View File

@@ -0,0 +1,27 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Enabled Statement Block</b></em>'.
* <!-- end-user-doc -->
*
*
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getEnabledStatementBlock()
* @model
* @generated
*/
public interface EnabledStatementBlock extends ExecutableStatementBlock {
} // EnabledStatementBlock

View File

@@ -0,0 +1,59 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Executable Statement Block</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.ExecutableStatementBlock#getDate <em>Date</em>}</li>
* </ul>
*
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getExecutableStatementBlock()
* @model
* @generated
*/
public interface ExecutableStatementBlock extends StatementBlock {
/**
* Returns the value of the '<em><b>Date</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Date</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Date</em>' attribute.
* @see #setDate(String)
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getExecutableStatementBlock_Date()
* @model
* @generated
*/
String getDate();
/**
* Sets the value of the '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.ExecutableStatementBlock#getDate <em>Date</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Date</em>' attribute.
* @see #getDate()
* @generated
*/
void setDate(String value);
} // ExecutableStatementBlock

View File

@@ -0,0 +1,27 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Executed Statement Block</b></em>'.
* <!-- end-user-doc -->
*
*
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getExecutedStatementBlock()
* @model
* @generated
*/
public interface ExecutedStatementBlock extends StatementBlock {
} // ExecutedStatementBlock

View File

@@ -0,0 +1,151 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance;
import org.eclipse.emf.ecore.EFactory;
/**
* <!-- begin-user-doc -->
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage
* @generated
*/
public interface FiacreinstanceFactory extends EFactory {
/**
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
FiacreinstanceFactory eINSTANCE = com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.FiacreinstanceFactoryImpl.init();
/**
* Returns a new object of class '<em>Instance Model</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Instance Model</em>'.
* @generated
*/
InstanceModel createInstanceModel();
/**
* Returns a new object of class '<em>Executed Statement Block</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Executed Statement Block</em>'.
* @generated
*/
ExecutedStatementBlock createExecutedStatementBlock();
/**
* Returns a new object of class '<em>Executable Statement Block</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Executable Statement Block</em>'.
* @generated
*/
ExecutableStatementBlock createExecutableStatementBlock();
/**
* Returns a new object of class '<em>Fireable Statement Block</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Fireable Statement Block</em>'.
* @generated
*/
FireableStatementBlock createFireableStatementBlock();
/**
* Returns a new object of class '<em>Enabled Statement Block</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Enabled Statement Block</em>'.
* @generated
*/
EnabledStatementBlock createEnabledStatementBlock();
/**
* Returns a new object of class '<em>Composition Instance</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Composition Instance</em>'.
* @generated
*/
CompositionInstance createCompositionInstance();
/**
* Returns a new object of class '<em>Component Declaration Instance</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Component Declaration Instance</em>'.
* @generated
*/
ComponentDeclarationInstance createComponentDeclarationInstance();
/**
* Returns a new object of class '<em>Process Declaration Instance</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Process Declaration Instance</em>'.
* @generated
*/
ProcessDeclarationInstance createProcessDeclarationInstance();
/**
* Returns a new object of class '<em>Instance Executed Statement Block</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Instance Executed Statement Block</em>'.
* @generated
*/
InstanceExecutedStatementBlock createInstanceExecutedStatementBlock();
/**
* Returns a new object of class '<em>Instance Fireable Statement Block</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Instance Fireable Statement Block</em>'.
* @generated
*/
InstanceFireableStatementBlock createInstanceFireableStatementBlock();
/**
* Returns a new object of class '<em>Instance Enabled Statement Block</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Instance Enabled Statement Block</em>'.
* @generated
*/
InstanceEnabledStatementBlock createInstanceEnabledStatementBlock();
/**
* Returns a new object of class '<em>Variable Declaration Instance</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Variable Declaration Instance</em>'.
* @generated
*/
VariableDeclarationInstance createVariableDeclarationInstance();
/**
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the package supported by this factory.
* @generated
*/
FiacreinstancePackage getFiacreinstancePackage();
} //FiacreinstanceFactory

View File

@@ -0,0 +1,27 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Fireable Statement Block</b></em>'.
* <!-- end-user-doc -->
*
*
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getFireableStatementBlock()
* @model
* @generated
*/
public interface FireableStatementBlock extends ExecutableStatementBlock {
} // FireableStatementBlock

View File

@@ -0,0 +1,27 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Instance Enabled Statement Block</b></em>'.
* <!-- end-user-doc -->
*
*
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getInstanceEnabledStatementBlock()
* @model
* @generated
*/
public interface InstanceEnabledStatementBlock extends InstanceExecutableStatementBlock {
} // InstanceEnabledStatementBlock

View File

@@ -0,0 +1,27 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Instance Executable Statement Block</b></em>'.
* <!-- end-user-doc -->
*
*
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getInstanceExecutableStatementBlock()
* @model abstract="true"
* @generated
*/
public interface InstanceExecutableStatementBlock extends InstanceStatementBlock {
} // InstanceExecutableStatementBlock

View File

@@ -0,0 +1,27 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Instance Executed Statement Block</b></em>'.
* <!-- end-user-doc -->
*
*
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getInstanceExecutedStatementBlock()
* @model
* @generated
*/
public interface InstanceExecutedStatementBlock extends InstanceStatementBlock {
} // InstanceExecutedStatementBlock

View File

@@ -0,0 +1,27 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Instance Fireable Statement Block</b></em>'.
* <!-- end-user-doc -->
*
*
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getInstanceFireableStatementBlock()
* @model
* @generated
*/
public interface InstanceFireableStatementBlock extends InstanceExecutableStatementBlock {
} // InstanceFireableStatementBlock

View File

@@ -0,0 +1,125 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance;
import fr.irit.fiacre.xtext.fiacre.Model;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Instance Model</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceModel#getName <em>Name</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceModel#getModel <em>Model</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceModel#getInstance <em>Instance</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceModel#getStatementBlocks <em>Statement Blocks</em>}</li>
* </ul>
*
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getInstanceModel()
* @model
* @generated
*/
public interface InstanceModel extends EObject {
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Name</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getInstanceModel_Name()
* @model
* @generated
*/
String getName();
/**
* Sets the value of the '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceModel#getName <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Name</em>' attribute.
* @see #getName()
* @generated
*/
void setName(String value);
/**
* Returns the value of the '<em><b>Model</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Model</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Model</em>' reference.
* @see #setModel(Model)
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getInstanceModel_Model()
* @model required="true"
* @generated
*/
Model getModel();
/**
* Sets the value of the '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceModel#getModel <em>Model</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Model</em>' reference.
* @see #getModel()
* @generated
*/
void setModel(Model value);
/**
* Returns the value of the '<em><b>Instance</b></em>' containment reference list.
* The list contents are of type {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.DeclarationInstance}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Instance</em>' containment reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Instance</em>' containment reference list.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getInstanceModel_Instance()
* @model containment="true" required="true"
* @generated
*/
EList<DeclarationInstance> getInstance();
/**
* Returns the value of the '<em><b>Statement Blocks</b></em>' containment reference list.
* The list contents are of type {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.StatementBlock}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Statement Blocks</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Statement Blocks</em>' containment reference list.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getInstanceModel_StatementBlocks()
* @model containment="true"
* @generated
*/
EList<StatementBlock> getStatementBlocks();
} // InstanceModel

View File

@@ -0,0 +1,109 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance;
import fr.irit.fiacre.xtext.fiacre.Statement;
import fr.irit.fiacre.xtext.fiacre.TransitionSource;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Instance Statement Block</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceStatementBlock#getTransitionSource <em>Transition Source</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceStatementBlock#getStatements <em>Statements</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceStatementBlock#getName <em>Name</em>}</li>
* </ul>
*
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getInstanceStatementBlock()
* @model abstract="true"
* @generated
*/
public interface InstanceStatementBlock extends EObject {
/**
* Returns the value of the '<em><b>Transition Source</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Transition Source</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Transition Source</em>' reference.
* @see #setTransitionSource(TransitionSource)
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getInstanceStatementBlock_TransitionSource()
* @model required="true"
* @generated
*/
TransitionSource getTransitionSource();
/**
* Sets the value of the '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceStatementBlock#getTransitionSource <em>Transition Source</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Transition Source</em>' reference.
* @see #getTransitionSource()
* @generated
*/
void setTransitionSource(TransitionSource value);
/**
* Returns the value of the '<em><b>Statements</b></em>' reference list.
* The list contents are of type {@link fr.irit.fiacre.xtext.fiacre.Statement}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Statements</em>' reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Statements</em>' reference list.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getInstanceStatementBlock_Statements()
* @model
* @generated
*/
EList<Statement> getStatements();
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Name</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getInstanceStatementBlock_Name()
* @model
* @generated
*/
String getName();
/**
* Sets the value of the '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceStatementBlock#getName <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Name</em>' attribute.
* @see #getName()
* @generated
*/
void setName(String value);
} // InstanceStatementBlock

View File

@@ -0,0 +1,107 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance;
import fr.irit.fiacre.xtext.fiacre.ProcessDeclaration;
import fr.irit.fiacre.xtext.fiacre.StateDeclaration;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Process Declaration Instance</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.ProcessDeclarationInstance#getCurrentState <em>Current State</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.ProcessDeclarationInstance#getProcess <em>Process</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.ProcessDeclarationInstance#getInstanceStatementBlocks <em>Instance Statement Blocks</em>}</li>
* </ul>
*
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getProcessDeclarationInstance()
* @model
* @generated
*/
public interface ProcessDeclarationInstance extends DeclarationInstance {
/**
* Returns the value of the '<em><b>Current State</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Current State</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Current State</em>' reference.
* @see #setCurrentState(StateDeclaration)
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getProcessDeclarationInstance_CurrentState()
* @model
* @generated
*/
StateDeclaration getCurrentState();
/**
* Sets the value of the '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.ProcessDeclarationInstance#getCurrentState <em>Current State</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Current State</em>' reference.
* @see #getCurrentState()
* @generated
*/
void setCurrentState(StateDeclaration value);
/**
* Returns the value of the '<em><b>Process</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Process</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Process</em>' reference.
* @see #setProcess(ProcessDeclaration)
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getProcessDeclarationInstance_Process()
* @model required="true"
* @generated
*/
ProcessDeclaration getProcess();
/**
* Sets the value of the '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.ProcessDeclarationInstance#getProcess <em>Process</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Process</em>' reference.
* @see #getProcess()
* @generated
*/
void setProcess(ProcessDeclaration value);
/**
* Returns the value of the '<em><b>Instance Statement Blocks</b></em>' containment reference list.
* The list contents are of type {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceStatementBlock}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Instance Statement Blocks</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Instance Statement Blocks</em>' containment reference list.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getProcessDeclarationInstance_InstanceStatementBlocks()
* @model containment="true"
* @generated
*/
EList<InstanceStatementBlock> getInstanceStatementBlocks();
} // ProcessDeclarationInstance

View File

@@ -0,0 +1,79 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Statement Block</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.StatementBlock#getInstanceStatementBlocks <em>Instance Statement Blocks</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.StatementBlock#getName <em>Name</em>}</li>
* </ul>
*
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getStatementBlock()
* @model abstract="true"
* @generated
*/
public interface StatementBlock extends EObject {
/**
* Returns the value of the '<em><b>Instance Statement Blocks</b></em>' reference list.
* The list contents are of type {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceStatementBlock}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Instance Statement Blocks</em>' reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Instance Statement Blocks</em>' reference list.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getStatementBlock_InstanceStatementBlocks()
* @model required="true"
* @generated
*/
EList<InstanceStatementBlock> getInstanceStatementBlocks();
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Name</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getStatementBlock_Name()
* @model
* @generated
*/
String getName();
/**
* Sets the value of the '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.StatementBlock#getName <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Name</em>' attribute.
* @see #getName()
* @generated
*/
void setName(String value);
} // StatementBlock

View File

@@ -0,0 +1,90 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance;
import fr.irit.fiacre.xtext.fiacre.ValueExpression;
import fr.irit.fiacre.xtext.fiacre.VariableDeclaration;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Variable Declaration Instance</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.VariableDeclarationInstance#getVariableDeclaration <em>Variable Declaration</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.VariableDeclarationInstance#getCurrentValue <em>Current Value</em>}</li>
* </ul>
*
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getVariableDeclarationInstance()
* @model
* @generated
*/
public interface VariableDeclarationInstance extends EObject {
/**
* Returns the value of the '<em><b>Variable Declaration</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Variable Declaration</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Variable Declaration</em>' reference.
* @see #setVariableDeclaration(VariableDeclaration)
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getVariableDeclarationInstance_VariableDeclaration()
* @model required="true"
* @generated
*/
VariableDeclaration getVariableDeclaration();
/**
* Sets the value of the '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.VariableDeclarationInstance#getVariableDeclaration <em>Variable Declaration</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Variable Declaration</em>' reference.
* @see #getVariableDeclaration()
* @generated
*/
void setVariableDeclaration(VariableDeclaration value);
/**
* Returns the value of the '<em><b>Current Value</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Current Value</em>' containment reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Current Value</em>' containment reference.
* @see #setCurrentValue(ValueExpression)
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#getVariableDeclarationInstance_CurrentValue()
* @model containment="true"
* @generated
*/
ValueExpression getCurrentValue();
/**
* Sets the value of the '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.VariableDeclarationInstance#getCurrentValue <em>Current Value</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Current Value</em>' containment reference.
* @see #getCurrentValue()
* @generated
*/
void setCurrentValue(ValueExpression value);
} // VariableDeclarationInstance

View File

@@ -0,0 +1,161 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.BlockInstance;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Block Instance</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.BlockInstanceImpl#getBlockInstances <em>Block Instances</em>}</li>
* </ul>
*
* @generated
*/
public abstract class BlockInstanceImpl extends MinimalEObjectImpl.Container implements BlockInstance {
/**
* The cached value of the '{@link #getBlockInstances() <em>Block Instances</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getBlockInstances()
* @generated
* @ordered
*/
protected EList<BlockInstance> blockInstances;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected BlockInstanceImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FiacreinstancePackage.Literals.BLOCK_INSTANCE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<BlockInstance> getBlockInstances() {
if (blockInstances == null) {
blockInstances = new EObjectContainmentEList<BlockInstance>(BlockInstance.class, this, FiacreinstancePackage.BLOCK_INSTANCE__BLOCK_INSTANCES);
}
return blockInstances;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case FiacreinstancePackage.BLOCK_INSTANCE__BLOCK_INSTANCES:
return ((InternalEList<?>)getBlockInstances()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case FiacreinstancePackage.BLOCK_INSTANCE__BLOCK_INSTANCES:
return getBlockInstances();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case FiacreinstancePackage.BLOCK_INSTANCE__BLOCK_INSTANCES:
getBlockInstances().clear();
getBlockInstances().addAll((Collection<? extends BlockInstance>)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FiacreinstancePackage.BLOCK_INSTANCE__BLOCK_INSTANCES:
getBlockInstances().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FiacreinstancePackage.BLOCK_INSTANCE__BLOCK_INSTANCES:
return blockInstances != null && !blockInstances.isEmpty();
}
return super.eIsSet(featureID);
}
} //BlockInstanceImpl

View File

@@ -0,0 +1,167 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.impl;
import fr.irit.fiacre.xtext.fiacre.ComponentDeclaration;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.ComponentDeclarationInstance;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Component Declaration Instance</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.ComponentDeclarationInstanceImpl#getComponent <em>Component</em>}</li>
* </ul>
*
* @generated
*/
public class ComponentDeclarationInstanceImpl extends DeclarationInstanceImpl implements ComponentDeclarationInstance {
/**
* The cached value of the '{@link #getComponent() <em>Component</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getComponent()
* @generated
* @ordered
*/
protected ComponentDeclaration component;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ComponentDeclarationInstanceImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FiacreinstancePackage.Literals.COMPONENT_DECLARATION_INSTANCE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ComponentDeclaration getComponent() {
if (component != null && component.eIsProxy()) {
InternalEObject oldComponent = (InternalEObject)component;
component = (ComponentDeclaration)eResolveProxy(oldComponent);
if (component != oldComponent) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FiacreinstancePackage.COMPONENT_DECLARATION_INSTANCE__COMPONENT, oldComponent, component));
}
}
return component;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ComponentDeclaration basicGetComponent() {
return component;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setComponent(ComponentDeclaration newComponent) {
ComponentDeclaration oldComponent = component;
component = newComponent;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FiacreinstancePackage.COMPONENT_DECLARATION_INSTANCE__COMPONENT, oldComponent, component));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case FiacreinstancePackage.COMPONENT_DECLARATION_INSTANCE__COMPONENT:
if (resolve) return getComponent();
return basicGetComponent();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case FiacreinstancePackage.COMPONENT_DECLARATION_INSTANCE__COMPONENT:
setComponent((ComponentDeclaration)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FiacreinstancePackage.COMPONENT_DECLARATION_INSTANCE__COMPONENT:
setComponent((ComponentDeclaration)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FiacreinstancePackage.COMPONENT_DECLARATION_INSTANCE__COMPONENT:
return component != null;
}
return super.eIsSet(featureID);
}
} //ComponentDeclarationInstanceImpl

View File

@@ -0,0 +1,167 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.impl;
import fr.irit.fiacre.xtext.fiacre.Composition;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.CompositionInstance;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Composition Instance</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.CompositionInstanceImpl#getComposition <em>Composition</em>}</li>
* </ul>
*
* @generated
*/
public class CompositionInstanceImpl extends BlockInstanceImpl implements CompositionInstance {
/**
* The cached value of the '{@link #getComposition() <em>Composition</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getComposition()
* @generated
* @ordered
*/
protected Composition composition;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected CompositionInstanceImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FiacreinstancePackage.Literals.COMPOSITION_INSTANCE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Composition getComposition() {
if (composition != null && composition.eIsProxy()) {
InternalEObject oldComposition = (InternalEObject)composition;
composition = (Composition)eResolveProxy(oldComposition);
if (composition != oldComposition) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FiacreinstancePackage.COMPOSITION_INSTANCE__COMPOSITION, oldComposition, composition));
}
}
return composition;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Composition basicGetComposition() {
return composition;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setComposition(Composition newComposition) {
Composition oldComposition = composition;
composition = newComposition;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FiacreinstancePackage.COMPOSITION_INSTANCE__COMPOSITION, oldComposition, composition));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case FiacreinstancePackage.COMPOSITION_INSTANCE__COMPOSITION:
if (resolve) return getComposition();
return basicGetComposition();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case FiacreinstancePackage.COMPOSITION_INSTANCE__COMPOSITION:
setComposition((Composition)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FiacreinstancePackage.COMPOSITION_INSTANCE__COMPOSITION:
setComposition((Composition)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FiacreinstancePackage.COMPOSITION_INSTANCE__COMPOSITION:
return composition != null;
}
return super.eIsSet(featureID);
}
} //CompositionInstanceImpl

View File

@@ -0,0 +1,347 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.impl;
import fr.irit.fiacre.xtext.fiacre.ComponentInstance;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.DeclarationInstance;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.VariableDeclarationInstance;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Declaration Instance</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.DeclarationInstanceImpl#getVariableDeclarationInstances <em>Variable Declaration Instances</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.DeclarationInstanceImpl#getName <em>Name</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.DeclarationInstanceImpl#getInstance <em>Instance</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.DeclarationInstanceImpl#getFlatname <em>Flatname</em>}</li>
* </ul>
*
* @generated
*/
public abstract class DeclarationInstanceImpl extends BlockInstanceImpl implements DeclarationInstance {
/**
* The cached value of the '{@link #getVariableDeclarationInstances() <em>Variable Declaration Instances</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getVariableDeclarationInstances()
* @generated
* @ordered
*/
protected EList<VariableDeclarationInstance> variableDeclarationInstances;
/**
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected static final String NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected String name = NAME_EDEFAULT;
/**
* The cached value of the '{@link #getInstance() <em>Instance</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInstance()
* @generated
* @ordered
*/
protected ComponentInstance instance;
/**
* The default value of the '{@link #getFlatname() <em>Flatname</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getFlatname()
* @generated
* @ordered
*/
protected static final String FLATNAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getFlatname() <em>Flatname</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getFlatname()
* @generated
* @ordered
*/
protected String flatname = FLATNAME_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected DeclarationInstanceImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FiacreinstancePackage.Literals.DECLARATION_INSTANCE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<VariableDeclarationInstance> getVariableDeclarationInstances() {
if (variableDeclarationInstances == null) {
variableDeclarationInstances = new EObjectContainmentEList<VariableDeclarationInstance>(VariableDeclarationInstance.class, this, FiacreinstancePackage.DECLARATION_INSTANCE__VARIABLE_DECLARATION_INSTANCES);
}
return variableDeclarationInstances;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FiacreinstancePackage.DECLARATION_INSTANCE__NAME, oldName, name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ComponentInstance getInstance() {
if (instance != null && instance.eIsProxy()) {
InternalEObject oldInstance = (InternalEObject)instance;
instance = (ComponentInstance)eResolveProxy(oldInstance);
if (instance != oldInstance) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FiacreinstancePackage.DECLARATION_INSTANCE__INSTANCE, oldInstance, instance));
}
}
return instance;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ComponentInstance basicGetInstance() {
return instance;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setInstance(ComponentInstance newInstance) {
ComponentInstance oldInstance = instance;
instance = newInstance;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FiacreinstancePackage.DECLARATION_INSTANCE__INSTANCE, oldInstance, instance));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getFlatname() {
return flatname;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setFlatname(String newFlatname) {
String oldFlatname = flatname;
flatname = newFlatname;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FiacreinstancePackage.DECLARATION_INSTANCE__FLATNAME, oldFlatname, flatname));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case FiacreinstancePackage.DECLARATION_INSTANCE__VARIABLE_DECLARATION_INSTANCES:
return ((InternalEList<?>)getVariableDeclarationInstances()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case FiacreinstancePackage.DECLARATION_INSTANCE__VARIABLE_DECLARATION_INSTANCES:
return getVariableDeclarationInstances();
case FiacreinstancePackage.DECLARATION_INSTANCE__NAME:
return getName();
case FiacreinstancePackage.DECLARATION_INSTANCE__INSTANCE:
if (resolve) return getInstance();
return basicGetInstance();
case FiacreinstancePackage.DECLARATION_INSTANCE__FLATNAME:
return getFlatname();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case FiacreinstancePackage.DECLARATION_INSTANCE__VARIABLE_DECLARATION_INSTANCES:
getVariableDeclarationInstances().clear();
getVariableDeclarationInstances().addAll((Collection<? extends VariableDeclarationInstance>)newValue);
return;
case FiacreinstancePackage.DECLARATION_INSTANCE__NAME:
setName((String)newValue);
return;
case FiacreinstancePackage.DECLARATION_INSTANCE__INSTANCE:
setInstance((ComponentInstance)newValue);
return;
case FiacreinstancePackage.DECLARATION_INSTANCE__FLATNAME:
setFlatname((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FiacreinstancePackage.DECLARATION_INSTANCE__VARIABLE_DECLARATION_INSTANCES:
getVariableDeclarationInstances().clear();
return;
case FiacreinstancePackage.DECLARATION_INSTANCE__NAME:
setName(NAME_EDEFAULT);
return;
case FiacreinstancePackage.DECLARATION_INSTANCE__INSTANCE:
setInstance((ComponentInstance)null);
return;
case FiacreinstancePackage.DECLARATION_INSTANCE__FLATNAME:
setFlatname(FLATNAME_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FiacreinstancePackage.DECLARATION_INSTANCE__VARIABLE_DECLARATION_INSTANCES:
return variableDeclarationInstances != null && !variableDeclarationInstances.isEmpty();
case FiacreinstancePackage.DECLARATION_INSTANCE__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case FiacreinstancePackage.DECLARATION_INSTANCE__INSTANCE:
return instance != null;
case FiacreinstancePackage.DECLARATION_INSTANCE__FLATNAME:
return FLATNAME_EDEFAULT == null ? flatname != null : !FLATNAME_EDEFAULT.equals(flatname);
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (name: ");
result.append(name);
result.append(", flatname: ");
result.append(flatname);
result.append(')');
return result.toString();
}
} //DeclarationInstanceImpl

View File

@@ -0,0 +1,47 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.impl;
import org.eclipse.emf.ecore.EClass;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.EnabledStatementBlock;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Enabled Statement Block</b></em>'.
* <!-- end-user-doc -->
*
* @generated
*/
public class EnabledStatementBlockImpl extends ExecutableStatementBlockImpl implements EnabledStatementBlock {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected EnabledStatementBlockImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FiacreinstancePackage.Literals.ENABLED_STATEMENT_BLOCK;
}
} //EnabledStatementBlockImpl

View File

@@ -0,0 +1,172 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.ExecutableStatementBlock;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Executable Statement Block</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.ExecutableStatementBlockImpl#getDate <em>Date</em>}</li>
* </ul>
*
* @generated
*/
public class ExecutableStatementBlockImpl extends StatementBlockImpl implements ExecutableStatementBlock {
/**
* The default value of the '{@link #getDate() <em>Date</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDate()
* @generated
* @ordered
*/
protected static final String DATE_EDEFAULT = null;
/**
* The cached value of the '{@link #getDate() <em>Date</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDate()
* @generated
* @ordered
*/
protected String date = DATE_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ExecutableStatementBlockImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FiacreinstancePackage.Literals.EXECUTABLE_STATEMENT_BLOCK;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getDate() {
return date;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDate(String newDate) {
String oldDate = date;
date = newDate;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FiacreinstancePackage.EXECUTABLE_STATEMENT_BLOCK__DATE, oldDate, date));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case FiacreinstancePackage.EXECUTABLE_STATEMENT_BLOCK__DATE:
return getDate();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case FiacreinstancePackage.EXECUTABLE_STATEMENT_BLOCK__DATE:
setDate((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FiacreinstancePackage.EXECUTABLE_STATEMENT_BLOCK__DATE:
setDate(DATE_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FiacreinstancePackage.EXECUTABLE_STATEMENT_BLOCK__DATE:
return DATE_EDEFAULT == null ? date != null : !DATE_EDEFAULT.equals(date);
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (date: ");
result.append(date);
result.append(')');
return result.toString();
}
} //ExecutableStatementBlockImpl

View File

@@ -0,0 +1,47 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.impl;
import org.eclipse.emf.ecore.EClass;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.ExecutedStatementBlock;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Executed Statement Block</b></em>'.
* <!-- end-user-doc -->
*
* @generated
*/
public class ExecutedStatementBlockImpl extends StatementBlockImpl implements ExecutedStatementBlock {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ExecutedStatementBlockImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FiacreinstancePackage.Literals.EXECUTED_STATEMENT_BLOCK;
}
} //ExecutedStatementBlockImpl

View File

@@ -0,0 +1,226 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.*;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
* @generated
*/
public class FiacreinstanceFactoryImpl extends EFactoryImpl implements FiacreinstanceFactory {
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static FiacreinstanceFactory init() {
try {
FiacreinstanceFactory theFiacreinstanceFactory = (FiacreinstanceFactory)EPackage.Registry.INSTANCE.getEFactory(FiacreinstancePackage.eNS_URI);
if (theFiacreinstanceFactory != null) {
return theFiacreinstanceFactory;
}
}
catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new FiacreinstanceFactoryImpl();
}
/**
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FiacreinstanceFactoryImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case FiacreinstancePackage.INSTANCE_MODEL: return createInstanceModel();
case FiacreinstancePackage.EXECUTED_STATEMENT_BLOCK: return createExecutedStatementBlock();
case FiacreinstancePackage.EXECUTABLE_STATEMENT_BLOCK: return createExecutableStatementBlock();
case FiacreinstancePackage.FIREABLE_STATEMENT_BLOCK: return createFireableStatementBlock();
case FiacreinstancePackage.ENABLED_STATEMENT_BLOCK: return createEnabledStatementBlock();
case FiacreinstancePackage.COMPOSITION_INSTANCE: return createCompositionInstance();
case FiacreinstancePackage.COMPONENT_DECLARATION_INSTANCE: return createComponentDeclarationInstance();
case FiacreinstancePackage.PROCESS_DECLARATION_INSTANCE: return createProcessDeclarationInstance();
case FiacreinstancePackage.INSTANCE_EXECUTED_STATEMENT_BLOCK: return createInstanceExecutedStatementBlock();
case FiacreinstancePackage.INSTANCE_FIREABLE_STATEMENT_BLOCK: return createInstanceFireableStatementBlock();
case FiacreinstancePackage.INSTANCE_ENABLED_STATEMENT_BLOCK: return createInstanceEnabledStatementBlock();
case FiacreinstancePackage.VARIABLE_DECLARATION_INSTANCE: return createVariableDeclarationInstance();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public InstanceModel createInstanceModel() {
InstanceModelImpl instanceModel = new InstanceModelImpl();
return instanceModel;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ExecutedStatementBlock createExecutedStatementBlock() {
ExecutedStatementBlockImpl executedStatementBlock = new ExecutedStatementBlockImpl();
return executedStatementBlock;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ExecutableStatementBlock createExecutableStatementBlock() {
ExecutableStatementBlockImpl executableStatementBlock = new ExecutableStatementBlockImpl();
return executableStatementBlock;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FireableStatementBlock createFireableStatementBlock() {
FireableStatementBlockImpl fireableStatementBlock = new FireableStatementBlockImpl();
return fireableStatementBlock;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EnabledStatementBlock createEnabledStatementBlock() {
EnabledStatementBlockImpl enabledStatementBlock = new EnabledStatementBlockImpl();
return enabledStatementBlock;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public CompositionInstance createCompositionInstance() {
CompositionInstanceImpl compositionInstance = new CompositionInstanceImpl();
return compositionInstance;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ComponentDeclarationInstance createComponentDeclarationInstance() {
ComponentDeclarationInstanceImpl componentDeclarationInstance = new ComponentDeclarationInstanceImpl();
return componentDeclarationInstance;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ProcessDeclarationInstance createProcessDeclarationInstance() {
ProcessDeclarationInstanceImpl processDeclarationInstance = new ProcessDeclarationInstanceImpl();
return processDeclarationInstance;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public InstanceExecutedStatementBlock createInstanceExecutedStatementBlock() {
InstanceExecutedStatementBlockImpl instanceExecutedStatementBlock = new InstanceExecutedStatementBlockImpl();
return instanceExecutedStatementBlock;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public InstanceFireableStatementBlock createInstanceFireableStatementBlock() {
InstanceFireableStatementBlockImpl instanceFireableStatementBlock = new InstanceFireableStatementBlockImpl();
return instanceFireableStatementBlock;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public InstanceEnabledStatementBlock createInstanceEnabledStatementBlock() {
InstanceEnabledStatementBlockImpl instanceEnabledStatementBlock = new InstanceEnabledStatementBlockImpl();
return instanceEnabledStatementBlock;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public VariableDeclarationInstance createVariableDeclarationInstance() {
VariableDeclarationInstanceImpl variableDeclarationInstance = new VariableDeclarationInstanceImpl();
return variableDeclarationInstance;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FiacreinstancePackage getFiacreinstancePackage() {
return (FiacreinstancePackage)getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @deprecated
* @generated
*/
@Deprecated
public static FiacreinstancePackage getPackage() {
return FiacreinstancePackage.eINSTANCE;
}
} //FiacreinstanceFactoryImpl

View File

@@ -0,0 +1,775 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.impl;
import fr.irit.fiacre.xtext.fiacre.FiacrePackage;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.BlockInstance;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.ComponentDeclarationInstance;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.CompositionInstance;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.DeclarationInstance;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.EnabledStatementBlock;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.ExecutableStatementBlock;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.ExecutedStatementBlock;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstanceFactory;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.FireableStatementBlock;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceEnabledStatementBlock;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceExecutableStatementBlock;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceExecutedStatementBlock;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceFireableStatementBlock;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceModel;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceStatementBlock;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.ProcessDeclarationInstance;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.StatementBlock;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.VariableDeclarationInstance;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Package</b>.
* <!-- end-user-doc -->
* @generated
*/
public class FiacreinstancePackageImpl extends EPackageImpl implements FiacreinstancePackage {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass instanceModelEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass statementBlockEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass executedStatementBlockEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass executableStatementBlockEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass fireableStatementBlockEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass enabledStatementBlockEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass blockInstanceEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass compositionInstanceEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass declarationInstanceEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass componentDeclarationInstanceEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass processDeclarationInstanceEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass instanceStatementBlockEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass instanceExecutedStatementBlockEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass instanceExecutableStatementBlockEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass instanceFireableStatementBlockEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass instanceEnabledStatementBlockEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass variableDeclarationInstanceEClass = null;
/**
* Creates an instance of the model <b>Package</b>, registered with
* {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
* package URI value.
* <p>Note: the correct way to create the package is via the static
* factory method {@link #init init()}, which also performs
* initialization of the package, or returns the registered package,
* if one already exists.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.eclipse.emf.ecore.EPackage.Registry
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage#eNS_URI
* @see #init()
* @generated
*/
private FiacreinstancePackageImpl() {
super(eNS_URI, FiacreinstanceFactory.eINSTANCE);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static boolean isInited = false;
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
*
* <p>This method is used to initialize {@link FiacreinstancePackage#eINSTANCE} when that field is accessed.
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static FiacreinstancePackage init() {
if (isInited) return (FiacreinstancePackage)EPackage.Registry.INSTANCE.getEPackage(FiacreinstancePackage.eNS_URI);
// Obtain or create and register package
FiacreinstancePackageImpl theFiacreinstancePackage = (FiacreinstancePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof FiacreinstancePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new FiacreinstancePackageImpl());
isInited = true;
// Initialize simple dependencies
FiacrePackage.eINSTANCE.eClass();
// Create package meta-data objects
theFiacreinstancePackage.createPackageContents();
// Initialize created meta-data
theFiacreinstancePackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
theFiacreinstancePackage.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(FiacreinstancePackage.eNS_URI, theFiacreinstancePackage);
return theFiacreinstancePackage;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getInstanceModel() {
return instanceModelEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getInstanceModel_Name() {
return (EAttribute)instanceModelEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getInstanceModel_Model() {
return (EReference)instanceModelEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getInstanceModel_Instance() {
return (EReference)instanceModelEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getInstanceModel_StatementBlocks() {
return (EReference)instanceModelEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getStatementBlock() {
return statementBlockEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getStatementBlock_InstanceStatementBlocks() {
return (EReference)statementBlockEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getStatementBlock_Name() {
return (EAttribute)statementBlockEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getExecutedStatementBlock() {
return executedStatementBlockEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getExecutableStatementBlock() {
return executableStatementBlockEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getExecutableStatementBlock_Date() {
return (EAttribute)executableStatementBlockEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getFireableStatementBlock() {
return fireableStatementBlockEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getEnabledStatementBlock() {
return enabledStatementBlockEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getBlockInstance() {
return blockInstanceEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getBlockInstance_BlockInstances() {
return (EReference)blockInstanceEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getCompositionInstance() {
return compositionInstanceEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getCompositionInstance_Composition() {
return (EReference)compositionInstanceEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getDeclarationInstance() {
return declarationInstanceEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getDeclarationInstance_VariableDeclarationInstances() {
return (EReference)declarationInstanceEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getDeclarationInstance_Name() {
return (EAttribute)declarationInstanceEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getDeclarationInstance_Instance() {
return (EReference)declarationInstanceEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getDeclarationInstance_Flatname() {
return (EAttribute)declarationInstanceEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getComponentDeclarationInstance() {
return componentDeclarationInstanceEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getComponentDeclarationInstance_Component() {
return (EReference)componentDeclarationInstanceEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getProcessDeclarationInstance() {
return processDeclarationInstanceEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getProcessDeclarationInstance_CurrentState() {
return (EReference)processDeclarationInstanceEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getProcessDeclarationInstance_Process() {
return (EReference)processDeclarationInstanceEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getProcessDeclarationInstance_InstanceStatementBlocks() {
return (EReference)processDeclarationInstanceEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getInstanceStatementBlock() {
return instanceStatementBlockEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getInstanceStatementBlock_TransitionSource() {
return (EReference)instanceStatementBlockEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getInstanceStatementBlock_Statements() {
return (EReference)instanceStatementBlockEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute getInstanceStatementBlock_Name() {
return (EAttribute)instanceStatementBlockEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getInstanceExecutedStatementBlock() {
return instanceExecutedStatementBlockEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getInstanceExecutableStatementBlock() {
return instanceExecutableStatementBlockEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getInstanceFireableStatementBlock() {
return instanceFireableStatementBlockEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getInstanceEnabledStatementBlock() {
return instanceEnabledStatementBlockEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getVariableDeclarationInstance() {
return variableDeclarationInstanceEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getVariableDeclarationInstance_VariableDeclaration() {
return (EReference)variableDeclarationInstanceEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getVariableDeclarationInstance_CurrentValue() {
return (EReference)variableDeclarationInstanceEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FiacreinstanceFactory getFiacreinstanceFactory() {
return (FiacreinstanceFactory)getEFactoryInstance();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private boolean isCreated = false;
/**
* Creates the meta-model objects for the package. This method is
* guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createPackageContents() {
if (isCreated) return;
isCreated = true;
// Create classes and their features
instanceModelEClass = createEClass(INSTANCE_MODEL);
createEAttribute(instanceModelEClass, INSTANCE_MODEL__NAME);
createEReference(instanceModelEClass, INSTANCE_MODEL__MODEL);
createEReference(instanceModelEClass, INSTANCE_MODEL__INSTANCE);
createEReference(instanceModelEClass, INSTANCE_MODEL__STATEMENT_BLOCKS);
statementBlockEClass = createEClass(STATEMENT_BLOCK);
createEReference(statementBlockEClass, STATEMENT_BLOCK__INSTANCE_STATEMENT_BLOCKS);
createEAttribute(statementBlockEClass, STATEMENT_BLOCK__NAME);
executedStatementBlockEClass = createEClass(EXECUTED_STATEMENT_BLOCK);
executableStatementBlockEClass = createEClass(EXECUTABLE_STATEMENT_BLOCK);
createEAttribute(executableStatementBlockEClass, EXECUTABLE_STATEMENT_BLOCK__DATE);
fireableStatementBlockEClass = createEClass(FIREABLE_STATEMENT_BLOCK);
enabledStatementBlockEClass = createEClass(ENABLED_STATEMENT_BLOCK);
blockInstanceEClass = createEClass(BLOCK_INSTANCE);
createEReference(blockInstanceEClass, BLOCK_INSTANCE__BLOCK_INSTANCES);
compositionInstanceEClass = createEClass(COMPOSITION_INSTANCE);
createEReference(compositionInstanceEClass, COMPOSITION_INSTANCE__COMPOSITION);
declarationInstanceEClass = createEClass(DECLARATION_INSTANCE);
createEReference(declarationInstanceEClass, DECLARATION_INSTANCE__VARIABLE_DECLARATION_INSTANCES);
createEAttribute(declarationInstanceEClass, DECLARATION_INSTANCE__NAME);
createEReference(declarationInstanceEClass, DECLARATION_INSTANCE__INSTANCE);
createEAttribute(declarationInstanceEClass, DECLARATION_INSTANCE__FLATNAME);
componentDeclarationInstanceEClass = createEClass(COMPONENT_DECLARATION_INSTANCE);
createEReference(componentDeclarationInstanceEClass, COMPONENT_DECLARATION_INSTANCE__COMPONENT);
processDeclarationInstanceEClass = createEClass(PROCESS_DECLARATION_INSTANCE);
createEReference(processDeclarationInstanceEClass, PROCESS_DECLARATION_INSTANCE__CURRENT_STATE);
createEReference(processDeclarationInstanceEClass, PROCESS_DECLARATION_INSTANCE__PROCESS);
createEReference(processDeclarationInstanceEClass, PROCESS_DECLARATION_INSTANCE__INSTANCE_STATEMENT_BLOCKS);
instanceStatementBlockEClass = createEClass(INSTANCE_STATEMENT_BLOCK);
createEReference(instanceStatementBlockEClass, INSTANCE_STATEMENT_BLOCK__TRANSITION_SOURCE);
createEReference(instanceStatementBlockEClass, INSTANCE_STATEMENT_BLOCK__STATEMENTS);
createEAttribute(instanceStatementBlockEClass, INSTANCE_STATEMENT_BLOCK__NAME);
instanceExecutedStatementBlockEClass = createEClass(INSTANCE_EXECUTED_STATEMENT_BLOCK);
instanceExecutableStatementBlockEClass = createEClass(INSTANCE_EXECUTABLE_STATEMENT_BLOCK);
instanceFireableStatementBlockEClass = createEClass(INSTANCE_FIREABLE_STATEMENT_BLOCK);
instanceEnabledStatementBlockEClass = createEClass(INSTANCE_ENABLED_STATEMENT_BLOCK);
variableDeclarationInstanceEClass = createEClass(VARIABLE_DECLARATION_INSTANCE);
createEReference(variableDeclarationInstanceEClass, VARIABLE_DECLARATION_INSTANCE__VARIABLE_DECLARATION);
createEReference(variableDeclarationInstanceEClass, VARIABLE_DECLARATION_INSTANCE__CURRENT_VALUE);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private boolean isInitialized = false;
/**
* Complete the initialization of the package and its meta-model. This
* method is guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void initializePackageContents() {
if (isInitialized) return;
isInitialized = true;
// Initialize package
setName(eNAME);
setNsPrefix(eNS_PREFIX);
setNsURI(eNS_URI);
// Obtain other dependent packages
FiacrePackage theFiacrePackage = (FiacrePackage)EPackage.Registry.INSTANCE.getEPackage(FiacrePackage.eNS_URI);
// Create type parameters
// Set bounds for type parameters
// Add supertypes to classes
executedStatementBlockEClass.getESuperTypes().add(this.getStatementBlock());
executableStatementBlockEClass.getESuperTypes().add(this.getStatementBlock());
fireableStatementBlockEClass.getESuperTypes().add(this.getExecutableStatementBlock());
enabledStatementBlockEClass.getESuperTypes().add(this.getExecutableStatementBlock());
compositionInstanceEClass.getESuperTypes().add(this.getBlockInstance());
declarationInstanceEClass.getESuperTypes().add(this.getBlockInstance());
componentDeclarationInstanceEClass.getESuperTypes().add(this.getDeclarationInstance());
processDeclarationInstanceEClass.getESuperTypes().add(this.getDeclarationInstance());
instanceExecutedStatementBlockEClass.getESuperTypes().add(this.getInstanceStatementBlock());
instanceExecutableStatementBlockEClass.getESuperTypes().add(this.getInstanceStatementBlock());
instanceFireableStatementBlockEClass.getESuperTypes().add(this.getInstanceExecutableStatementBlock());
instanceEnabledStatementBlockEClass.getESuperTypes().add(this.getInstanceExecutableStatementBlock());
// Initialize classes, features, and operations; add parameters
initEClass(instanceModelEClass, InstanceModel.class, "InstanceModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getInstanceModel_Name(), ecorePackage.getEString(), "name", null, 0, 1, InstanceModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getInstanceModel_Model(), theFiacrePackage.getModel(), null, "model", null, 1, 1, InstanceModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getInstanceModel_Instance(), this.getDeclarationInstance(), null, "instance", null, 1, -1, InstanceModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getInstanceModel_StatementBlocks(), this.getStatementBlock(), null, "statementBlocks", null, 0, -1, InstanceModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(statementBlockEClass, StatementBlock.class, "StatementBlock", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getStatementBlock_InstanceStatementBlocks(), this.getInstanceStatementBlock(), null, "instanceStatementBlocks", null, 1, -1, StatementBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getStatementBlock_Name(), ecorePackage.getEString(), "name", null, 0, 1, StatementBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(executedStatementBlockEClass, ExecutedStatementBlock.class, "ExecutedStatementBlock", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(executableStatementBlockEClass, ExecutableStatementBlock.class, "ExecutableStatementBlock", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getExecutableStatementBlock_Date(), ecorePackage.getEString(), "date", null, 0, 1, ExecutableStatementBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(fireableStatementBlockEClass, FireableStatementBlock.class, "FireableStatementBlock", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(enabledStatementBlockEClass, EnabledStatementBlock.class, "EnabledStatementBlock", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(blockInstanceEClass, BlockInstance.class, "BlockInstance", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getBlockInstance_BlockInstances(), this.getBlockInstance(), null, "blockInstances", null, 0, -1, BlockInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(compositionInstanceEClass, CompositionInstance.class, "CompositionInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getCompositionInstance_Composition(), theFiacrePackage.getComposition(), null, "composition", null, 0, 1, CompositionInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(declarationInstanceEClass, DeclarationInstance.class, "DeclarationInstance", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getDeclarationInstance_VariableDeclarationInstances(), this.getVariableDeclarationInstance(), null, "variableDeclarationInstances", null, 0, -1, DeclarationInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getDeclarationInstance_Name(), ecorePackage.getEString(), "name", null, 1, 1, DeclarationInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getDeclarationInstance_Instance(), theFiacrePackage.getComponentInstance(), null, "instance", null, 0, 1, DeclarationInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getDeclarationInstance_Flatname(), ecorePackage.getEString(), "flatname", null, 0, 1, DeclarationInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(componentDeclarationInstanceEClass, ComponentDeclarationInstance.class, "ComponentDeclarationInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getComponentDeclarationInstance_Component(), theFiacrePackage.getComponentDeclaration(), null, "component", null, 1, 1, ComponentDeclarationInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(processDeclarationInstanceEClass, ProcessDeclarationInstance.class, "ProcessDeclarationInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getProcessDeclarationInstance_CurrentState(), theFiacrePackage.getStateDeclaration(), null, "currentState", null, 0, 1, ProcessDeclarationInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getProcessDeclarationInstance_Process(), theFiacrePackage.getProcessDeclaration(), null, "process", null, 1, 1, ProcessDeclarationInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getProcessDeclarationInstance_InstanceStatementBlocks(), this.getInstanceStatementBlock(), null, "instanceStatementBlocks", null, 0, -1, ProcessDeclarationInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(instanceStatementBlockEClass, InstanceStatementBlock.class, "InstanceStatementBlock", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getInstanceStatementBlock_TransitionSource(), theFiacrePackage.getTransitionSource(), null, "transitionSource", null, 1, 1, InstanceStatementBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getInstanceStatementBlock_Statements(), theFiacrePackage.getStatement(), null, "statements", null, 0, -1, InstanceStatementBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getInstanceStatementBlock_Name(), ecorePackage.getEString(), "name", null, 0, 1, InstanceStatementBlock.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(instanceExecutedStatementBlockEClass, InstanceExecutedStatementBlock.class, "InstanceExecutedStatementBlock", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(instanceExecutableStatementBlockEClass, InstanceExecutableStatementBlock.class, "InstanceExecutableStatementBlock", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(instanceFireableStatementBlockEClass, InstanceFireableStatementBlock.class, "InstanceFireableStatementBlock", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(instanceEnabledStatementBlockEClass, InstanceEnabledStatementBlock.class, "InstanceEnabledStatementBlock", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(variableDeclarationInstanceEClass, VariableDeclarationInstance.class, "VariableDeclarationInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getVariableDeclarationInstance_VariableDeclaration(), theFiacrePackage.getVariableDeclaration(), null, "variableDeclaration", null, 1, 1, VariableDeclarationInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getVariableDeclarationInstance_CurrentValue(), theFiacrePackage.getValueExpression(), null, "currentValue", null, 0, 1, VariableDeclarationInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
// Create resource
createResource(eNS_URI);
}
} //FiacreinstancePackageImpl

View File

@@ -0,0 +1,47 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.impl;
import org.eclipse.emf.ecore.EClass;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.FireableStatementBlock;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Fireable Statement Block</b></em>'.
* <!-- end-user-doc -->
*
* @generated
*/
public class FireableStatementBlockImpl extends ExecutableStatementBlockImpl implements FireableStatementBlock {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected FireableStatementBlockImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FiacreinstancePackage.Literals.FIREABLE_STATEMENT_BLOCK;
}
} //FireableStatementBlockImpl

View File

@@ -0,0 +1,47 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.impl;
import org.eclipse.emf.ecore.EClass;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceEnabledStatementBlock;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Instance Enabled Statement Block</b></em>'.
* <!-- end-user-doc -->
*
* @generated
*/
public class InstanceEnabledStatementBlockImpl extends InstanceExecutableStatementBlockImpl implements InstanceEnabledStatementBlock {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected InstanceEnabledStatementBlockImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FiacreinstancePackage.Literals.INSTANCE_ENABLED_STATEMENT_BLOCK;
}
} //InstanceEnabledStatementBlockImpl

View File

@@ -0,0 +1,47 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.impl;
import org.eclipse.emf.ecore.EClass;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceExecutableStatementBlock;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Instance Executable Statement Block</b></em>'.
* <!-- end-user-doc -->
*
* @generated
*/
public abstract class InstanceExecutableStatementBlockImpl extends InstanceStatementBlockImpl implements InstanceExecutableStatementBlock {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected InstanceExecutableStatementBlockImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FiacreinstancePackage.Literals.INSTANCE_EXECUTABLE_STATEMENT_BLOCK;
}
} //InstanceExecutableStatementBlockImpl

View File

@@ -0,0 +1,47 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.impl;
import org.eclipse.emf.ecore.EClass;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceExecutedStatementBlock;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Instance Executed Statement Block</b></em>'.
* <!-- end-user-doc -->
*
* @generated
*/
public class InstanceExecutedStatementBlockImpl extends InstanceStatementBlockImpl implements InstanceExecutedStatementBlock {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected InstanceExecutedStatementBlockImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FiacreinstancePackage.Literals.INSTANCE_EXECUTED_STATEMENT_BLOCK;
}
} //InstanceExecutedStatementBlockImpl

View File

@@ -0,0 +1,47 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.impl;
import org.eclipse.emf.ecore.EClass;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceFireableStatementBlock;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Instance Fireable Statement Block</b></em>'.
* <!-- end-user-doc -->
*
* @generated
*/
public class InstanceFireableStatementBlockImpl extends InstanceExecutableStatementBlockImpl implements InstanceFireableStatementBlock {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected InstanceFireableStatementBlockImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FiacreinstancePackage.Literals.INSTANCE_FIREABLE_STATEMENT_BLOCK;
}
} //InstanceFireableStatementBlockImpl

View File

@@ -0,0 +1,331 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.impl;
import fr.irit.fiacre.xtext.fiacre.Model;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.DeclarationInstance;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceModel;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.StatementBlock;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Instance Model</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.InstanceModelImpl#getName <em>Name</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.InstanceModelImpl#getModel <em>Model</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.InstanceModelImpl#getInstance <em>Instance</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.InstanceModelImpl#getStatementBlocks <em>Statement Blocks</em>}</li>
* </ul>
*
* @generated
*/
public class InstanceModelImpl extends MinimalEObjectImpl.Container implements InstanceModel {
/**
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected static final String NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected String name = NAME_EDEFAULT;
/**
* The cached value of the '{@link #getModel() <em>Model</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getModel()
* @generated
* @ordered
*/
protected Model model;
/**
* The cached value of the '{@link #getInstance() <em>Instance</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInstance()
* @generated
* @ordered
*/
protected EList<DeclarationInstance> instance;
/**
* The cached value of the '{@link #getStatementBlocks() <em>Statement Blocks</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getStatementBlocks()
* @generated
* @ordered
*/
protected EList<StatementBlock> statementBlocks;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected InstanceModelImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FiacreinstancePackage.Literals.INSTANCE_MODEL;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FiacreinstancePackage.INSTANCE_MODEL__NAME, oldName, name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Model getModel() {
if (model != null && model.eIsProxy()) {
InternalEObject oldModel = (InternalEObject)model;
model = (Model)eResolveProxy(oldModel);
if (model != oldModel) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FiacreinstancePackage.INSTANCE_MODEL__MODEL, oldModel, model));
}
}
return model;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Model basicGetModel() {
return model;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setModel(Model newModel) {
Model oldModel = model;
model = newModel;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FiacreinstancePackage.INSTANCE_MODEL__MODEL, oldModel, model));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<DeclarationInstance> getInstance() {
if (instance == null) {
instance = new EObjectContainmentEList<DeclarationInstance>(DeclarationInstance.class, this, FiacreinstancePackage.INSTANCE_MODEL__INSTANCE);
}
return instance;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<StatementBlock> getStatementBlocks() {
if (statementBlocks == null) {
statementBlocks = new EObjectContainmentEList<StatementBlock>(StatementBlock.class, this, FiacreinstancePackage.INSTANCE_MODEL__STATEMENT_BLOCKS);
}
return statementBlocks;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case FiacreinstancePackage.INSTANCE_MODEL__INSTANCE:
return ((InternalEList<?>)getInstance()).basicRemove(otherEnd, msgs);
case FiacreinstancePackage.INSTANCE_MODEL__STATEMENT_BLOCKS:
return ((InternalEList<?>)getStatementBlocks()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case FiacreinstancePackage.INSTANCE_MODEL__NAME:
return getName();
case FiacreinstancePackage.INSTANCE_MODEL__MODEL:
if (resolve) return getModel();
return basicGetModel();
case FiacreinstancePackage.INSTANCE_MODEL__INSTANCE:
return getInstance();
case FiacreinstancePackage.INSTANCE_MODEL__STATEMENT_BLOCKS:
return getStatementBlocks();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case FiacreinstancePackage.INSTANCE_MODEL__NAME:
setName((String)newValue);
return;
case FiacreinstancePackage.INSTANCE_MODEL__MODEL:
setModel((Model)newValue);
return;
case FiacreinstancePackage.INSTANCE_MODEL__INSTANCE:
getInstance().clear();
getInstance().addAll((Collection<? extends DeclarationInstance>)newValue);
return;
case FiacreinstancePackage.INSTANCE_MODEL__STATEMENT_BLOCKS:
getStatementBlocks().clear();
getStatementBlocks().addAll((Collection<? extends StatementBlock>)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FiacreinstancePackage.INSTANCE_MODEL__NAME:
setName(NAME_EDEFAULT);
return;
case FiacreinstancePackage.INSTANCE_MODEL__MODEL:
setModel((Model)null);
return;
case FiacreinstancePackage.INSTANCE_MODEL__INSTANCE:
getInstance().clear();
return;
case FiacreinstancePackage.INSTANCE_MODEL__STATEMENT_BLOCKS:
getStatementBlocks().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FiacreinstancePackage.INSTANCE_MODEL__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case FiacreinstancePackage.INSTANCE_MODEL__MODEL:
return model != null;
case FiacreinstancePackage.INSTANCE_MODEL__INSTANCE:
return instance != null && !instance.isEmpty();
case FiacreinstancePackage.INSTANCE_MODEL__STATEMENT_BLOCKS:
return statementBlocks != null && !statementBlocks.isEmpty();
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (name: ");
result.append(name);
result.append(')');
return result.toString();
}
} //InstanceModelImpl

View File

@@ -0,0 +1,278 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.impl;
import fr.irit.fiacre.xtext.fiacre.Statement;
import fr.irit.fiacre.xtext.fiacre.TransitionSource;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.eclipse.emf.ecore.util.EObjectResolvingEList;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceStatementBlock;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Instance Statement Block</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.InstanceStatementBlockImpl#getTransitionSource <em>Transition Source</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.InstanceStatementBlockImpl#getStatements <em>Statements</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.InstanceStatementBlockImpl#getName <em>Name</em>}</li>
* </ul>
*
* @generated
*/
public abstract class InstanceStatementBlockImpl extends MinimalEObjectImpl.Container implements InstanceStatementBlock {
/**
* The cached value of the '{@link #getTransitionSource() <em>Transition Source</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTransitionSource()
* @generated
* @ordered
*/
protected TransitionSource transitionSource;
/**
* The cached value of the '{@link #getStatements() <em>Statements</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getStatements()
* @generated
* @ordered
*/
protected EList<Statement> statements;
/**
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected static final String NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected String name = NAME_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected InstanceStatementBlockImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FiacreinstancePackage.Literals.INSTANCE_STATEMENT_BLOCK;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public TransitionSource getTransitionSource() {
if (transitionSource != null && transitionSource.eIsProxy()) {
InternalEObject oldTransitionSource = (InternalEObject)transitionSource;
transitionSource = (TransitionSource)eResolveProxy(oldTransitionSource);
if (transitionSource != oldTransitionSource) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FiacreinstancePackage.INSTANCE_STATEMENT_BLOCK__TRANSITION_SOURCE, oldTransitionSource, transitionSource));
}
}
return transitionSource;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public TransitionSource basicGetTransitionSource() {
return transitionSource;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTransitionSource(TransitionSource newTransitionSource) {
TransitionSource oldTransitionSource = transitionSource;
transitionSource = newTransitionSource;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FiacreinstancePackage.INSTANCE_STATEMENT_BLOCK__TRANSITION_SOURCE, oldTransitionSource, transitionSource));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<Statement> getStatements() {
if (statements == null) {
statements = new EObjectResolvingEList<Statement>(Statement.class, this, FiacreinstancePackage.INSTANCE_STATEMENT_BLOCK__STATEMENTS);
}
return statements;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FiacreinstancePackage.INSTANCE_STATEMENT_BLOCK__NAME, oldName, name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case FiacreinstancePackage.INSTANCE_STATEMENT_BLOCK__TRANSITION_SOURCE:
if (resolve) return getTransitionSource();
return basicGetTransitionSource();
case FiacreinstancePackage.INSTANCE_STATEMENT_BLOCK__STATEMENTS:
return getStatements();
case FiacreinstancePackage.INSTANCE_STATEMENT_BLOCK__NAME:
return getName();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case FiacreinstancePackage.INSTANCE_STATEMENT_BLOCK__TRANSITION_SOURCE:
setTransitionSource((TransitionSource)newValue);
return;
case FiacreinstancePackage.INSTANCE_STATEMENT_BLOCK__STATEMENTS:
getStatements().clear();
getStatements().addAll((Collection<? extends Statement>)newValue);
return;
case FiacreinstancePackage.INSTANCE_STATEMENT_BLOCK__NAME:
setName((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FiacreinstancePackage.INSTANCE_STATEMENT_BLOCK__TRANSITION_SOURCE:
setTransitionSource((TransitionSource)null);
return;
case FiacreinstancePackage.INSTANCE_STATEMENT_BLOCK__STATEMENTS:
getStatements().clear();
return;
case FiacreinstancePackage.INSTANCE_STATEMENT_BLOCK__NAME:
setName(NAME_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FiacreinstancePackage.INSTANCE_STATEMENT_BLOCK__TRANSITION_SOURCE:
return transitionSource != null;
case FiacreinstancePackage.INSTANCE_STATEMENT_BLOCK__STATEMENTS:
return statements != null && !statements.isEmpty();
case FiacreinstancePackage.INSTANCE_STATEMENT_BLOCK__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (name: ");
result.append(name);
result.append(')');
return result.toString();
}
} //InstanceStatementBlockImpl

View File

@@ -0,0 +1,286 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.impl;
import fr.irit.fiacre.xtext.fiacre.ProcessDeclaration;
import fr.irit.fiacre.xtext.fiacre.StateDeclaration;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceStatementBlock;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.ProcessDeclarationInstance;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Process Declaration Instance</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.ProcessDeclarationInstanceImpl#getCurrentState <em>Current State</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.ProcessDeclarationInstanceImpl#getProcess <em>Process</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.ProcessDeclarationInstanceImpl#getInstanceStatementBlocks <em>Instance Statement Blocks</em>}</li>
* </ul>
*
* @generated
*/
public class ProcessDeclarationInstanceImpl extends DeclarationInstanceImpl implements ProcessDeclarationInstance {
/**
* The cached value of the '{@link #getCurrentState() <em>Current State</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCurrentState()
* @generated
* @ordered
*/
protected StateDeclaration currentState;
/**
* The cached value of the '{@link #getProcess() <em>Process</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getProcess()
* @generated
* @ordered
*/
protected ProcessDeclaration process;
/**
* The cached value of the '{@link #getInstanceStatementBlocks() <em>Instance Statement Blocks</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInstanceStatementBlocks()
* @generated
* @ordered
*/
protected EList<InstanceStatementBlock> instanceStatementBlocks;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ProcessDeclarationInstanceImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FiacreinstancePackage.Literals.PROCESS_DECLARATION_INSTANCE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public StateDeclaration getCurrentState() {
if (currentState != null && currentState.eIsProxy()) {
InternalEObject oldCurrentState = (InternalEObject)currentState;
currentState = (StateDeclaration)eResolveProxy(oldCurrentState);
if (currentState != oldCurrentState) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FiacreinstancePackage.PROCESS_DECLARATION_INSTANCE__CURRENT_STATE, oldCurrentState, currentState));
}
}
return currentState;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public StateDeclaration basicGetCurrentState() {
return currentState;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setCurrentState(StateDeclaration newCurrentState) {
StateDeclaration oldCurrentState = currentState;
currentState = newCurrentState;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FiacreinstancePackage.PROCESS_DECLARATION_INSTANCE__CURRENT_STATE, oldCurrentState, currentState));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ProcessDeclaration getProcess() {
if (process != null && process.eIsProxy()) {
InternalEObject oldProcess = (InternalEObject)process;
process = (ProcessDeclaration)eResolveProxy(oldProcess);
if (process != oldProcess) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FiacreinstancePackage.PROCESS_DECLARATION_INSTANCE__PROCESS, oldProcess, process));
}
}
return process;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ProcessDeclaration basicGetProcess() {
return process;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setProcess(ProcessDeclaration newProcess) {
ProcessDeclaration oldProcess = process;
process = newProcess;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FiacreinstancePackage.PROCESS_DECLARATION_INSTANCE__PROCESS, oldProcess, process));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<InstanceStatementBlock> getInstanceStatementBlocks() {
if (instanceStatementBlocks == null) {
instanceStatementBlocks = new EObjectContainmentEList<InstanceStatementBlock>(InstanceStatementBlock.class, this, FiacreinstancePackage.PROCESS_DECLARATION_INSTANCE__INSTANCE_STATEMENT_BLOCKS);
}
return instanceStatementBlocks;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case FiacreinstancePackage.PROCESS_DECLARATION_INSTANCE__INSTANCE_STATEMENT_BLOCKS:
return ((InternalEList<?>)getInstanceStatementBlocks()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case FiacreinstancePackage.PROCESS_DECLARATION_INSTANCE__CURRENT_STATE:
if (resolve) return getCurrentState();
return basicGetCurrentState();
case FiacreinstancePackage.PROCESS_DECLARATION_INSTANCE__PROCESS:
if (resolve) return getProcess();
return basicGetProcess();
case FiacreinstancePackage.PROCESS_DECLARATION_INSTANCE__INSTANCE_STATEMENT_BLOCKS:
return getInstanceStatementBlocks();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case FiacreinstancePackage.PROCESS_DECLARATION_INSTANCE__CURRENT_STATE:
setCurrentState((StateDeclaration)newValue);
return;
case FiacreinstancePackage.PROCESS_DECLARATION_INSTANCE__PROCESS:
setProcess((ProcessDeclaration)newValue);
return;
case FiacreinstancePackage.PROCESS_DECLARATION_INSTANCE__INSTANCE_STATEMENT_BLOCKS:
getInstanceStatementBlocks().clear();
getInstanceStatementBlocks().addAll((Collection<? extends InstanceStatementBlock>)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FiacreinstancePackage.PROCESS_DECLARATION_INSTANCE__CURRENT_STATE:
setCurrentState((StateDeclaration)null);
return;
case FiacreinstancePackage.PROCESS_DECLARATION_INSTANCE__PROCESS:
setProcess((ProcessDeclaration)null);
return;
case FiacreinstancePackage.PROCESS_DECLARATION_INSTANCE__INSTANCE_STATEMENT_BLOCKS:
getInstanceStatementBlocks().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FiacreinstancePackage.PROCESS_DECLARATION_INSTANCE__CURRENT_STATE:
return currentState != null;
case FiacreinstancePackage.PROCESS_DECLARATION_INSTANCE__PROCESS:
return process != null;
case FiacreinstancePackage.PROCESS_DECLARATION_INSTANCE__INSTANCE_STATEMENT_BLOCKS:
return instanceStatementBlocks != null && !instanceStatementBlocks.isEmpty();
}
return super.eIsSet(featureID);
}
} //ProcessDeclarationInstanceImpl

View File

@@ -0,0 +1,215 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.eclipse.emf.ecore.util.EObjectResolvingEList;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceStatementBlock;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.StatementBlock;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Statement Block</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.StatementBlockImpl#getInstanceStatementBlocks <em>Instance Statement Blocks</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.StatementBlockImpl#getName <em>Name</em>}</li>
* </ul>
*
* @generated
*/
public abstract class StatementBlockImpl extends MinimalEObjectImpl.Container implements StatementBlock {
/**
* The cached value of the '{@link #getInstanceStatementBlocks() <em>Instance Statement Blocks</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInstanceStatementBlocks()
* @generated
* @ordered
*/
protected EList<InstanceStatementBlock> instanceStatementBlocks;
/**
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected static final String NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected String name = NAME_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected StatementBlockImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FiacreinstancePackage.Literals.STATEMENT_BLOCK;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<InstanceStatementBlock> getInstanceStatementBlocks() {
if (instanceStatementBlocks == null) {
instanceStatementBlocks = new EObjectResolvingEList<InstanceStatementBlock>(InstanceStatementBlock.class, this, FiacreinstancePackage.STATEMENT_BLOCK__INSTANCE_STATEMENT_BLOCKS);
}
return instanceStatementBlocks;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FiacreinstancePackage.STATEMENT_BLOCK__NAME, oldName, name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case FiacreinstancePackage.STATEMENT_BLOCK__INSTANCE_STATEMENT_BLOCKS:
return getInstanceStatementBlocks();
case FiacreinstancePackage.STATEMENT_BLOCK__NAME:
return getName();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case FiacreinstancePackage.STATEMENT_BLOCK__INSTANCE_STATEMENT_BLOCKS:
getInstanceStatementBlocks().clear();
getInstanceStatementBlocks().addAll((Collection<? extends InstanceStatementBlock>)newValue);
return;
case FiacreinstancePackage.STATEMENT_BLOCK__NAME:
setName((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FiacreinstancePackage.STATEMENT_BLOCK__INSTANCE_STATEMENT_BLOCKS:
getInstanceStatementBlocks().clear();
return;
case FiacreinstancePackage.STATEMENT_BLOCK__NAME:
setName(NAME_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FiacreinstancePackage.STATEMENT_BLOCK__INSTANCE_STATEMENT_BLOCKS:
return instanceStatementBlocks != null && !instanceStatementBlocks.isEmpty();
case FiacreinstancePackage.STATEMENT_BLOCK__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (name: ");
result.append(name);
result.append(')');
return result.toString();
}
} //StatementBlockImpl

View File

@@ -0,0 +1,248 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.impl;
import fr.irit.fiacre.xtext.fiacre.ValueExpression;
import fr.irit.fiacre.xtext.fiacre.VariableDeclaration;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.VariableDeclarationInstance;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Variable Declaration Instance</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.VariableDeclarationInstanceImpl#getVariableDeclaration <em>Variable Declaration</em>}</li>
* <li>{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.impl.VariableDeclarationInstanceImpl#getCurrentValue <em>Current Value</em>}</li>
* </ul>
*
* @generated
*/
public class VariableDeclarationInstanceImpl extends MinimalEObjectImpl.Container implements VariableDeclarationInstance {
/**
* The cached value of the '{@link #getVariableDeclaration() <em>Variable Declaration</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getVariableDeclaration()
* @generated
* @ordered
*/
protected VariableDeclaration variableDeclaration;
/**
* The cached value of the '{@link #getCurrentValue() <em>Current Value</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCurrentValue()
* @generated
* @ordered
*/
protected ValueExpression currentValue;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected VariableDeclarationInstanceImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FiacreinstancePackage.Literals.VARIABLE_DECLARATION_INSTANCE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public VariableDeclaration getVariableDeclaration() {
if (variableDeclaration != null && variableDeclaration.eIsProxy()) {
InternalEObject oldVariableDeclaration = (InternalEObject)variableDeclaration;
variableDeclaration = (VariableDeclaration)eResolveProxy(oldVariableDeclaration);
if (variableDeclaration != oldVariableDeclaration) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FiacreinstancePackage.VARIABLE_DECLARATION_INSTANCE__VARIABLE_DECLARATION, oldVariableDeclaration, variableDeclaration));
}
}
return variableDeclaration;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public VariableDeclaration basicGetVariableDeclaration() {
return variableDeclaration;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setVariableDeclaration(VariableDeclaration newVariableDeclaration) {
VariableDeclaration oldVariableDeclaration = variableDeclaration;
variableDeclaration = newVariableDeclaration;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FiacreinstancePackage.VARIABLE_DECLARATION_INSTANCE__VARIABLE_DECLARATION, oldVariableDeclaration, variableDeclaration));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ValueExpression getCurrentValue() {
return currentValue;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetCurrentValue(ValueExpression newCurrentValue, NotificationChain msgs) {
ValueExpression oldCurrentValue = currentValue;
currentValue = newCurrentValue;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FiacreinstancePackage.VARIABLE_DECLARATION_INSTANCE__CURRENT_VALUE, oldCurrentValue, newCurrentValue);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setCurrentValue(ValueExpression newCurrentValue) {
if (newCurrentValue != currentValue) {
NotificationChain msgs = null;
if (currentValue != null)
msgs = ((InternalEObject)currentValue).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FiacreinstancePackage.VARIABLE_DECLARATION_INSTANCE__CURRENT_VALUE, null, msgs);
if (newCurrentValue != null)
msgs = ((InternalEObject)newCurrentValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FiacreinstancePackage.VARIABLE_DECLARATION_INSTANCE__CURRENT_VALUE, null, msgs);
msgs = basicSetCurrentValue(newCurrentValue, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FiacreinstancePackage.VARIABLE_DECLARATION_INSTANCE__CURRENT_VALUE, newCurrentValue, newCurrentValue));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case FiacreinstancePackage.VARIABLE_DECLARATION_INSTANCE__CURRENT_VALUE:
return basicSetCurrentValue(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case FiacreinstancePackage.VARIABLE_DECLARATION_INSTANCE__VARIABLE_DECLARATION:
if (resolve) return getVariableDeclaration();
return basicGetVariableDeclaration();
case FiacreinstancePackage.VARIABLE_DECLARATION_INSTANCE__CURRENT_VALUE:
return getCurrentValue();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case FiacreinstancePackage.VARIABLE_DECLARATION_INSTANCE__VARIABLE_DECLARATION:
setVariableDeclaration((VariableDeclaration)newValue);
return;
case FiacreinstancePackage.VARIABLE_DECLARATION_INSTANCE__CURRENT_VALUE:
setCurrentValue((ValueExpression)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FiacreinstancePackage.VARIABLE_DECLARATION_INSTANCE__VARIABLE_DECLARATION:
setVariableDeclaration((VariableDeclaration)null);
return;
case FiacreinstancePackage.VARIABLE_DECLARATION_INSTANCE__CURRENT_VALUE:
setCurrentValue((ValueExpression)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FiacreinstancePackage.VARIABLE_DECLARATION_INSTANCE__VARIABLE_DECLARATION:
return variableDeclaration != null;
case FiacreinstancePackage.VARIABLE_DECLARATION_INSTANCE__CURRENT_VALUE:
return currentValue != null;
}
return super.eIsSet(featureID);
}
} //VariableDeclarationInstanceImpl

View File

@@ -0,0 +1,418 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.util;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.ecore.EObject;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.*;
/**
* <!-- begin-user-doc -->
* The <b>Adapter Factory</b> for the model.
* It provides an adapter <code>createXXX</code> method for each class of the model.
* <!-- end-user-doc -->
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage
* @generated
*/
public class FiacreinstanceAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static FiacreinstancePackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FiacreinstanceAdapterFactory() {
if (modelPackage == null) {
modelPackage = FiacreinstancePackage.eINSTANCE;
}
}
/**
* Returns whether this factory is applicable for the type of the object.
* <!-- begin-user-doc -->
* This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
* <!-- end-user-doc -->
* @return whether this factory is applicable for the type of the object.
* @generated
*/
@Override
public boolean isFactoryForType(Object object) {
if (object == modelPackage) {
return true;
}
if (object instanceof EObject) {
return ((EObject)object).eClass().getEPackage() == modelPackage;
}
return false;
}
/**
* The switch that delegates to the <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected FiacreinstanceSwitch<Adapter> modelSwitch =
new FiacreinstanceSwitch<Adapter>() {
@Override
public Adapter caseInstanceModel(InstanceModel object) {
return createInstanceModelAdapter();
}
@Override
public Adapter caseStatementBlock(StatementBlock object) {
return createStatementBlockAdapter();
}
@Override
public Adapter caseExecutedStatementBlock(ExecutedStatementBlock object) {
return createExecutedStatementBlockAdapter();
}
@Override
public Adapter caseExecutableStatementBlock(ExecutableStatementBlock object) {
return createExecutableStatementBlockAdapter();
}
@Override
public Adapter caseFireableStatementBlock(FireableStatementBlock object) {
return createFireableStatementBlockAdapter();
}
@Override
public Adapter caseEnabledStatementBlock(EnabledStatementBlock object) {
return createEnabledStatementBlockAdapter();
}
@Override
public Adapter caseBlockInstance(BlockInstance object) {
return createBlockInstanceAdapter();
}
@Override
public Adapter caseCompositionInstance(CompositionInstance object) {
return createCompositionInstanceAdapter();
}
@Override
public Adapter caseDeclarationInstance(DeclarationInstance object) {
return createDeclarationInstanceAdapter();
}
@Override
public Adapter caseComponentDeclarationInstance(ComponentDeclarationInstance object) {
return createComponentDeclarationInstanceAdapter();
}
@Override
public Adapter caseProcessDeclarationInstance(ProcessDeclarationInstance object) {
return createProcessDeclarationInstanceAdapter();
}
@Override
public Adapter caseInstanceStatementBlock(InstanceStatementBlock object) {
return createInstanceStatementBlockAdapter();
}
@Override
public Adapter caseInstanceExecutedStatementBlock(InstanceExecutedStatementBlock object) {
return createInstanceExecutedStatementBlockAdapter();
}
@Override
public Adapter caseInstanceExecutableStatementBlock(InstanceExecutableStatementBlock object) {
return createInstanceExecutableStatementBlockAdapter();
}
@Override
public Adapter caseInstanceFireableStatementBlock(InstanceFireableStatementBlock object) {
return createInstanceFireableStatementBlockAdapter();
}
@Override
public Adapter caseInstanceEnabledStatementBlock(InstanceEnabledStatementBlock object) {
return createInstanceEnabledStatementBlockAdapter();
}
@Override
public Adapter caseVariableDeclarationInstance(VariableDeclarationInstance object) {
return createVariableDeclarationInstanceAdapter();
}
@Override
public Adapter defaultCase(EObject object) {
return createEObjectAdapter();
}
};
/**
* Creates an adapter for the <code>target</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param target the object to adapt.
* @return the adapter for the <code>target</code>.
* @generated
*/
@Override
public Adapter createAdapter(Notifier target) {
return modelSwitch.doSwitch((EObject)target);
}
/**
* Creates a new adapter for an object of class '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceModel <em>Instance Model</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceModel
* @generated
*/
public Adapter createInstanceModelAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.StatementBlock <em>Statement Block</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.StatementBlock
* @generated
*/
public Adapter createStatementBlockAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.ExecutedStatementBlock <em>Executed Statement Block</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.ExecutedStatementBlock
* @generated
*/
public Adapter createExecutedStatementBlockAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.ExecutableStatementBlock <em>Executable Statement Block</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.ExecutableStatementBlock
* @generated
*/
public Adapter createExecutableStatementBlockAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.FireableStatementBlock <em>Fireable Statement Block</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FireableStatementBlock
* @generated
*/
public Adapter createFireableStatementBlockAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.EnabledStatementBlock <em>Enabled Statement Block</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.EnabledStatementBlock
* @generated
*/
public Adapter createEnabledStatementBlockAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.BlockInstance <em>Block Instance</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.BlockInstance
* @generated
*/
public Adapter createBlockInstanceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.CompositionInstance <em>Composition Instance</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.CompositionInstance
* @generated
*/
public Adapter createCompositionInstanceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.DeclarationInstance <em>Declaration Instance</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.DeclarationInstance
* @generated
*/
public Adapter createDeclarationInstanceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.ComponentDeclarationInstance <em>Component Declaration Instance</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.ComponentDeclarationInstance
* @generated
*/
public Adapter createComponentDeclarationInstanceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.ProcessDeclarationInstance <em>Process Declaration Instance</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.ProcessDeclarationInstance
* @generated
*/
public Adapter createProcessDeclarationInstanceAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceStatementBlock <em>Instance Statement Block</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceStatementBlock
* @generated
*/
public Adapter createInstanceStatementBlockAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceExecutedStatementBlock <em>Instance Executed Statement Block</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceExecutedStatementBlock
* @generated
*/
public Adapter createInstanceExecutedStatementBlockAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceExecutableStatementBlock <em>Instance Executable Statement Block</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceExecutableStatementBlock
* @generated
*/
public Adapter createInstanceExecutableStatementBlockAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceFireableStatementBlock <em>Instance Fireable Statement Block</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceFireableStatementBlock
* @generated
*/
public Adapter createInstanceFireableStatementBlockAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceEnabledStatementBlock <em>Instance Enabled Statement Block</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceEnabledStatementBlock
* @generated
*/
public Adapter createInstanceEnabledStatementBlockAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link com.irtsaintexupery.fiacre.instance.fiacreinstance.VariableDeclarationInstance <em>Variable Declaration Instance</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.VariableDeclarationInstance
* @generated
*/
public Adapter createVariableDeclarationInstanceAdapter() {
return null;
}
/**
* Creates a new adapter for the default case.
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
* @return the new adapter.
* @generated
*/
public Adapter createEObjectAdapter() {
return null;
}
} //FiacreinstanceAdapterFactory

View File

@@ -0,0 +1,474 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.util;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.*;
/**
* <!-- begin-user-doc -->
* The <b>Switch</b> for the model's inheritance hierarchy.
* It supports the call {@link #doSwitch(EObject) doSwitch(object)}
* to invoke the <code>caseXXX</code> method for each class of the model,
* starting with the actual class of the object
* and proceeding up the inheritance hierarchy
* until a non-null result is returned,
* which is the result of the switch.
* <!-- end-user-doc -->
* @see com.irtsaintexupery.fiacre.instance.fiacreinstance.FiacreinstancePackage
* @generated
*/
public class FiacreinstanceSwitch<T> extends Switch<T> {
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static FiacreinstancePackage modelPackage;
/**
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FiacreinstanceSwitch() {
if (modelPackage == null) {
modelPackage = FiacreinstancePackage.eINSTANCE;
}
}
/**
* Checks whether this is a switch for the given package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param ePackage the package in question.
* @return whether this is a switch for the given package.
* @generated
*/
@Override
protected boolean isSwitchFor(EPackage ePackage) {
return ePackage == modelPackage;
}
/**
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
case FiacreinstancePackage.INSTANCE_MODEL: {
InstanceModel instanceModel = (InstanceModel)theEObject;
T result = caseInstanceModel(instanceModel);
if (result == null) result = defaultCase(theEObject);
return result;
}
case FiacreinstancePackage.STATEMENT_BLOCK: {
StatementBlock statementBlock = (StatementBlock)theEObject;
T result = caseStatementBlock(statementBlock);
if (result == null) result = defaultCase(theEObject);
return result;
}
case FiacreinstancePackage.EXECUTED_STATEMENT_BLOCK: {
ExecutedStatementBlock executedStatementBlock = (ExecutedStatementBlock)theEObject;
T result = caseExecutedStatementBlock(executedStatementBlock);
if (result == null) result = caseStatementBlock(executedStatementBlock);
if (result == null) result = defaultCase(theEObject);
return result;
}
case FiacreinstancePackage.EXECUTABLE_STATEMENT_BLOCK: {
ExecutableStatementBlock executableStatementBlock = (ExecutableStatementBlock)theEObject;
T result = caseExecutableStatementBlock(executableStatementBlock);
if (result == null) result = caseStatementBlock(executableStatementBlock);
if (result == null) result = defaultCase(theEObject);
return result;
}
case FiacreinstancePackage.FIREABLE_STATEMENT_BLOCK: {
FireableStatementBlock fireableStatementBlock = (FireableStatementBlock)theEObject;
T result = caseFireableStatementBlock(fireableStatementBlock);
if (result == null) result = caseExecutableStatementBlock(fireableStatementBlock);
if (result == null) result = caseStatementBlock(fireableStatementBlock);
if (result == null) result = defaultCase(theEObject);
return result;
}
case FiacreinstancePackage.ENABLED_STATEMENT_BLOCK: {
EnabledStatementBlock enabledStatementBlock = (EnabledStatementBlock)theEObject;
T result = caseEnabledStatementBlock(enabledStatementBlock);
if (result == null) result = caseExecutableStatementBlock(enabledStatementBlock);
if (result == null) result = caseStatementBlock(enabledStatementBlock);
if (result == null) result = defaultCase(theEObject);
return result;
}
case FiacreinstancePackage.BLOCK_INSTANCE: {
BlockInstance blockInstance = (BlockInstance)theEObject;
T result = caseBlockInstance(blockInstance);
if (result == null) result = defaultCase(theEObject);
return result;
}
case FiacreinstancePackage.COMPOSITION_INSTANCE: {
CompositionInstance compositionInstance = (CompositionInstance)theEObject;
T result = caseCompositionInstance(compositionInstance);
if (result == null) result = caseBlockInstance(compositionInstance);
if (result == null) result = defaultCase(theEObject);
return result;
}
case FiacreinstancePackage.DECLARATION_INSTANCE: {
DeclarationInstance declarationInstance = (DeclarationInstance)theEObject;
T result = caseDeclarationInstance(declarationInstance);
if (result == null) result = caseBlockInstance(declarationInstance);
if (result == null) result = defaultCase(theEObject);
return result;
}
case FiacreinstancePackage.COMPONENT_DECLARATION_INSTANCE: {
ComponentDeclarationInstance componentDeclarationInstance = (ComponentDeclarationInstance)theEObject;
T result = caseComponentDeclarationInstance(componentDeclarationInstance);
if (result == null) result = caseDeclarationInstance(componentDeclarationInstance);
if (result == null) result = caseBlockInstance(componentDeclarationInstance);
if (result == null) result = defaultCase(theEObject);
return result;
}
case FiacreinstancePackage.PROCESS_DECLARATION_INSTANCE: {
ProcessDeclarationInstance processDeclarationInstance = (ProcessDeclarationInstance)theEObject;
T result = caseProcessDeclarationInstance(processDeclarationInstance);
if (result == null) result = caseDeclarationInstance(processDeclarationInstance);
if (result == null) result = caseBlockInstance(processDeclarationInstance);
if (result == null) result = defaultCase(theEObject);
return result;
}
case FiacreinstancePackage.INSTANCE_STATEMENT_BLOCK: {
InstanceStatementBlock instanceStatementBlock = (InstanceStatementBlock)theEObject;
T result = caseInstanceStatementBlock(instanceStatementBlock);
if (result == null) result = defaultCase(theEObject);
return result;
}
case FiacreinstancePackage.INSTANCE_EXECUTED_STATEMENT_BLOCK: {
InstanceExecutedStatementBlock instanceExecutedStatementBlock = (InstanceExecutedStatementBlock)theEObject;
T result = caseInstanceExecutedStatementBlock(instanceExecutedStatementBlock);
if (result == null) result = caseInstanceStatementBlock(instanceExecutedStatementBlock);
if (result == null) result = defaultCase(theEObject);
return result;
}
case FiacreinstancePackage.INSTANCE_EXECUTABLE_STATEMENT_BLOCK: {
InstanceExecutableStatementBlock instanceExecutableStatementBlock = (InstanceExecutableStatementBlock)theEObject;
T result = caseInstanceExecutableStatementBlock(instanceExecutableStatementBlock);
if (result == null) result = caseInstanceStatementBlock(instanceExecutableStatementBlock);
if (result == null) result = defaultCase(theEObject);
return result;
}
case FiacreinstancePackage.INSTANCE_FIREABLE_STATEMENT_BLOCK: {
InstanceFireableStatementBlock instanceFireableStatementBlock = (InstanceFireableStatementBlock)theEObject;
T result = caseInstanceFireableStatementBlock(instanceFireableStatementBlock);
if (result == null) result = caseInstanceExecutableStatementBlock(instanceFireableStatementBlock);
if (result == null) result = caseInstanceStatementBlock(instanceFireableStatementBlock);
if (result == null) result = defaultCase(theEObject);
return result;
}
case FiacreinstancePackage.INSTANCE_ENABLED_STATEMENT_BLOCK: {
InstanceEnabledStatementBlock instanceEnabledStatementBlock = (InstanceEnabledStatementBlock)theEObject;
T result = caseInstanceEnabledStatementBlock(instanceEnabledStatementBlock);
if (result == null) result = caseInstanceExecutableStatementBlock(instanceEnabledStatementBlock);
if (result == null) result = caseInstanceStatementBlock(instanceEnabledStatementBlock);
if (result == null) result = defaultCase(theEObject);
return result;
}
case FiacreinstancePackage.VARIABLE_DECLARATION_INSTANCE: {
VariableDeclarationInstance variableDeclarationInstance = (VariableDeclarationInstance)theEObject;
T result = caseVariableDeclarationInstance(variableDeclarationInstance);
if (result == null) result = defaultCase(theEObject);
return result;
}
default: return defaultCase(theEObject);
}
}
/**
* Returns the result of interpreting the object as an instance of '<em>Instance Model</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Instance Model</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseInstanceModel(InstanceModel object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Statement Block</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Statement Block</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseStatementBlock(StatementBlock object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Executed Statement Block</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Executed Statement Block</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseExecutedStatementBlock(ExecutedStatementBlock object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Executable Statement Block</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Executable Statement Block</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseExecutableStatementBlock(ExecutableStatementBlock object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Fireable Statement Block</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Fireable Statement Block</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseFireableStatementBlock(FireableStatementBlock object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Enabled Statement Block</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Enabled Statement Block</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseEnabledStatementBlock(EnabledStatementBlock object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Block Instance</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Block Instance</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseBlockInstance(BlockInstance object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Composition Instance</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Composition Instance</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseCompositionInstance(CompositionInstance object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Declaration Instance</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Declaration Instance</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseDeclarationInstance(DeclarationInstance object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Component Declaration Instance</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Component Declaration Instance</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseComponentDeclarationInstance(ComponentDeclarationInstance object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Process Declaration Instance</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Process Declaration Instance</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseProcessDeclarationInstance(ProcessDeclarationInstance object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Instance Statement Block</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Instance Statement Block</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseInstanceStatementBlock(InstanceStatementBlock object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Instance Executed Statement Block</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Instance Executed Statement Block</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseInstanceExecutedStatementBlock(InstanceExecutedStatementBlock object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Instance Executable Statement Block</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Instance Executable Statement Block</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseInstanceExecutableStatementBlock(InstanceExecutableStatementBlock object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Instance Fireable Statement Block</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Instance Fireable Statement Block</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseInstanceFireableStatementBlock(InstanceFireableStatementBlock object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Instance Enabled Statement Block</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Instance Enabled Statement Block</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseInstanceEnabledStatementBlock(InstanceEnabledStatementBlock object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Variable Declaration Instance</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Variable Declaration Instance</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseVariableDeclarationInstance(VariableDeclarationInstance object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch, but this is the last case anyway.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>EObject</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
*/
@Override
public T defaultCase(EObject object) {
return null;
}
} //FiacreinstanceSwitch

View File

@@ -0,0 +1,31 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*
* $Id$
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.validation;
import org.eclipse.emf.common.util.EList;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.BlockInstance;
/**
* A sample validator interface for {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.BlockInstance}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface BlockInstanceValidator {
boolean validate();
boolean validateBlockInstances(EList<BlockInstance> value);
}

View File

@@ -0,0 +1,29 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*
* $Id$
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.validation;
import fr.irit.fiacre.xtext.fiacre.ComponentDeclaration;
/**
* A sample validator interface for {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.ComponentDeclarationInstance}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface ComponentDeclarationInstanceValidator {
boolean validate();
boolean validateComponent(ComponentDeclaration value);
}

View File

@@ -0,0 +1,29 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*
* $Id$
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.validation;
import fr.irit.fiacre.xtext.fiacre.Composition;
/**
* A sample validator interface for {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.CompositionInstance}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface CompositionInstanceValidator {
boolean validate();
boolean validateComposition(Composition value);
}

View File

@@ -0,0 +1,35 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*
* $Id$
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.validation;
import fr.irit.fiacre.xtext.fiacre.ComponentInstance;
import org.eclipse.emf.common.util.EList;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.VariableDeclarationInstance;
/**
* A sample validator interface for {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.DeclarationInstance}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface DeclarationInstanceValidator {
boolean validate();
boolean validateVariableDeclarationInstances(EList<VariableDeclarationInstance> value);
boolean validateName(String value);
boolean validateInstance(ComponentInstance value);
}

View File

@@ -0,0 +1,27 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*
* $Id$
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.validation;
/**
* A sample validator interface for {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.EnabledStatementBlock}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface EnabledStatementBlockValidator {
boolean validate();
}

View File

@@ -0,0 +1,28 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*
* $Id$
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.validation;
/**
* A sample validator interface for {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.ExecutableStatementBlock}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface ExecutableStatementBlockValidator {
boolean validate();
boolean validateDate(String value);
}

View File

@@ -0,0 +1,27 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*
* $Id$
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.validation;
/**
* A sample validator interface for {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.ExecutedStatementBlock}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface ExecutedStatementBlockValidator {
boolean validate();
}

View File

@@ -0,0 +1,27 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*
* $Id$
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.validation;
/**
* A sample validator interface for {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.FireableStatementBlock}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface FireableStatementBlockValidator {
boolean validate();
}

View File

@@ -0,0 +1,27 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*
* $Id$
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.validation;
/**
* A sample validator interface for {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceEnabledStatementBlock}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface InstanceEnabledStatementBlockValidator {
boolean validate();
}

View File

@@ -0,0 +1,27 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*
* $Id$
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.validation;
/**
* A sample validator interface for {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceExecutableStatementBlock}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface InstanceExecutableStatementBlockValidator {
boolean validate();
}

View File

@@ -0,0 +1,27 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*
* $Id$
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.validation;
/**
* A sample validator interface for {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceExecutedStatementBlock}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface InstanceExecutedStatementBlockValidator {
boolean validate();
}

View File

@@ -0,0 +1,27 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*
* $Id$
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.validation;
/**
* A sample validator interface for {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceFireableStatementBlock}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface InstanceFireableStatementBlockValidator {
boolean validate();
}

View File

@@ -0,0 +1,37 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*
* $Id$
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.validation;
import fr.irit.fiacre.xtext.fiacre.Model;
import org.eclipse.emf.common.util.EList;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.DeclarationInstance;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.StatementBlock;
/**
* A sample validator interface for {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceModel}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface InstanceModelValidator {
boolean validate();
boolean validateName(String value);
boolean validateModel(Model value);
boolean validateInstance(DeclarationInstance value);
boolean validateStatementBlocks(EList<StatementBlock> value);
}

View File

@@ -0,0 +1,34 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*
* $Id$
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.validation;
import fr.irit.fiacre.xtext.fiacre.Statement;
import fr.irit.fiacre.xtext.fiacre.TransitionSource;
import org.eclipse.emf.common.util.EList;
/**
* A sample validator interface for {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceStatementBlock}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface InstanceStatementBlockValidator {
boolean validate();
boolean validateTransitionSource(TransitionSource value);
boolean validateStatements(EList<Statement> value);
boolean validateName(String value);
}

View File

@@ -0,0 +1,36 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*
* $Id$
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.validation;
import fr.irit.fiacre.xtext.fiacre.ProcessDeclaration;
import fr.irit.fiacre.xtext.fiacre.StateDeclaration;
import org.eclipse.emf.common.util.EList;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceStatementBlock;
/**
* A sample validator interface for {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.ProcessDeclarationInstance}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface ProcessDeclarationInstanceValidator {
boolean validate();
boolean validateCurrentState(StateDeclaration value);
boolean validateProcess(ProcessDeclaration value);
boolean validateInstanceStatementBlocks(EList<InstanceStatementBlock> value);
}

View File

@@ -0,0 +1,32 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*
* $Id$
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.validation;
import org.eclipse.emf.common.util.EList;
import com.irtsaintexupery.fiacre.instance.fiacreinstance.InstanceStatementBlock;
/**
* A sample validator interface for {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.StatementBlock}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface StatementBlockValidator {
boolean validate();
boolean validateInstanceStatementBlocks(EList<InstanceStatementBlock> value);
boolean validateName(String value);
}

View File

@@ -0,0 +1,31 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 CNRS, IRIT, IRT AESE (IRT Saint Exupéry).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LGPL 3.0
* which accompanies this distribution, and is available at
* https://www.gnu.org/licenses/lgpl-3.0-standalone.html
*
* Contributors:
* Faiez Zalila - initial API and implementation and/or initial documentation
*******************************************************************************/
/**
*
* $Id$
*/
package com.irtsaintexupery.fiacre.instance.fiacreinstance.validation;
import fr.irit.fiacre.xtext.fiacre.Expression;
import fr.irit.fiacre.xtext.fiacre.VariableDeclaration;
/**
* A sample validator interface for {@link com.irtsaintexupery.fiacre.instance.fiacreinstance.VariableDeclarationInstance}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
* This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
*/
public interface VariableDeclarationInstanceValidator {
boolean validate();
boolean validateVariableDeclaration(VariableDeclaration value);
boolean validateCurrentValue(Expression value);
}

View File

@@ -0,0 +1,63 @@
Model FiacreInstance
This model description is not a real EMF artifact. It was generated by the
org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's
code generator can be extended.
This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
Package fiacreinstance <http://fiacreinstance/1.0>
Class InstanceModel
Attribute name : EString
Reference model : Model<<1..1>>
Reference instance : DeclarationInstance<<1..1>>
Reference statementBlocks : StatementBlock<<0..*>>
Class StatementBlock
Reference instanceStatementBlocks : InstanceStatementBlock<<1..*>>
Attribute name : EString
Class ExecutedStatementBlock -> StatementBlock
Class ExecutableStatementBlock -> StatementBlock
Attribute date : EString
Class FireableStatementBlock -> ExecutableStatementBlock
Class EnabledStatementBlock -> ExecutableStatementBlock
Class BlockInstance
Reference blockInstances : BlockInstance<<0..*>>
Class CompositionInstance -> BlockInstance
Reference composition : Composition
Class DeclarationInstance -> BlockInstance
Reference variableDeclarationInstances : VariableDeclarationInstance<<0..*>>
Attribute name : EString<<1..1>>
Reference instance : ComponentInstance
Class ComponentDeclarationInstance -> DeclarationInstance
Reference component : ComponentDeclaration<<1..1>>
Class ProcessDeclarationInstance -> DeclarationInstance
Reference currentState : StateDeclaration
Reference process : ProcessDeclaration<<1..1>>
Reference instanceStatementBlocks : InstanceStatementBlock<<0..*>>
Class InstanceStatementBlock
Reference transitionSource : TransitionSource<<1..1>>
Reference statements : Statement<<0..*>>
Attribute name : EString
Class InstanceExecutedStatementBlock -> InstanceStatementBlock
Class InstanceExecutableStatementBlock -> InstanceStatementBlock
Class InstanceFireableStatementBlock -> InstanceExecutableStatementBlock
Class InstanceEnabledStatementBlock -> InstanceExecutableStatementBlock
Class VariableDeclarationInstance
Reference variableDeclaration : VariableDeclaration<<1..1>>
Reference currentValue : Expression