resolved merge conflicts

refactoring of modeling projects
This commit is contained in:
SebastianE 2020-04-27 15:28:44 +02:00
parent d72c83e641
commit d16a245ac2
155 changed files with 7413 additions and 13218 deletions

View file

@ -1,79 +0,0 @@
<?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="/org.emoflon.ibex.common/src" editDirectory="/org.emoflon.ibex.common.edit/src"
editorDirectory="/org.emoflon.ibex.common.editor/src" modelPluginID="org.emoflon.ibex.common"
modelName="StochasticExtension" updateClasspath="false" importerID="org.eclipse.emf.importer.ecore"
complianceLevel="8.0" copyrightFields="false" editPluginID="org.emoflon.ibex.common.edit"
operationReflection="true">
<foreignModel>StochasticExtension.ecore</foreignModel>
<genPackages prefix="StochasticLanguage" disposableProviderFactory="true" fileExtensions="stochasticlanguage"
ecorePackage="StochasticExtension.ecore#/" documentation="StochasticExtensionForGraphTransformation">
<genEnums typeSafeEnumCompatible="false" ecoreEnum="StochasticExtension.ecore#//GTStochasticDistribution">
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//GTStochasticDistribution/NORMAL"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//GTStochasticDistribution/UNIFORM"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//GTStochasticDistribution/EXPONENTIAL"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//GTStochasticDistribution/STATIC"/>
</genEnums>
<genEnums typeSafeEnumCompatible="false" ecoreEnum="StochasticExtension.ecore#//GTStochasticRange">
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//GTStochasticRange/NEUTRAL"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//GTStochasticRange/POSITIVE"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//GTStochasticRange/NEGATIVE"/>
</genEnums>
<genEnums typeSafeEnumCompatible="false" ecoreEnum="StochasticExtension.ecore#//TwoParameterOperator">
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//TwoParameterOperator/ADDITION"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//TwoParameterOperator/MULTIPLICATION"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//TwoParameterOperator/DIVISION"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//TwoParameterOperator/MODULO"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//TwoParameterOperator/EXPONENTIAL"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//TwoParameterOperator/SUBTRACTION"/>
</genEnums>
<genEnums typeSafeEnumCompatible="false" ecoreEnum="StochasticExtension.ecore#//OneParameterOperator">
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//OneParameterOperator/ROOT"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//OneParameterOperator/ABSOLUTE"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//OneParameterOperator/SIN"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//OneParameterOperator/COS"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//OneParameterOperator/TAN"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//OneParameterOperator/E_EXPONENTIAL"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//OneParameterOperator/LOGARITHMUS"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//OneParameterOperator/NATLOG"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//OneParameterOperator/BRACKET"/>
</genEnums>
<genEnums typeSafeEnumCompatible="false" ecoreEnum="StochasticExtension.ecore#//GTRelation">
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//GTRelation/GREATER_OR_EQUAL"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//GTRelation/GREATER"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//GTRelation/EQUAL"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//GTRelation/UNEQUAL"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//GTRelation/SMALLER_OR_EQUAL"/>
<genEnumLiterals ecoreEnumLiteral="StochasticExtension.ecore#//GTRelation/SMALLER"/>
</genEnums>
<genClasses ecoreClass="StochasticExtension.ecore#//GTStochasticNamedElement">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute StochasticExtension.ecore#//GTStochasticNamedElement/name"/>
</genClasses>
<genClasses ecoreClass="StochasticExtension.ecore#//GTStochasticNode">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference StochasticExtension.ecore#//GTStochasticNode/type"/>
</genClasses>
<genClasses ecoreClass="StochasticExtension.ecore#//GTAttribute">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference StochasticExtension.ecore#//GTAttribute/attribute"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute StochasticExtension.ecore#//GTAttribute/negative"/>
</genClasses>
<genClasses ecoreClass="StochasticExtension.ecore#//GTStochasticFunction">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference StochasticExtension.ecore#//GTStochasticFunction/mean"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference StochasticExtension.ecore#//GTStochasticFunction/sd"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute StochasticExtension.ecore#//GTStochasticFunction/distribution"/>
</genClasses>
<genClasses ecoreClass="StochasticExtension.ecore#//GTNumber">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute StochasticExtension.ecore#//GTNumber/number"/>
</genClasses>
<genClasses image="false" ecoreClass="StochasticExtension.ecore#//GTArithmetics"/>
<genClasses ecoreClass="StochasticExtension.ecore#//GTTwoParameterCalculation">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference StochasticExtension.ecore#//GTTwoParameterCalculation/left"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference StochasticExtension.ecore#//GTTwoParameterCalculation/right"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute StochasticExtension.ecore#//GTTwoParameterCalculation/operator"/>
</genClasses>
<genClasses ecoreClass="StochasticExtension.ecore#//GTOneParameterCalculation">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference StochasticExtension.ecore#//GTOneParameterCalculation/value"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute StochasticExtension.ecore#//GTOneParameterCalculation/operator"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute StochasticExtension.ecore#//GTOneParameterCalculation/negative"/>
</genClasses>
</genPackages>
</genmodel:GenModel>

View file

@ -1,18 +0,0 @@
/**
*/
package StochasticLanguage;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Arithmetics</b></em>'.
* <!-- end-user-doc -->
*
*
* @see StochasticLanguage.StochasticLanguagePackage#getGTArithmetics()
* @model interface="true" abstract="true"
* @generated
*/
public interface GTArithmetics extends EObject {
} // GTArithmetics

View file

@ -1,73 +0,0 @@
/**
*/
package StochasticLanguage;
import org.eclipse.emf.ecore.EAttribute;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Attribute</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* Attributes can be used as parameters for stochastic functions.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link StochasticLanguage.GTAttribute#getAttribute <em>Attribute</em>}</li>
* <li>{@link StochasticLanguage.GTAttribute#isNegative <em>Negative</em>}</li>
* </ul>
*
* @see StochasticLanguage.StochasticLanguagePackage#getGTAttribute()
* @model
* @generated
*/
public interface GTAttribute extends GTStochasticNode, GTArithmetics {
/**
* Returns the value of the '<em><b>Attribute</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Attribute</em>' reference.
* @see #setAttribute(EAttribute)
* @see StochasticLanguage.StochasticLanguagePackage#getGTAttribute_Attribute()
* @model
* @generated
*/
EAttribute getAttribute();
/**
* Sets the value of the '{@link StochasticLanguage.GTAttribute#getAttribute <em>Attribute</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Attribute</em>' reference.
* @see #getAttribute()
* @generated
*/
void setAttribute(EAttribute value);
/**
* Returns the value of the '<em><b>Negative</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Negative</em>' attribute.
* @see #setNegative(boolean)
* @see StochasticLanguage.StochasticLanguagePackage#getGTAttribute_Negative()
* @model
* @generated
*/
boolean isNegative();
/**
* Sets the value of the '{@link StochasticLanguage.GTAttribute#isNegative <em>Negative</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Negative</em>' attribute.
* @see #isNegative()
* @generated
*/
void setNegative(boolean value);
} // GTAttribute

View file

@ -1,93 +0,0 @@
/**
*/
package StochasticLanguage;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT One Parameter Calculation</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link StochasticLanguage.GTOneParameterCalculation#getValue <em>Value</em>}</li>
* <li>{@link StochasticLanguage.GTOneParameterCalculation#getOperator <em>Operator</em>}</li>
* <li>{@link StochasticLanguage.GTOneParameterCalculation#isNegative <em>Negative</em>}</li>
* </ul>
*
* @see StochasticLanguage.StochasticLanguagePackage#getGTOneParameterCalculation()
* @model
* @generated
*/
public interface GTOneParameterCalculation extends GTArithmetics {
/**
* Returns the value of the '<em><b>Value</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Value</em>' containment reference.
* @see #setValue(GTArithmetics)
* @see StochasticLanguage.StochasticLanguagePackage#getGTOneParameterCalculation_Value()
* @model containment="true"
* @generated
*/
GTArithmetics getValue();
/**
* Sets the value of the '{@link StochasticLanguage.GTOneParameterCalculation#getValue <em>Value</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Value</em>' containment reference.
* @see #getValue()
* @generated
*/
void setValue(GTArithmetics value);
/**
* Returns the value of the '<em><b>Operator</b></em>' attribute.
* The literals are from the enumeration {@link StochasticLanguage.OneParameterOperator}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Operator</em>' attribute.
* @see StochasticLanguage.OneParameterOperator
* @see #setOperator(OneParameterOperator)
* @see StochasticLanguage.StochasticLanguagePackage#getGTOneParameterCalculation_Operator()
* @model
* @generated
*/
OneParameterOperator getOperator();
/**
* Sets the value of the '{@link StochasticLanguage.GTOneParameterCalculation#getOperator <em>Operator</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Operator</em>' attribute.
* @see StochasticLanguage.OneParameterOperator
* @see #getOperator()
* @generated
*/
void setOperator(OneParameterOperator value);
/**
* Returns the value of the '<em><b>Negative</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Negative</em>' attribute.
* @see #setNegative(boolean)
* @see StochasticLanguage.StochasticLanguagePackage#getGTOneParameterCalculation_Negative()
* @model
* @generated
*/
boolean isNegative();
/**
* Sets the value of the '{@link StochasticLanguage.GTOneParameterCalculation#isNegative <em>Negative</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Negative</em>' attribute.
* @see #isNegative()
* @generated
*/
void setNegative(boolean value);
} // GTOneParameterCalculation

View file

@ -1,300 +0,0 @@
/**
*/
package StochasticLanguage;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>GT Relation</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see StochasticLanguage.StochasticLanguagePackage#getGTRelation()
* @model
* @generated
*/
public enum GTRelation implements Enumerator {
/**
* The '<em><b>GREATER OR EQUAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #GREATER_OR_EQUAL_VALUE
* @generated
* @ordered
*/
GREATER_OR_EQUAL(0, "GREATER_OR_EQUAL", "GREATER_OR_EQUAL"),
/**
* The '<em><b>GREATER</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #GREATER_VALUE
* @generated
* @ordered
*/
GREATER(1, "GREATER", "GREATER"),
/**
* The '<em><b>EQUAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #EQUAL_VALUE
* @generated
* @ordered
*/
EQUAL(2, "EQUAL", "EQUAL"),
/**
* The '<em><b>UNEQUAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #UNEQUAL_VALUE
* @generated
* @ordered
*/
UNEQUAL(3, "UNEQUAL", "UNEQUAL"),
/**
* The '<em><b>SMALLER OR EQUAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SMALLER_OR_EQUAL_VALUE
* @generated
* @ordered
*/
SMALLER_OR_EQUAL(4, "SMALLER_OR_EQUAL", "SMALLER_OR_EQUAL"),
/**
* The '<em><b>SMALLER</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SMALLER_VALUE
* @generated
* @ordered
*/
SMALLER(5, "SMALLER", "SMALLER");
/**
* The '<em><b>GREATER OR EQUAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #GREATER_OR_EQUAL
* @model
* @generated
* @ordered
*/
public static final int GREATER_OR_EQUAL_VALUE = 0;
/**
* The '<em><b>GREATER</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #GREATER
* @model
* @generated
* @ordered
*/
public static final int GREATER_VALUE = 1;
/**
* The '<em><b>EQUAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #EQUAL
* @model
* @generated
* @ordered
*/
public static final int EQUAL_VALUE = 2;
/**
* The '<em><b>UNEQUAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #UNEQUAL
* @model
* @generated
* @ordered
*/
public static final int UNEQUAL_VALUE = 3;
/**
* The '<em><b>SMALLER OR EQUAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SMALLER_OR_EQUAL
* @model
* @generated
* @ordered
*/
public static final int SMALLER_OR_EQUAL_VALUE = 4;
/**
* The '<em><b>SMALLER</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SMALLER
* @model
* @generated
* @ordered
*/
public static final int SMALLER_VALUE = 5;
/**
* An array of all the '<em><b>GT Relation</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final GTRelation[] VALUES_ARRAY = new GTRelation[] { GREATER_OR_EQUAL, GREATER, EQUAL, UNEQUAL,
SMALLER_OR_EQUAL, SMALLER, };
/**
* A public read-only list of all the '<em><b>GT Relation</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<GTRelation> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>GT Relation</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param literal the literal.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTRelation get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
GTRelation result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>GT Relation</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name the name.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTRelation getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
GTRelation result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>GT Relation</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the integer value.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTRelation get(int value) {
switch (value) {
case GREATER_OR_EQUAL_VALUE:
return GREATER_OR_EQUAL;
case GREATER_VALUE:
return GREATER;
case EQUAL_VALUE:
return EQUAL;
case UNEQUAL_VALUE:
return UNEQUAL;
case SMALLER_OR_EQUAL_VALUE:
return SMALLER_OR_EQUAL;
case SMALLER_VALUE:
return SMALLER;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private GTRelation(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return literal;
}
} //GTRelation

View file

@ -1,258 +0,0 @@
/**
*/
package StochasticLanguage;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>GT Stochastic Distribution</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The stochastic distribution type. WARNING: Literals need to be the same as the GT.xtext distribution type
* <!-- end-model-doc -->
* @see StochasticLanguage.StochasticLanguagePackage#getGTStochasticDistribution()
* @model
* @generated
*/
public enum GTStochasticDistribution implements Enumerator {
/**
* The '<em><b>NORMAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NORMAL_VALUE
* @generated
* @ordered
*/
NORMAL(0, "NORMAL", "NORMAL"),
/**
* The '<em><b>UNIFORM</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #UNIFORM_VALUE
* @generated
* @ordered
*/
UNIFORM(1, "UNIFORM", "UNIFORM"),
/**
* The '<em><b>EXPONENTIAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #EXPONENTIAL_VALUE
* @generated
* @ordered
*/
EXPONENTIAL(2, "EXPONENTIAL", "EXPONENTIAL"),
/**
* The '<em><b>STATIC</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #STATIC_VALUE
* @generated
* @ordered
*/
STATIC(3, "STATIC", "STATIC");
/**
* The '<em><b>NORMAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NORMAL
* @model
* @generated
* @ordered
*/
public static final int NORMAL_VALUE = 0;
/**
* The '<em><b>UNIFORM</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #UNIFORM
* @model
* @generated
* @ordered
*/
public static final int UNIFORM_VALUE = 1;
/**
* The '<em><b>EXPONENTIAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #EXPONENTIAL
* @model
* @generated
* @ordered
*/
public static final int EXPONENTIAL_VALUE = 2;
/**
* The '<em><b>STATIC</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #STATIC
* @model
* @generated
* @ordered
*/
public static final int STATIC_VALUE = 3;
/**
* An array of all the '<em><b>GT Stochastic Distribution</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final GTStochasticDistribution[] VALUES_ARRAY = new GTStochasticDistribution[] { NORMAL, UNIFORM,
EXPONENTIAL, STATIC, };
/**
* A public read-only list of all the '<em><b>GT Stochastic Distribution</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<GTStochasticDistribution> VALUES = Collections
.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>GT Stochastic Distribution</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param literal the literal.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTStochasticDistribution get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
GTStochasticDistribution result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>GT Stochastic Distribution</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name the name.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTStochasticDistribution getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
GTStochasticDistribution result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>GT Stochastic Distribution</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the integer value.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTStochasticDistribution get(int value) {
switch (value) {
case NORMAL_VALUE:
return NORMAL;
case UNIFORM_VALUE:
return UNIFORM;
case EXPONENTIAL_VALUE:
return EXPONENTIAL;
case STATIC_VALUE:
return STATIC;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private GTStochasticDistribution(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return literal;
}
} //GTStochasticDistribution

View file

@ -1,99 +0,0 @@
/**
*/
package StochasticLanguage;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Stochastic Function</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A stochastic function can be used to calculate probabilities or generate values.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link StochasticLanguage.GTStochasticFunction#getMean <em>Mean</em>}</li>
* <li>{@link StochasticLanguage.GTStochasticFunction#getSd <em>Sd</em>}</li>
* <li>{@link StochasticLanguage.GTStochasticFunction#getDistribution <em>Distribution</em>}</li>
* </ul>
*
* @see StochasticLanguage.StochasticLanguagePackage#getGTStochasticFunction()
* @model
* @generated
*/
public interface GTStochasticFunction extends EObject {
/**
* Returns the value of the '<em><b>Mean</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Mean</em>' containment reference.
* @see #setMean(GTArithmetics)
* @see StochasticLanguage.StochasticLanguagePackage#getGTStochasticFunction_Mean()
* @model containment="true"
* @generated
*/
GTArithmetics getMean();
/**
* Sets the value of the '{@link StochasticLanguage.GTStochasticFunction#getMean <em>Mean</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Mean</em>' containment reference.
* @see #getMean()
* @generated
*/
void setMean(GTArithmetics value);
/**
* Returns the value of the '<em><b>Sd</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Sd</em>' containment reference.
* @see #setSd(GTArithmetics)
* @see StochasticLanguage.StochasticLanguagePackage#getGTStochasticFunction_Sd()
* @model containment="true"
* @generated
*/
GTArithmetics getSd();
/**
* Sets the value of the '{@link StochasticLanguage.GTStochasticFunction#getSd <em>Sd</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Sd</em>' containment reference.
* @see #getSd()
* @generated
*/
void setSd(GTArithmetics value);
/**
* Returns the value of the '<em><b>Distribution</b></em>' attribute.
* The literals are from the enumeration {@link StochasticLanguage.GTStochasticDistribution}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Distribution</em>' attribute.
* @see StochasticLanguage.GTStochasticDistribution
* @see #setDistribution(GTStochasticDistribution)
* @see StochasticLanguage.StochasticLanguagePackage#getGTStochasticFunction_Distribution()
* @model
* @generated
*/
GTStochasticDistribution getDistribution();
/**
* Sets the value of the '{@link StochasticLanguage.GTStochasticFunction#getDistribution <em>Distribution</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Distribution</em>' attribute.
* @see StochasticLanguage.GTStochasticDistribution
* @see #getDistribution()
* @generated
*/
void setDistribution(GTStochasticDistribution value);
} // GTStochasticFunction

View file

@ -1,50 +0,0 @@
/**
*/
package StochasticLanguage;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Stochastic Named Element</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* Any element in the internal model which has a name should inherit form this class.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link StochasticLanguage.GTStochasticNamedElement#getName <em>Name</em>}</li>
* </ul>
*
* @see StochasticLanguage.StochasticLanguagePackage#getGTStochasticNamedElement()
* @model abstract="true"
* @generated
*/
public interface GTStochasticNamedElement extends EObject {
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see StochasticLanguage.StochasticLanguagePackage#getGTStochasticNamedElement_Name()
* @model
* @generated
*/
String getName();
/**
* Sets the value of the '{@link StochasticLanguage.GTStochasticNamedElement#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);
} // GTStochasticNamedElement

View file

@ -1,50 +0,0 @@
/**
*/
package StochasticLanguage;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Stochastic Node</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A typed node can reference other nodes via edges.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link StochasticLanguage.GTStochasticNode#getType <em>Type</em>}</li>
* </ul>
*
* @see StochasticLanguage.StochasticLanguagePackage#getGTStochasticNode()
* @model
* @generated
*/
public interface GTStochasticNode extends GTStochasticNamedElement {
/**
* Returns the value of the '<em><b>Type</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Type</em>' reference.
* @see #setType(EClass)
* @see StochasticLanguage.StochasticLanguagePackage#getGTStochasticNode_Type()
* @model
* @generated
*/
EClass getType();
/**
* Sets the value of the '{@link StochasticLanguage.GTStochasticNode#getType <em>Type</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Type</em>' reference.
* @see #getType()
* @generated
*/
void setType(EClass value);
} // GTStochasticNode

View file

@ -1,93 +0,0 @@
/**
*/
package StochasticLanguage;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Two Parameter Calculation</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link StochasticLanguage.GTTwoParameterCalculation#getLeft <em>Left</em>}</li>
* <li>{@link StochasticLanguage.GTTwoParameterCalculation#getRight <em>Right</em>}</li>
* <li>{@link StochasticLanguage.GTTwoParameterCalculation#getOperator <em>Operator</em>}</li>
* </ul>
*
* @see StochasticLanguage.StochasticLanguagePackage#getGTTwoParameterCalculation()
* @model
* @generated
*/
public interface GTTwoParameterCalculation extends GTArithmetics {
/**
* Returns the value of the '<em><b>Left</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Left</em>' containment reference.
* @see #setLeft(GTArithmetics)
* @see StochasticLanguage.StochasticLanguagePackage#getGTTwoParameterCalculation_Left()
* @model containment="true"
* @generated
*/
GTArithmetics getLeft();
/**
* Sets the value of the '{@link StochasticLanguage.GTTwoParameterCalculation#getLeft <em>Left</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Left</em>' containment reference.
* @see #getLeft()
* @generated
*/
void setLeft(GTArithmetics value);
/**
* Returns the value of the '<em><b>Right</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Right</em>' containment reference.
* @see #setRight(GTArithmetics)
* @see StochasticLanguage.StochasticLanguagePackage#getGTTwoParameterCalculation_Right()
* @model containment="true"
* @generated
*/
GTArithmetics getRight();
/**
* Sets the value of the '{@link StochasticLanguage.GTTwoParameterCalculation#getRight <em>Right</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Right</em>' containment reference.
* @see #getRight()
* @generated
*/
void setRight(GTArithmetics value);
/**
* Returns the value of the '<em><b>Operator</b></em>' attribute.
* The literals are from the enumeration {@link StochasticLanguage.TwoParameterOperator}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Operator</em>' attribute.
* @see StochasticLanguage.TwoParameterOperator
* @see #setOperator(TwoParameterOperator)
* @see StochasticLanguage.StochasticLanguagePackage#getGTTwoParameterCalculation_Operator()
* @model
* @generated
*/
TwoParameterOperator getOperator();
/**
* Sets the value of the '{@link StochasticLanguage.GTTwoParameterCalculation#getOperator <em>Operator</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Operator</em>' attribute.
* @see StochasticLanguage.TwoParameterOperator
* @see #getOperator()
* @generated
*/
void setOperator(TwoParameterOperator value);
} // GTTwoParameterCalculation

View file

@ -1,87 +0,0 @@
/**
*/
package StochasticLanguage;
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 StochasticLanguage.StochasticLanguagePackage
* @generated
*/
public interface StochasticLanguageFactory extends EFactory {
/**
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
StochasticLanguageFactory eINSTANCE = StochasticLanguage.impl.StochasticLanguageFactoryImpl.init();
/**
* Returns a new object of class '<em>GT Stochastic Node</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>GT Stochastic Node</em>'.
* @generated
*/
GTStochasticNode createGTStochasticNode();
/**
* Returns a new object of class '<em>GT Attribute</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>GT Attribute</em>'.
* @generated
*/
GTAttribute createGTAttribute();
/**
* Returns a new object of class '<em>GT Stochastic Function</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>GT Stochastic Function</em>'.
* @generated
*/
GTStochasticFunction createGTStochasticFunction();
/**
* Returns a new object of class '<em>GT Number</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>GT Number</em>'.
* @generated
*/
GTNumber createGTNumber();
/**
* Returns a new object of class '<em>GT Two Parameter Calculation</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>GT Two Parameter Calculation</em>'.
* @generated
*/
GTTwoParameterCalculation createGTTwoParameterCalculation();
/**
* Returns a new object of class '<em>GT One Parameter Calculation</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>GT One Parameter Calculation</em>'.
* @generated
*/
GTOneParameterCalculation createGTOneParameterCalculation();
/**
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the package supported by this factory.
* @generated
*/
StochasticLanguagePackage getStochasticLanguagePackage();
} //StochasticLanguageFactory

View file

@ -1,333 +0,0 @@
/**
*/
package StochasticLanguage.impl;
import StochasticLanguage.GTArithmetics;
import StochasticLanguage.GTStochasticDistribution;
import StochasticLanguage.GTStochasticFunction;
import StochasticLanguage.StochasticLanguagePackage;
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.EObjectImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>GT Stochastic Function</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link StochasticLanguage.impl.GTStochasticFunctionImpl#getMean <em>Mean</em>}</li>
* <li>{@link StochasticLanguage.impl.GTStochasticFunctionImpl#getSd <em>Sd</em>}</li>
* <li>{@link StochasticLanguage.impl.GTStochasticFunctionImpl#getDistribution <em>Distribution</em>}</li>
* </ul>
*
* @generated
*/
public class GTStochasticFunctionImpl extends EObjectImpl implements GTStochasticFunction {
/**
* The cached value of the '{@link #getMean() <em>Mean</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMean()
* @generated
* @ordered
*/
protected GTArithmetics mean;
/**
* The cached value of the '{@link #getSd() <em>Sd</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getSd()
* @generated
* @ordered
*/
protected GTArithmetics sd;
/**
* The default value of the '{@link #getDistribution() <em>Distribution</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDistribution()
* @generated
* @ordered
*/
protected static final GTStochasticDistribution DISTRIBUTION_EDEFAULT = GTStochasticDistribution.NORMAL;
/**
* The cached value of the '{@link #getDistribution() <em>Distribution</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDistribution()
* @generated
* @ordered
*/
protected GTStochasticDistribution distribution = DISTRIBUTION_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected GTStochasticFunctionImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return StochasticLanguagePackage.Literals.GT_STOCHASTIC_FUNCTION;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTArithmetics getMean() {
return mean;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetMean(GTArithmetics newMean, NotificationChain msgs) {
GTArithmetics oldMean = mean;
mean = newMean;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__MEAN, oldMean, newMean);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setMean(GTArithmetics newMean) {
if (newMean != mean) {
NotificationChain msgs = null;
if (mean != null)
msgs = ((InternalEObject) mean).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__MEAN, null, msgs);
if (newMean != null)
msgs = ((InternalEObject) newMean).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__MEAN, null, msgs);
msgs = basicSetMean(newMean, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__MEAN, newMean, newMean));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTArithmetics getSd() {
return sd;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetSd(GTArithmetics newSd, NotificationChain msgs) {
GTArithmetics oldSd = sd;
sd = newSd;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__SD, oldSd, newSd);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setSd(GTArithmetics newSd) {
if (newSd != sd) {
NotificationChain msgs = null;
if (sd != null)
msgs = ((InternalEObject) sd).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__SD, null, msgs);
if (newSd != null)
msgs = ((InternalEObject) newSd).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__SD, null, msgs);
msgs = basicSetSd(newSd, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__SD,
newSd, newSd));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTStochasticDistribution getDistribution() {
return distribution;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setDistribution(GTStochasticDistribution newDistribution) {
GTStochasticDistribution oldDistribution = distribution;
distribution = newDistribution == null ? DISTRIBUTION_EDEFAULT : newDistribution;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__DISTRIBUTION, oldDistribution, distribution));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__MEAN:
return basicSetMean(null, msgs);
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__SD:
return basicSetSd(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 StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__MEAN:
return getMean();
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__SD:
return getSd();
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__DISTRIBUTION:
return getDistribution();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__MEAN:
setMean((GTArithmetics) newValue);
return;
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__SD:
setSd((GTArithmetics) newValue);
return;
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__DISTRIBUTION:
setDistribution((GTStochasticDistribution) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__MEAN:
setMean((GTArithmetics) null);
return;
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__SD:
setSd((GTArithmetics) null);
return;
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__DISTRIBUTION:
setDistribution(DISTRIBUTION_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__MEAN:
return mean != null;
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__SD:
return sd != null;
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__DISTRIBUTION:
return distribution != DISTRIBUTION_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (distribution: ");
result.append(distribution);
result.append(')');
return result.toString();
}
} //GTStochasticFunctionImpl

View file

@ -1,167 +0,0 @@
/**
*/
package StochasticLanguage.impl;
import StochasticLanguage.GTStochasticNamedElement;
import StochasticLanguage.StochasticLanguagePackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>GT Stochastic Named Element</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link StochasticLanguage.impl.GTStochasticNamedElementImpl#getName <em>Name</em>}</li>
* </ul>
*
* @generated
*/
public abstract class GTStochasticNamedElementImpl extends EObjectImpl implements GTStochasticNamedElement {
/**
* 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 GTStochasticNamedElementImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return StochasticLanguagePackage.Literals.GT_STOCHASTIC_NAMED_ELEMENT;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_STOCHASTIC_NAMED_ELEMENT__NAME, oldName, name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case StochasticLanguagePackage.GT_STOCHASTIC_NAMED_ELEMENT__NAME:
return getName();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case StochasticLanguagePackage.GT_STOCHASTIC_NAMED_ELEMENT__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 StochasticLanguagePackage.GT_STOCHASTIC_NAMED_ELEMENT__NAME:
setName(NAME_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case StochasticLanguagePackage.GT_STOCHASTIC_NAMED_ELEMENT__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();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (name: ");
result.append(name);
result.append(')');
return result.toString();
}
} //GTStochasticNamedElementImpl

View file

@ -1,337 +0,0 @@
/**
*/
package StochasticLanguage.impl;
import StochasticLanguage.GTArithmetics;
import StochasticLanguage.GTTwoParameterCalculation;
import StochasticLanguage.StochasticLanguagePackage;
import StochasticLanguage.TwoParameterOperator;
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.EObjectImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>GT Two Parameter Calculation</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link StochasticLanguage.impl.GTTwoParameterCalculationImpl#getLeft <em>Left</em>}</li>
* <li>{@link StochasticLanguage.impl.GTTwoParameterCalculationImpl#getRight <em>Right</em>}</li>
* <li>{@link StochasticLanguage.impl.GTTwoParameterCalculationImpl#getOperator <em>Operator</em>}</li>
* </ul>
*
* @generated
*/
public class GTTwoParameterCalculationImpl extends EObjectImpl implements GTTwoParameterCalculation {
/**
* The cached value of the '{@link #getLeft() <em>Left</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getLeft()
* @generated
* @ordered
*/
protected GTArithmetics left;
/**
* The cached value of the '{@link #getRight() <em>Right</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getRight()
* @generated
* @ordered
*/
protected GTArithmetics right;
/**
* The default value of the '{@link #getOperator() <em>Operator</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOperator()
* @generated
* @ordered
*/
protected static final TwoParameterOperator OPERATOR_EDEFAULT = TwoParameterOperator.ADDITION;
/**
* The cached value of the '{@link #getOperator() <em>Operator</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOperator()
* @generated
* @ordered
*/
protected TwoParameterOperator operator = OPERATOR_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected GTTwoParameterCalculationImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return StochasticLanguagePackage.Literals.GT_TWO_PARAMETER_CALCULATION;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTArithmetics getLeft() {
return left;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetLeft(GTArithmetics newLeft, NotificationChain msgs) {
GTArithmetics oldLeft = left;
left = newLeft;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__LEFT, oldLeft, newLeft);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setLeft(GTArithmetics newLeft) {
if (newLeft != left) {
NotificationChain msgs = null;
if (left != null)
msgs = ((InternalEObject) left).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__LEFT, null,
msgs);
if (newLeft != null)
msgs = ((InternalEObject) newLeft).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__LEFT, null,
msgs);
msgs = basicSetLeft(newLeft, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__LEFT, newLeft, newLeft));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTArithmetics getRight() {
return right;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetRight(GTArithmetics newRight, NotificationChain msgs) {
GTArithmetics oldRight = right;
right = newRight;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__RIGHT, oldRight, newRight);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setRight(GTArithmetics newRight) {
if (newRight != right) {
NotificationChain msgs = null;
if (right != null)
msgs = ((InternalEObject) right).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__RIGHT, null,
msgs);
if (newRight != null)
msgs = ((InternalEObject) newRight).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__RIGHT, null,
msgs);
msgs = basicSetRight(newRight, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__RIGHT, newRight, newRight));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public TwoParameterOperator getOperator() {
return operator;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setOperator(TwoParameterOperator newOperator) {
TwoParameterOperator oldOperator = operator;
operator = newOperator == null ? OPERATOR_EDEFAULT : newOperator;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__OPERATOR, oldOperator, operator));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__LEFT:
return basicSetLeft(null, msgs);
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__RIGHT:
return basicSetRight(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 StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__LEFT:
return getLeft();
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__RIGHT:
return getRight();
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__OPERATOR:
return getOperator();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__LEFT:
setLeft((GTArithmetics) newValue);
return;
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__RIGHT:
setRight((GTArithmetics) newValue);
return;
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__OPERATOR:
setOperator((TwoParameterOperator) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__LEFT:
setLeft((GTArithmetics) null);
return;
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__RIGHT:
setRight((GTArithmetics) null);
return;
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__OPERATOR:
setOperator(OPERATOR_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__LEFT:
return left != null;
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__RIGHT:
return right != null;
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__OPERATOR:
return operator != OPERATOR_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (operator: ");
result.append(operator);
result.append(')');
return result.toString();
}
} //GTTwoParameterCalculationImpl

View file

@ -1,320 +0,0 @@
/**
*/
package StochasticLanguage.impl;
import StochasticLanguage.*;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EDataType;
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;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
* @generated
*/
public class StochasticLanguageFactoryImpl extends EFactoryImpl implements StochasticLanguageFactory {
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static StochasticLanguageFactory init() {
try {
StochasticLanguageFactory theStochasticLanguageFactory = (StochasticLanguageFactory) EPackage.Registry.INSTANCE
.getEFactory(StochasticLanguagePackage.eNS_URI);
if (theStochasticLanguageFactory != null) {
return theStochasticLanguageFactory;
}
} catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new StochasticLanguageFactoryImpl();
}
/**
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public StochasticLanguageFactoryImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case StochasticLanguagePackage.GT_STOCHASTIC_NODE:
return createGTStochasticNode();
case StochasticLanguagePackage.GT_ATTRIBUTE:
return createGTAttribute();
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION:
return createGTStochasticFunction();
case StochasticLanguagePackage.GT_NUMBER:
return createGTNumber();
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION:
return createGTTwoParameterCalculation();
case StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION:
return createGTOneParameterCalculation();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object createFromString(EDataType eDataType, String initialValue) {
switch (eDataType.getClassifierID()) {
case StochasticLanguagePackage.GT_STOCHASTIC_DISTRIBUTION:
return createGTStochasticDistributionFromString(eDataType, initialValue);
case StochasticLanguagePackage.GT_STOCHASTIC_RANGE:
return createGTStochasticRangeFromString(eDataType, initialValue);
case StochasticLanguagePackage.TWO_PARAMETER_OPERATOR:
return createTwoParameterOperatorFromString(eDataType, initialValue);
case StochasticLanguagePackage.ONE_PARAMETER_OPERATOR:
return createOneParameterOperatorFromString(eDataType, initialValue);
case StochasticLanguagePackage.GT_RELATION:
return createGTRelationFromString(eDataType, initialValue);
default:
throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String convertToString(EDataType eDataType, Object instanceValue) {
switch (eDataType.getClassifierID()) {
case StochasticLanguagePackage.GT_STOCHASTIC_DISTRIBUTION:
return convertGTStochasticDistributionToString(eDataType, instanceValue);
case StochasticLanguagePackage.GT_STOCHASTIC_RANGE:
return convertGTStochasticRangeToString(eDataType, instanceValue);
case StochasticLanguagePackage.TWO_PARAMETER_OPERATOR:
return convertTwoParameterOperatorToString(eDataType, instanceValue);
case StochasticLanguagePackage.ONE_PARAMETER_OPERATOR:
return convertOneParameterOperatorToString(eDataType, instanceValue);
case StochasticLanguagePackage.GT_RELATION:
return convertGTRelationToString(eDataType, instanceValue);
default:
throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTStochasticNode createGTStochasticNode() {
GTStochasticNodeImpl gtStochasticNode = new GTStochasticNodeImpl();
return gtStochasticNode;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTAttribute createGTAttribute() {
GTAttributeImpl gtAttribute = new GTAttributeImpl();
return gtAttribute;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTStochasticFunction createGTStochasticFunction() {
GTStochasticFunctionImpl gtStochasticFunction = new GTStochasticFunctionImpl();
return gtStochasticFunction;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTNumber createGTNumber() {
GTNumberImpl gtNumber = new GTNumberImpl();
return gtNumber;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTTwoParameterCalculation createGTTwoParameterCalculation() {
GTTwoParameterCalculationImpl gtTwoParameterCalculation = new GTTwoParameterCalculationImpl();
return gtTwoParameterCalculation;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTOneParameterCalculation createGTOneParameterCalculation() {
GTOneParameterCalculationImpl gtOneParameterCalculation = new GTOneParameterCalculationImpl();
return gtOneParameterCalculation;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public GTStochasticDistribution createGTStochasticDistributionFromString(EDataType eDataType, String initialValue) {
GTStochasticDistribution result = GTStochasticDistribution.get(initialValue);
if (result == null)
throw new IllegalArgumentException(
"The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String convertGTStochasticDistributionToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public GTStochasticRange createGTStochasticRangeFromString(EDataType eDataType, String initialValue) {
GTStochasticRange result = GTStochasticRange.get(initialValue);
if (result == null)
throw new IllegalArgumentException(
"The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String convertGTStochasticRangeToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public TwoParameterOperator createTwoParameterOperatorFromString(EDataType eDataType, String initialValue) {
TwoParameterOperator result = TwoParameterOperator.get(initialValue);
if (result == null)
throw new IllegalArgumentException(
"The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String convertTwoParameterOperatorToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public OneParameterOperator createOneParameterOperatorFromString(EDataType eDataType, String initialValue) {
OneParameterOperator result = OneParameterOperator.get(initialValue);
if (result == null)
throw new IllegalArgumentException(
"The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String convertOneParameterOperatorToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public GTRelation createGTRelationFromString(EDataType eDataType, String initialValue) {
GTRelation result = GTRelation.get(initialValue);
if (result == null)
throw new IllegalArgumentException(
"The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String convertGTRelationToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public StochasticLanguagePackage getStochasticLanguagePackage() {
return (StochasticLanguagePackage) getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @deprecated
* @generated
*/
@Deprecated
public static StochasticLanguagePackage getPackage() {
return StochasticLanguagePackage.eINSTANCE;
}
} //StochasticLanguageFactoryImpl

View file

@ -1,686 +0,0 @@
/**
*/
package StochasticLanguage.impl;
import IBeXLanguage.IBeXLanguagePackage;
import IBeXLanguage.impl.IBeXLanguagePackageImpl;
import StochasticLanguage.GTArithmetics;
import StochasticLanguage.GTAttribute;
import StochasticLanguage.GTNumber;
import StochasticLanguage.GTOneParameterCalculation;
import StochasticLanguage.GTRelation;
import StochasticLanguage.GTStochasticDistribution;
import StochasticLanguage.GTStochasticFunction;
import StochasticLanguage.GTStochasticNamedElement;
import StochasticLanguage.GTStochasticNode;
import StochasticLanguage.GTStochasticRange;
import StochasticLanguage.GTTwoParameterCalculation;
import StochasticLanguage.OneParameterOperator;
import StochasticLanguage.StochasticLanguageFactory;
import StochasticLanguage.StochasticLanguagePackage;
import StochasticLanguage.TwoParameterOperator;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Package</b>.
* <!-- end-user-doc -->
* @generated
*/
public class StochasticLanguagePackageImpl extends EPackageImpl implements StochasticLanguagePackage {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass gtStochasticNamedElementEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass gtStochasticNodeEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass gtAttributeEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass gtStochasticFunctionEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass gtNumberEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass gtArithmeticsEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass gtTwoParameterCalculationEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass gtOneParameterCalculationEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EEnum gtStochasticDistributionEEnum = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EEnum gtStochasticRangeEEnum = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EEnum twoParameterOperatorEEnum = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EEnum oneParameterOperatorEEnum = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EEnum gtRelationEEnum = 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 StochasticLanguage.StochasticLanguagePackage#eNS_URI
* @see #init()
* @generated
*/
private StochasticLanguagePackageImpl() {
super(eNS_URI, StochasticLanguageFactory.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 StochasticLanguagePackage#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 StochasticLanguagePackage init() {
if (isInited)
return (StochasticLanguagePackage) EPackage.Registry.INSTANCE
.getEPackage(StochasticLanguagePackage.eNS_URI);
// Obtain or create and register package
Object registeredStochasticLanguagePackage = EPackage.Registry.INSTANCE.get(eNS_URI);
StochasticLanguagePackageImpl theStochasticLanguagePackage = registeredStochasticLanguagePackage instanceof StochasticLanguagePackageImpl
? (StochasticLanguagePackageImpl) registeredStochasticLanguagePackage
: new StochasticLanguagePackageImpl();
isInited = true;
// Obtain or create and register interdependencies
Object registeredPackage = EPackage.Registry.INSTANCE.getEPackage(IBeXLanguagePackage.eNS_URI);
IBeXLanguagePackageImpl theIBeXLanguagePackage = (IBeXLanguagePackageImpl) (registeredPackage instanceof IBeXLanguagePackageImpl
? registeredPackage
: IBeXLanguagePackage.eINSTANCE);
// Create package meta-data objects
theStochasticLanguagePackage.createPackageContents();
theIBeXLanguagePackage.createPackageContents();
// Initialize created meta-data
theStochasticLanguagePackage.initializePackageContents();
theIBeXLanguagePackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
theStochasticLanguagePackage.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(StochasticLanguagePackage.eNS_URI, theStochasticLanguagePackage);
return theStochasticLanguagePackage;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EClass getGTStochasticNamedElement() {
return gtStochasticNamedElementEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EAttribute getGTStochasticNamedElement_Name() {
return (EAttribute) gtStochasticNamedElementEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EClass getGTStochasticNode() {
return gtStochasticNodeEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EReference getGTStochasticNode_Type() {
return (EReference) gtStochasticNodeEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EClass getGTAttribute() {
return gtAttributeEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EReference getGTAttribute_Attribute() {
return (EReference) gtAttributeEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EAttribute getGTAttribute_Negative() {
return (EAttribute) gtAttributeEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EClass getGTStochasticFunction() {
return gtStochasticFunctionEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EReference getGTStochasticFunction_Mean() {
return (EReference) gtStochasticFunctionEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EReference getGTStochasticFunction_Sd() {
return (EReference) gtStochasticFunctionEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EAttribute getGTStochasticFunction_Distribution() {
return (EAttribute) gtStochasticFunctionEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EClass getGTNumber() {
return gtNumberEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EAttribute getGTNumber_Number() {
return (EAttribute) gtNumberEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EClass getGTArithmetics() {
return gtArithmeticsEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EClass getGTTwoParameterCalculation() {
return gtTwoParameterCalculationEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EReference getGTTwoParameterCalculation_Left() {
return (EReference) gtTwoParameterCalculationEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EReference getGTTwoParameterCalculation_Right() {
return (EReference) gtTwoParameterCalculationEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EAttribute getGTTwoParameterCalculation_Operator() {
return (EAttribute) gtTwoParameterCalculationEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EClass getGTOneParameterCalculation() {
return gtOneParameterCalculationEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EReference getGTOneParameterCalculation_Value() {
return (EReference) gtOneParameterCalculationEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EAttribute getGTOneParameterCalculation_Operator() {
return (EAttribute) gtOneParameterCalculationEClass.getEStructuralFeatures().get(1);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EAttribute getGTOneParameterCalculation_Negative() {
return (EAttribute) gtOneParameterCalculationEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EEnum getGTStochasticDistribution() {
return gtStochasticDistributionEEnum;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EEnum getGTStochasticRange() {
return gtStochasticRangeEEnum;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EEnum getTwoParameterOperator() {
return twoParameterOperatorEEnum;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EEnum getOneParameterOperator() {
return oneParameterOperatorEEnum;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EEnum getGTRelation() {
return gtRelationEEnum;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public StochasticLanguageFactory getStochasticLanguageFactory() {
return (StochasticLanguageFactory) 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
gtStochasticNamedElementEClass = createEClass(GT_STOCHASTIC_NAMED_ELEMENT);
createEAttribute(gtStochasticNamedElementEClass, GT_STOCHASTIC_NAMED_ELEMENT__NAME);
gtStochasticNodeEClass = createEClass(GT_STOCHASTIC_NODE);
createEReference(gtStochasticNodeEClass, GT_STOCHASTIC_NODE__TYPE);
gtAttributeEClass = createEClass(GT_ATTRIBUTE);
createEReference(gtAttributeEClass, GT_ATTRIBUTE__ATTRIBUTE);
createEAttribute(gtAttributeEClass, GT_ATTRIBUTE__NEGATIVE);
gtStochasticFunctionEClass = createEClass(GT_STOCHASTIC_FUNCTION);
createEReference(gtStochasticFunctionEClass, GT_STOCHASTIC_FUNCTION__MEAN);
createEReference(gtStochasticFunctionEClass, GT_STOCHASTIC_FUNCTION__SD);
createEAttribute(gtStochasticFunctionEClass, GT_STOCHASTIC_FUNCTION__DISTRIBUTION);
gtNumberEClass = createEClass(GT_NUMBER);
createEAttribute(gtNumberEClass, GT_NUMBER__NUMBER);
gtArithmeticsEClass = createEClass(GT_ARITHMETICS);
gtTwoParameterCalculationEClass = createEClass(GT_TWO_PARAMETER_CALCULATION);
createEReference(gtTwoParameterCalculationEClass, GT_TWO_PARAMETER_CALCULATION__LEFT);
createEReference(gtTwoParameterCalculationEClass, GT_TWO_PARAMETER_CALCULATION__RIGHT);
createEAttribute(gtTwoParameterCalculationEClass, GT_TWO_PARAMETER_CALCULATION__OPERATOR);
gtOneParameterCalculationEClass = createEClass(GT_ONE_PARAMETER_CALCULATION);
createEReference(gtOneParameterCalculationEClass, GT_ONE_PARAMETER_CALCULATION__VALUE);
createEAttribute(gtOneParameterCalculationEClass, GT_ONE_PARAMETER_CALCULATION__OPERATOR);
createEAttribute(gtOneParameterCalculationEClass, GT_ONE_PARAMETER_CALCULATION__NEGATIVE);
// Create enums
gtStochasticDistributionEEnum = createEEnum(GT_STOCHASTIC_DISTRIBUTION);
gtStochasticRangeEEnum = createEEnum(GT_STOCHASTIC_RANGE);
twoParameterOperatorEEnum = createEEnum(TWO_PARAMETER_OPERATOR);
oneParameterOperatorEEnum = createEEnum(ONE_PARAMETER_OPERATOR);
gtRelationEEnum = createEEnum(GT_RELATION);
}
/**
* <!-- 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);
// Create type parameters
// Set bounds for type parameters
// Add supertypes to classes
gtStochasticNodeEClass.getESuperTypes().add(this.getGTStochasticNamedElement());
gtAttributeEClass.getESuperTypes().add(this.getGTStochasticNode());
gtAttributeEClass.getESuperTypes().add(this.getGTArithmetics());
gtNumberEClass.getESuperTypes().add(this.getGTArithmetics());
gtTwoParameterCalculationEClass.getESuperTypes().add(this.getGTArithmetics());
gtOneParameterCalculationEClass.getESuperTypes().add(this.getGTArithmetics());
// Initialize classes, features, and operations; add parameters
initEClass(gtStochasticNamedElementEClass, GTStochasticNamedElement.class, "GTStochasticNamedElement",
IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getGTStochasticNamedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1,
GTStochasticNamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(gtStochasticNodeEClass, GTStochasticNode.class, "GTStochasticNode", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
initEReference(getGTStochasticNode_Type(), ecorePackage.getEClass(), null, "type", null, 0, 1,
GTStochasticNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(gtAttributeEClass, GTAttribute.class, "GTAttribute", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
initEReference(getGTAttribute_Attribute(), ecorePackage.getEAttribute(), null, "attribute", null, 0, 1,
GTAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getGTAttribute_Negative(), ecorePackage.getEBoolean(), "negative", null, 0, 1, GTAttribute.class,
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(gtStochasticFunctionEClass, GTStochasticFunction.class, "GTStochasticFunction", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getGTStochasticFunction_Mean(), this.getGTArithmetics(), null, "mean", null, 0, 1,
GTStochasticFunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getGTStochasticFunction_Sd(), this.getGTArithmetics(), null, "sd", null, 0, 1,
GTStochasticFunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getGTStochasticFunction_Distribution(), this.getGTStochasticDistribution(), "distribution", null,
0, 1, GTStochasticFunction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(gtNumberEClass, GTNumber.class, "GTNumber", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getGTNumber_Number(), ecorePackage.getEDouble(), "number", null, 0, 1, GTNumber.class,
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(gtArithmeticsEClass, GTArithmetics.class, "GTArithmetics", IS_ABSTRACT, IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
initEClass(gtTwoParameterCalculationEClass, GTTwoParameterCalculation.class, "GTTwoParameterCalculation",
!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getGTTwoParameterCalculation_Left(), this.getGTArithmetics(), null, "left", null, 0, 1,
GTTwoParameterCalculation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getGTTwoParameterCalculation_Right(), this.getGTArithmetics(), null, "right", null, 0, 1,
GTTwoParameterCalculation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getGTTwoParameterCalculation_Operator(), this.getTwoParameterOperator(), "operator", null, 0, 1,
GTTwoParameterCalculation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(gtOneParameterCalculationEClass, GTOneParameterCalculation.class, "GTOneParameterCalculation",
!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getGTOneParameterCalculation_Value(), this.getGTArithmetics(), null, "value", null, 0, 1,
GTOneParameterCalculation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getGTOneParameterCalculation_Operator(), this.getOneParameterOperator(), "operator", null, 0, 1,
GTOneParameterCalculation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getGTOneParameterCalculation_Negative(), ecorePackage.getEBoolean(), "negative", null, 0, 1,
GTOneParameterCalculation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
// Initialize enums and add enum literals
initEEnum(gtStochasticDistributionEEnum, GTStochasticDistribution.class, "GTStochasticDistribution");
addEEnumLiteral(gtStochasticDistributionEEnum, GTStochasticDistribution.NORMAL);
addEEnumLiteral(gtStochasticDistributionEEnum, GTStochasticDistribution.UNIFORM);
addEEnumLiteral(gtStochasticDistributionEEnum, GTStochasticDistribution.EXPONENTIAL);
addEEnumLiteral(gtStochasticDistributionEEnum, GTStochasticDistribution.STATIC);
initEEnum(gtStochasticRangeEEnum, GTStochasticRange.class, "GTStochasticRange");
addEEnumLiteral(gtStochasticRangeEEnum, GTStochasticRange.NEUTRAL);
addEEnumLiteral(gtStochasticRangeEEnum, GTStochasticRange.POSITIVE);
addEEnumLiteral(gtStochasticRangeEEnum, GTStochasticRange.NEGATIVE);
initEEnum(twoParameterOperatorEEnum, TwoParameterOperator.class, "TwoParameterOperator");
addEEnumLiteral(twoParameterOperatorEEnum, TwoParameterOperator.ADDITION);
addEEnumLiteral(twoParameterOperatorEEnum, TwoParameterOperator.MULTIPLICATION);
addEEnumLiteral(twoParameterOperatorEEnum, TwoParameterOperator.DIVISION);
addEEnumLiteral(twoParameterOperatorEEnum, TwoParameterOperator.MODULO);
addEEnumLiteral(twoParameterOperatorEEnum, TwoParameterOperator.EXPONENTIAL);
addEEnumLiteral(twoParameterOperatorEEnum, TwoParameterOperator.SUBTRACTION);
initEEnum(oneParameterOperatorEEnum, OneParameterOperator.class, "OneParameterOperator");
addEEnumLiteral(oneParameterOperatorEEnum, OneParameterOperator.ROOT);
addEEnumLiteral(oneParameterOperatorEEnum, OneParameterOperator.ABSOLUTE);
addEEnumLiteral(oneParameterOperatorEEnum, OneParameterOperator.SIN);
addEEnumLiteral(oneParameterOperatorEEnum, OneParameterOperator.COS);
addEEnumLiteral(oneParameterOperatorEEnum, OneParameterOperator.TAN);
addEEnumLiteral(oneParameterOperatorEEnum, OneParameterOperator.EEXPONENTIAL);
addEEnumLiteral(oneParameterOperatorEEnum, OneParameterOperator.LOGARITHMUS);
addEEnumLiteral(oneParameterOperatorEEnum, OneParameterOperator.NATLOG);
addEEnumLiteral(oneParameterOperatorEEnum, OneParameterOperator.BRACKET);
initEEnum(gtRelationEEnum, GTRelation.class, "GTRelation");
addEEnumLiteral(gtRelationEEnum, GTRelation.GREATER_OR_EQUAL);
addEEnumLiteral(gtRelationEEnum, GTRelation.GREATER);
addEEnumLiteral(gtRelationEEnum, GTRelation.EQUAL);
addEEnumLiteral(gtRelationEEnum, GTRelation.UNEQUAL);
addEEnumLiteral(gtRelationEEnum, GTRelation.SMALLER_OR_EQUAL);
addEEnumLiteral(gtRelationEEnum, GTRelation.SMALLER);
// Create resource
createResource(eNS_URI);
}
} //StochasticLanguagePackageImpl

View file

@ -1,252 +0,0 @@
/**
*/
package StochasticLanguage.util;
import StochasticLanguage.*;
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;
/**
* <!-- 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 StochasticLanguage.StochasticLanguagePackage
* @generated
*/
public class StochasticLanguageAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static StochasticLanguagePackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public StochasticLanguageAdapterFactory() {
if (modelPackage == null) {
modelPackage = StochasticLanguagePackage.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 StochasticLanguageSwitch<Adapter> modelSwitch = new StochasticLanguageSwitch<Adapter>() {
@Override
public Adapter caseGTStochasticNamedElement(GTStochasticNamedElement object) {
return createGTStochasticNamedElementAdapter();
}
@Override
public Adapter caseGTStochasticNode(GTStochasticNode object) {
return createGTStochasticNodeAdapter();
}
@Override
public Adapter caseGTAttribute(GTAttribute object) {
return createGTAttributeAdapter();
}
@Override
public Adapter caseGTStochasticFunction(GTStochasticFunction object) {
return createGTStochasticFunctionAdapter();
}
@Override
public Adapter caseGTNumber(GTNumber object) {
return createGTNumberAdapter();
}
@Override
public Adapter caseGTArithmetics(GTArithmetics object) {
return createGTArithmeticsAdapter();
}
@Override
public Adapter caseGTTwoParameterCalculation(GTTwoParameterCalculation object) {
return createGTTwoParameterCalculationAdapter();
}
@Override
public Adapter caseGTOneParameterCalculation(GTOneParameterCalculation object) {
return createGTOneParameterCalculationAdapter();
}
@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 StochasticLanguage.GTStochasticNamedElement <em>GT Stochastic Named Element</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 StochasticLanguage.GTStochasticNamedElement
* @generated
*/
public Adapter createGTStochasticNamedElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link StochasticLanguage.GTStochasticNode <em>GT Stochastic Node</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 StochasticLanguage.GTStochasticNode
* @generated
*/
public Adapter createGTStochasticNodeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link StochasticLanguage.GTAttribute <em>GT Attribute</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 StochasticLanguage.GTAttribute
* @generated
*/
public Adapter createGTAttributeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link StochasticLanguage.GTStochasticFunction <em>GT Stochastic Function</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 StochasticLanguage.GTStochasticFunction
* @generated
*/
public Adapter createGTStochasticFunctionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link StochasticLanguage.GTNumber <em>GT Number</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 StochasticLanguage.GTNumber
* @generated
*/
public Adapter createGTNumberAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link StochasticLanguage.GTArithmetics <em>GT Arithmetics</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 StochasticLanguage.GTArithmetics
* @generated
*/
public Adapter createGTArithmeticsAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link StochasticLanguage.GTTwoParameterCalculation <em>GT Two Parameter Calculation</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 StochasticLanguage.GTTwoParameterCalculation
* @generated
*/
public Adapter createGTTwoParameterCalculationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link StochasticLanguage.GTOneParameterCalculation <em>GT One Parameter Calculation</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 StochasticLanguage.GTOneParameterCalculation
* @generated
*/
public Adapter createGTOneParameterCalculationAdapter() {
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;
}
} //StochasticLanguageAdapterFactory

View file

@ -1,280 +0,0 @@
/**
*/
package StochasticLanguage.util;
import StochasticLanguage.*;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
/**
* <!-- 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 StochasticLanguage.StochasticLanguagePackage
* @generated
*/
public class StochasticLanguageSwitch<T> extends Switch<T> {
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static StochasticLanguagePackage modelPackage;
/**
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public StochasticLanguageSwitch() {
if (modelPackage == null) {
modelPackage = StochasticLanguagePackage.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 StochasticLanguagePackage.GT_STOCHASTIC_NAMED_ELEMENT: {
GTStochasticNamedElement gtStochasticNamedElement = (GTStochasticNamedElement) theEObject;
T result = caseGTStochasticNamedElement(gtStochasticNamedElement);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case StochasticLanguagePackage.GT_STOCHASTIC_NODE: {
GTStochasticNode gtStochasticNode = (GTStochasticNode) theEObject;
T result = caseGTStochasticNode(gtStochasticNode);
if (result == null)
result = caseGTStochasticNamedElement(gtStochasticNode);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case StochasticLanguagePackage.GT_ATTRIBUTE: {
GTAttribute gtAttribute = (GTAttribute) theEObject;
T result = caseGTAttribute(gtAttribute);
if (result == null)
result = caseGTStochasticNode(gtAttribute);
if (result == null)
result = caseGTArithmetics(gtAttribute);
if (result == null)
result = caseGTStochasticNamedElement(gtAttribute);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION: {
GTStochasticFunction gtStochasticFunction = (GTStochasticFunction) theEObject;
T result = caseGTStochasticFunction(gtStochasticFunction);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case StochasticLanguagePackage.GT_NUMBER: {
GTNumber gtNumber = (GTNumber) theEObject;
T result = caseGTNumber(gtNumber);
if (result == null)
result = caseGTArithmetics(gtNumber);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case StochasticLanguagePackage.GT_ARITHMETICS: {
GTArithmetics gtArithmetics = (GTArithmetics) theEObject;
T result = caseGTArithmetics(gtArithmetics);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION: {
GTTwoParameterCalculation gtTwoParameterCalculation = (GTTwoParameterCalculation) theEObject;
T result = caseGTTwoParameterCalculation(gtTwoParameterCalculation);
if (result == null)
result = caseGTArithmetics(gtTwoParameterCalculation);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION: {
GTOneParameterCalculation gtOneParameterCalculation = (GTOneParameterCalculation) theEObject;
T result = caseGTOneParameterCalculation(gtOneParameterCalculation);
if (result == null)
result = caseGTArithmetics(gtOneParameterCalculation);
if (result == null)
result = defaultCase(theEObject);
return result;
}
default:
return defaultCase(theEObject);
}
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT Stochastic Named Element</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>GT Stochastic Named Element</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTStochasticNamedElement(GTStochasticNamedElement object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT Stochastic Node</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>GT Stochastic Node</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTStochasticNode(GTStochasticNode object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT Attribute</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>GT Attribute</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTAttribute(GTAttribute object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT Stochastic Function</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>GT Stochastic Function</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTStochasticFunction(GTStochasticFunction object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT Number</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>GT Number</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTNumber(GTNumber object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT Arithmetics</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>GT Arithmetics</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTArithmetics(GTArithmetics object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT Two Parameter Calculation</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>GT Two Parameter Calculation</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTTwoParameterCalculation(GTTwoParameterCalculation object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT One Parameter Calculation</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>GT One Parameter Calculation</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTOneParameterCalculation(GTOneParameterCalculation 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;
}
} //StochasticLanguageSwitch

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<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 exported="true" kind="lib" path="commons-math3-3.6.1.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.emoflon.ibex.dependencies</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.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

View file

@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8

View file

@ -0,0 +1,83 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: IBeX::Dependencies
Bundle-SymbolicName: org.emoflon.ibex.dependencies
Bundle-Version: 1.0.0
Bundle-ClassPath: commons-math3-3.6.1.jar
Export-Package: org.apache.commons.math3,
org.apache.commons.math3.analysis,
org.apache.commons.math3.analysis.differentiation,
org.apache.commons.math3.analysis.function,
org.apache.commons.math3.analysis.integration,
org.apache.commons.math3.analysis.integration.gauss,
org.apache.commons.math3.analysis.interpolation,
org.apache.commons.math3.analysis.polynomials,
org.apache.commons.math3.analysis.solvers,
org.apache.commons.math3.complex,
org.apache.commons.math3.dfp,
org.apache.commons.math3.distribution,
org.apache.commons.math3.distribution.fitting,
org.apache.commons.math3.exception,
org.apache.commons.math3.exception.util,
org.apache.commons.math3.filter,
org.apache.commons.math3.fitting,
org.apache.commons.math3.fitting.leastsquares,
org.apache.commons.math3.fraction,
org.apache.commons.math3.genetics,
org.apache.commons.math3.geometry,
org.apache.commons.math3.geometry.enclosing,
org.apache.commons.math3.geometry.euclidean.oned,
org.apache.commons.math3.geometry.euclidean.threed,
org.apache.commons.math3.geometry.euclidean.twod,
org.apache.commons.math3.geometry.euclidean.twod.hull,
org.apache.commons.math3.geometry.hull,
org.apache.commons.math3.geometry.partitioning,
org.apache.commons.math3.geometry.partitioning.utilities,
org.apache.commons.math3.geometry.spherical.oned,
org.apache.commons.math3.geometry.spherical.twod,
org.apache.commons.math3.linear,
org.apache.commons.math3.ml.clustering,
org.apache.commons.math3.ml.clustering.evaluation,
org.apache.commons.math3.ml.distance,
org.apache.commons.math3.ml.neuralnet,
org.apache.commons.math3.ml.neuralnet.oned,
org.apache.commons.math3.ml.neuralnet.sofm,
org.apache.commons.math3.ml.neuralnet.sofm.util,
org.apache.commons.math3.ml.neuralnet.twod,
org.apache.commons.math3.ml.neuralnet.twod.util,
org.apache.commons.math3.ode,
org.apache.commons.math3.ode.events,
org.apache.commons.math3.ode.nonstiff,
org.apache.commons.math3.ode.sampling,
org.apache.commons.math3.optim,
org.apache.commons.math3.optim.linear,
org.apache.commons.math3.optim.nonlinear.scalar,
org.apache.commons.math3.optim.nonlinear.scalar.gradient,
org.apache.commons.math3.optim.nonlinear.scalar.noderiv,
org.apache.commons.math3.optim.nonlinear.vector,
org.apache.commons.math3.optim.nonlinear.vector.jacobian,
org.apache.commons.math3.optim.univariate,
org.apache.commons.math3.optimization,
org.apache.commons.math3.optimization.direct,
org.apache.commons.math3.optimization.fitting,
org.apache.commons.math3.optimization.general,
org.apache.commons.math3.optimization.linear,
org.apache.commons.math3.optimization.univariate,
org.apache.commons.math3.primes,
org.apache.commons.math3.random,
org.apache.commons.math3.special,
org.apache.commons.math3.stat,
org.apache.commons.math3.stat.clustering,
org.apache.commons.math3.stat.correlation,
org.apache.commons.math3.stat.descriptive,
org.apache.commons.math3.stat.descriptive.moment,
org.apache.commons.math3.stat.descriptive.rank,
org.apache.commons.math3.stat.descriptive.summary,
org.apache.commons.math3.stat.inference,
org.apache.commons.math3.stat.interval,
org.apache.commons.math3.stat.ranking,
org.apache.commons.math3.stat.regression,
org.apache.commons.math3.transform,
org.apache.commons.math3.util
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Automatic-Module-Name: org.emoflon.ibex.dependencies

View file

@ -0,0 +1,2 @@
bin.includes = META-INF/,\
commons-math3-3.6.1.jar

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src-gen"/>
<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,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.emoflon.ibex.gt.sgtpatternmodel</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.sirius.nature.modelingproject</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
</natures>
</projectDescription>

View file

@ -0,0 +1,16 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.emoflon.ibex.gt.sgtpatternmodel;singleton:=true
Automatic-Module-Name: org.emoflon.ibex.gt.sgtpatternmodel
Bundle-Version: 0.1.0.qualifier
Bundle-ClassPath: .
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Export-Package: org.emoflon.ibex.gt.SGTPatternModel,
org.emoflon.ibex.gt.SGTPatternModel.impl,
org.emoflon.ibex.gt.SGTPatternModel.util
Require-Bundle: org.eclipse.emf.ecore;visibility:=reexport,
org.eclipse.core.runtime
Bundle-ActivationPolicy: lazy

View file

@ -0,0 +1,10 @@
#
bin.includes = .,\
model/,\
META-INF/,\
plugin.xml,\
plugin.properties
jars.compile.order = .
source.. = src-gen/
output.. = bin/

View file

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" xmlns:description_1="http://www.eclipse.org/sirius/diagram/description/1.1.0" xmlns:diagram="http://www.eclipse.org/sirius/diagram/1.1.0" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:viewpoint="http://www.eclipse.org/sirius/1.1.0" xsi:schemaLocation="http://www.eclipse.org/sirius/description/1.1.0 http://www.eclipse.org/sirius/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description">
<viewpoint:DAnalysis uid="_VweekIiAEeq0ZuxKrX_DgA" selectedViews="_V8L_UIiAEeq0ZuxKrX_DgA" version="14.3.0.201909031200">
<semanticResources>SGTPatternModel.ecore</semanticResources>
<ownedViews xmi:type="viewpoint:DView" uid="_V8L_UIiAEeq0ZuxKrX_DgA">
<viewpoint xmi:type="description:Viewpoint" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']"/>
<ownedRepresentationDescriptors xmi:type="viewpoint:DRepresentationDescriptor" uid="_WApBgIiAEeq0ZuxKrX_DgA" name="SGTPatternModel" repPath="#_V94ocIiAEeq0ZuxKrX_DgA" changeId="25830638-316b-42dd-9e5a-df216958b2c6">
<description xmi:type="description_1:DiagramDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']"/>
<target xmi:type="ecore:EPackage" href="SGTPatternModel.ecore#/"/>
</ownedRepresentationDescriptors>
</ownedViews>
</viewpoint:DAnalysis>
<diagram:DSemanticDiagram uid="_V94ocIiAEeq0ZuxKrX_DgA">
<ownedAnnotationEntries xmi:type="description:AnnotationEntry" uid="_WAkJAIiAEeq0ZuxKrX_DgA" source="DANNOTATION_CUSTOMIZATION_KEY">
<data xmi:type="diagram:ComputedStyleDescriptionRegistry" uid="_WAkwEIiAEeq0ZuxKrX_DgA"/>
</ownedAnnotationEntries>
<ownedAnnotationEntries xmi:type="description:AnnotationEntry" uid="_WBDRMIiAEeq0ZuxKrX_DgA" source="GMF_DIAGRAMS">
<data xmi:type="notation:Diagram" xmi:id="_WBDRMYiAEeq0ZuxKrX_DgA" type="Sirius" element="_V94ocIiAEeq0ZuxKrX_DgA" measurementUnit="Pixel">
<styles xmi:type="notation:DiagramStyle" xmi:id="_WBDRMoiAEeq0ZuxKrX_DgA"/>
</data>
</ownedAnnotationEntries>
<description xmi:type="description_1:DiagramDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']"/>
<filterVariableHistory xmi:type="diagram:FilterVariableHistory" uid="_V-Y-wIiAEeq0ZuxKrX_DgA"/>
<activatedLayers xmi:type="description_1:Layer" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer"/>
<activatedLayers xmi:type="description_1:AdditionalLayer" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@additionalLayers[name='Package']"/>
<activatedLayers xmi:type="description_1:AdditionalLayer" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@additionalLayers[name='Validation']"/>
<target xmi:type="ecore:EPackage" href="SGTPatternModel.ecore#/"/>
</diagram:DSemanticDiagram>
</xmi:XMI>

View file

@ -1,105 +1,106 @@
<?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="StochasticLanguage" nsURI="platform:/resource/org.emoflon.ibex.common/model/StochasticExtension.ecore"
nsPrefix="StochasticLangugae">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Model for the Stochastic Extension of the EMoflon API."/>
</eAnnotations>
<eClassifiers xsi:type="ecore:EClass" name="GTStochasticNamedElement" abstract="true">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Any element in the internal model which has a name should inherit form this class."/>
</eAnnotations>
<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="GTStochasticNode" eSuperTypes="#//GTStochasticNamedElement">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="A typed node can reference other nodes via edges."/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EClass"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="GTAttribute" eSuperTypes="#//GTStochasticNode #//GTArithmetics">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Attributes can be used as parameters for stochastic functions."/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="attribute" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EAttribute"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="negative" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="GTStochasticFunction">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="A stochastic function can be used to calculate probabilities or generate values."/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="mean" eType="#//GTArithmetics"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="sd" eType="#//GTArithmetics"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="distribution" eType="#//GTStochasticDistribution"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="GTStochasticDistribution">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="The stochastic distribution type. WARNING: Literals need to be the same as the GT.xtext distribution type"/>
</eAnnotations>
<eLiterals name="NORMAL"/>
<eLiterals name="UNIFORM" value="1"/>
<eLiterals name="EXPONENTIAL" value="2"/>
<eLiterals name="STATIC" value="3"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="GTStochasticRange">
<eLiterals name="NEUTRAL"/>
<eLiterals name="POSITIVE" value="1"/>
<eLiterals name="NEGATIVE" value="2"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="GTNumber" eSuperTypes="#//GTArithmetics">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="The value of the parameter if it has a static value"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="number" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="GTArithmetics" abstract="true" interface="true">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="GTTwoParameterCalculation" eSuperTypes="#//GTArithmetics">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="left" eType="#//GTArithmetics"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="right" eType="#//GTArithmetics"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="operator" eType="#//TwoParameterOperator"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="GTOneParameterCalculation" eSuperTypes="#//GTArithmetics">
<eStructuralFeatures xsi:type="ecore:EReference" name="value" eType="#//GTArithmetics"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="operator" eType="#//OneParameterOperator"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="negative" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="TwoParameterOperator">
<eLiterals name="ADDITION"/>
<eLiterals name="MULTIPLICATION" value="1"/>
<eLiterals name="DIVISION" value="2"/>
<eLiterals name="MODULO" value="3"/>
<eLiterals name="EXPONENTIAL" value="4"/>
<eLiterals name="SUBTRACTION" value="5"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="OneParameterOperator">
<eLiterals name="ROOT"/>
<eLiterals name="ABSOLUTE" value="1"/>
<eLiterals name="SIN" value="2"/>
<eLiterals name="COS" value="3"/>
<eLiterals name="TAN" value="4"/>
<eLiterals name="E_EXPONENTIAL" value="5"/>
<eLiterals name="LOGARITHMUS" value="6"/>
<eLiterals name="NATLOG" value="7"/>
<eLiterals name="BRACKET" value="8"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="GTRelation">
<eLiterals name="GREATER_OR_EQUAL"/>
<eLiterals name="GREATER" value="1"/>
<eLiterals name="EQUAL" value="2"/>
<eLiterals name="UNEQUAL" value="3"/>
<eLiterals name="SMALLER_OR_EQUAL" value="4"/>
<eLiterals name="SMALLER" value="5"/>
</eClassifiers>
</ecore:EPackage>
<?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="SGTPatternModel" nsURI="platform:/resource/org.emoflon.ibex.gt.sgtpatternmodel/model/SGTPatternModel.ecore"
nsPrefix="sgtpatternmodel">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Model for the Stochastic Extension of the EMoflon API."/>
</eAnnotations>
<eClassifiers xsi:type="ecore:EClass" name="GTStochasticNamedElement" abstract="true">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Any element in the internal model which has a name should inherit form this class."/>
</eAnnotations>
<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="GTStochasticNode" eSuperTypes="#//GTStochasticNamedElement">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="A typed node can reference other nodes via edges."/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EClass"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="GTAttribute" eSuperTypes="#//GTStochasticNode #//GTArithmetics">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Attributes can be used as parameters for stochastic functions."/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="attribute" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EAttribute"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="negative" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="GTStochasticFunction">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="A stochastic function can be used to calculate probabilities or generate values."/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="mean" eType="#//GTArithmetics"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="sd" eType="#//GTArithmetics"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="distribution" eType="#//GTStochasticDistribution"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="GTStochasticDistribution">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="The stochastic distribution type. WARNING: Literals need to be the same as the GT.xtext distribution type"/>
</eAnnotations>
<eLiterals name="NORMAL"/>
<eLiterals name="UNIFORM" value="1"/>
<eLiterals name="EXPONENTIAL" value="2"/>
<eLiterals name="STATIC" value="3"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="GTStochasticRange">
<eLiterals name="NEUTRAL"/>
<eLiterals name="POSITIVE" value="1"/>
<eLiterals name="NEGATIVE" value="2"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="GTNumber" eSuperTypes="#//GTArithmetics">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="The value of the parameter if it has a static value"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="number" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="GTArithmetics" abstract="true" interface="true">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="GTTwoParameterCalculation" eSuperTypes="#//GTArithmetics">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="left" eType="#//GTArithmetics"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="right" eType="#//GTArithmetics"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="operator" eType="#//TwoParameterOperator"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="GTOneParameterCalculation" eSuperTypes="#//GTArithmetics">
<eStructuralFeatures xsi:type="ecore:EReference" name="value" eType="#//GTArithmetics"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="operator" eType="#//OneParameterOperator"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="negative" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="TwoParameterOperator">
<eLiterals name="ADDITION"/>
<eLiterals name="MULTIPLICATION" value="1"/>
<eLiterals name="DIVISION" value="2"/>
<eLiterals name="MODULO" value="3"/>
<eLiterals name="EXPONENTIAL" value="4"/>
<eLiterals name="SUBTRACTION" value="5"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="OneParameterOperator">
<eLiterals name="ROOT"/>
<eLiterals name="ABSOLUTE" value="1"/>
<eLiterals name="SIN" value="2"/>
<eLiterals name="COS" value="3"/>
<eLiterals name="TAN" value="4"/>
<eLiterals name="E_EXPONENTIAL" value="5"/>
<eLiterals name="LOGARITHMUS" value="6"/>
<eLiterals name="NATLOG" value="7"/>
<eLiterals name="BRACKET" value="8"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="GTRelation">
<eLiterals name="GREATER_OR_EQUAL"/>
<eLiterals name="GREATER" value="1"/>
<eLiterals name="EQUAL" value="2"/>
<eLiterals name="UNEQUAL" value="3"/>
<eLiterals name="SMALLER_OR_EQUAL" value="4"/>
<eLiterals name="SMALLER" value="5"/>
</eClassifiers>
</ecore:EPackage>

View file

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?>
<genmodel:GenModel 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" xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel"
modelDirectory="/org.emoflon.ibex.gt.sgtpatternmodel/src-gen" creationIcons="false"
editDirectory="/org.emoflon.ibex.gt.sgtpatternmodel.edit/src-gen" editorDirectory="/org.emoflon.ibex.gt.sgtpatternmodel.editor/src-gen"
modelPluginID="org.emoflon.ibex.gt.sgtpatternmodel" modelName="SGTPatternModel"
rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" codeFormatting="true"
importerID="org.eclipse.emf.importer.ecore" complianceLevel="8.0" copyrightFields="false"
operationReflection="true" importOrganizing="true">
<foreignModel>SGTPatternModel.ecore</foreignModel>
<testsDirectory xsi:nil="true"/>
<genPackages prefix="SGTPatternModel" basePackage="org.emoflon.ibex.gt" disposableProviderFactory="true"
ecorePackage="SGTPatternModel.ecore#/">
<genEnums typeSafeEnumCompatible="false" ecoreEnum="SGTPatternModel.ecore#//GTStochasticDistribution">
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//GTStochasticDistribution/NORMAL"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//GTStochasticDistribution/UNIFORM"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//GTStochasticDistribution/EXPONENTIAL"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//GTStochasticDistribution/STATIC"/>
</genEnums>
<genEnums typeSafeEnumCompatible="false" ecoreEnum="SGTPatternModel.ecore#//GTStochasticRange">
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//GTStochasticRange/NEUTRAL"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//GTStochasticRange/POSITIVE"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//GTStochasticRange/NEGATIVE"/>
</genEnums>
<genEnums typeSafeEnumCompatible="false" ecoreEnum="SGTPatternModel.ecore#//TwoParameterOperator">
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//TwoParameterOperator/ADDITION"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//TwoParameterOperator/MULTIPLICATION"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//TwoParameterOperator/DIVISION"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//TwoParameterOperator/MODULO"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//TwoParameterOperator/EXPONENTIAL"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//TwoParameterOperator/SUBTRACTION"/>
</genEnums>
<genEnums typeSafeEnumCompatible="false" ecoreEnum="SGTPatternModel.ecore#//OneParameterOperator">
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//OneParameterOperator/ROOT"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//OneParameterOperator/ABSOLUTE"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//OneParameterOperator/SIN"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//OneParameterOperator/COS"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//OneParameterOperator/TAN"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//OneParameterOperator/E_EXPONENTIAL"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//OneParameterOperator/LOGARITHMUS"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//OneParameterOperator/NATLOG"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//OneParameterOperator/BRACKET"/>
</genEnums>
<genEnums typeSafeEnumCompatible="false" ecoreEnum="SGTPatternModel.ecore#//GTRelation">
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//GTRelation/GREATER_OR_EQUAL"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//GTRelation/GREATER"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//GTRelation/EQUAL"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//GTRelation/UNEQUAL"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//GTRelation/SMALLER_OR_EQUAL"/>
<genEnumLiterals ecoreEnumLiteral="SGTPatternModel.ecore#//GTRelation/SMALLER"/>
</genEnums>
<genClasses image="false" ecoreClass="SGTPatternModel.ecore#//GTStochasticNamedElement">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SGTPatternModel.ecore#//GTStochasticNamedElement/name"/>
</genClasses>
<genClasses ecoreClass="SGTPatternModel.ecore#//GTStochasticNode">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference SGTPatternModel.ecore#//GTStochasticNode/type"/>
</genClasses>
<genClasses ecoreClass="SGTPatternModel.ecore#//GTAttribute">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference SGTPatternModel.ecore#//GTAttribute/attribute"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SGTPatternModel.ecore#//GTAttribute/negative"/>
</genClasses>
<genClasses ecoreClass="SGTPatternModel.ecore#//GTStochasticFunction">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference SGTPatternModel.ecore#//GTStochasticFunction/mean"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference SGTPatternModel.ecore#//GTStochasticFunction/sd"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SGTPatternModel.ecore#//GTStochasticFunction/distribution"/>
</genClasses>
<genClasses ecoreClass="SGTPatternModel.ecore#//GTNumber">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SGTPatternModel.ecore#//GTNumber/number"/>
</genClasses>
<genClasses image="false" ecoreClass="SGTPatternModel.ecore#//GTArithmetics"/>
<genClasses ecoreClass="SGTPatternModel.ecore#//GTTwoParameterCalculation">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference SGTPatternModel.ecore#//GTTwoParameterCalculation/left"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference SGTPatternModel.ecore#//GTTwoParameterCalculation/right"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SGTPatternModel.ecore#//GTTwoParameterCalculation/operator"/>
</genClasses>
<genClasses ecoreClass="SGTPatternModel.ecore#//GTOneParameterCalculation">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference SGTPatternModel.ecore#//GTOneParameterCalculation/value"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SGTPatternModel.ecore#//GTOneParameterCalculation/operator"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SGTPatternModel.ecore#//GTOneParameterCalculation/negative"/>
</genClasses>
</genPackages>
</genmodel:GenModel>

View file

@ -0,0 +1,4 @@
#
pluginName = org.emoflon.ibex.gt.sgtpatternmodel
providerName = www.example.org

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<!--
-->
<plugin>
<extension point="org.eclipse.emf.ecore.generated_package">
<!-- @generated SGTPatternModel -->
<package
uri="platform:/resource/org.emoflon.ibex.gt.sgtpatternmodel/model/SGTPatternModel.ecore"
class="org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage"
genModel="model/SGTPatternModel.genmodel"/>
</extension>
</plugin>

View file

@ -1,18 +1,18 @@
/**
*/
package StochasticLanguage;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Arithmetics</b></em>'.
* <!-- end-user-doc -->
*
*
* @see StochasticLanguage.StochasticLanguagePackage#getGTArithmetics()
* @model interface="true" abstract="true"
* @generated
*/
public interface GTArithmetics extends EObject {
} // GTArithmetics
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Arithmetics</b></em>'.
* <!-- end-user-doc -->
*
*
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTArithmetics()
* @model interface="true" abstract="true"
* @generated
*/
public interface GTArithmetics extends EObject {
} // GTArithmetics

View file

@ -1,73 +1,73 @@
/**
*/
package StochasticLanguage;
import org.eclipse.emf.ecore.EAttribute;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Attribute</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* Attributes can be used as parameters for stochastic functions.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link StochasticLanguage.GTAttribute#getAttribute <em>Attribute</em>}</li>
* <li>{@link StochasticLanguage.GTAttribute#isNegative <em>Negative</em>}</li>
* </ul>
*
* @see StochasticLanguage.StochasticLanguagePackage#getGTAttribute()
* @model
* @generated
*/
public interface GTAttribute extends GTStochasticNode, GTArithmetics {
/**
* Returns the value of the '<em><b>Attribute</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Attribute</em>' reference.
* @see #setAttribute(EAttribute)
* @see StochasticLanguage.StochasticLanguagePackage#getGTAttribute_Attribute()
* @model
* @generated
*/
EAttribute getAttribute();
/**
* Sets the value of the '{@link StochasticLanguage.GTAttribute#getAttribute <em>Attribute</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Attribute</em>' reference.
* @see #getAttribute()
* @generated
*/
void setAttribute(EAttribute value);
/**
* Returns the value of the '<em><b>Negative</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Negative</em>' attribute.
* @see #setNegative(boolean)
* @see StochasticLanguage.StochasticLanguagePackage#getGTAttribute_Negative()
* @model
* @generated
*/
boolean isNegative();
/**
* Sets the value of the '{@link StochasticLanguage.GTAttribute#isNegative <em>Negative</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Negative</em>' attribute.
* @see #isNegative()
* @generated
*/
void setNegative(boolean value);
} // GTAttribute
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel;
import org.eclipse.emf.ecore.EAttribute;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Attribute</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* Attributes can be used as parameters for stochastic functions.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.GTAttribute#getAttribute <em>Attribute</em>}</li>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.GTAttribute#isNegative <em>Negative</em>}</li>
* </ul>
*
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTAttribute()
* @model
* @generated
*/
public interface GTAttribute extends GTStochasticNode, GTArithmetics {
/**
* Returns the value of the '<em><b>Attribute</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Attribute</em>' reference.
* @see #setAttribute(EAttribute)
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTAttribute_Attribute()
* @model
* @generated
*/
EAttribute getAttribute();
/**
* Sets the value of the '{@link org.emoflon.ibex.gt.SGTPatternModel.GTAttribute#getAttribute <em>Attribute</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Attribute</em>' reference.
* @see #getAttribute()
* @generated
*/
void setAttribute(EAttribute value);
/**
* Returns the value of the '<em><b>Negative</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Negative</em>' attribute.
* @see #setNegative(boolean)
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTAttribute_Negative()
* @model
* @generated
*/
boolean isNegative();
/**
* Sets the value of the '{@link org.emoflon.ibex.gt.SGTPatternModel.GTAttribute#isNegative <em>Negative</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Negative</em>' attribute.
* @see #isNegative()
* @generated
*/
void setNegative(boolean value);
} // GTAttribute

View file

@ -1,48 +1,48 @@
/**
*/
package StochasticLanguage;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Number</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* The value of the parameter if it has a static value
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link StochasticLanguage.GTNumber#getNumber <em>Number</em>}</li>
* </ul>
*
* @see StochasticLanguage.StochasticLanguagePackage#getGTNumber()
* @model
* @generated
*/
public interface GTNumber extends GTArithmetics {
/**
* Returns the value of the '<em><b>Number</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Number</em>' attribute.
* @see #setNumber(double)
* @see StochasticLanguage.StochasticLanguagePackage#getGTNumber_Number()
* @model
* @generated
*/
double getNumber();
/**
* Sets the value of the '{@link StochasticLanguage.GTNumber#getNumber <em>Number</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Number</em>' attribute.
* @see #getNumber()
* @generated
*/
void setNumber(double value);
} // GTNumber
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Number</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* The value of the parameter if it has a static value
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.GTNumber#getNumber <em>Number</em>}</li>
* </ul>
*
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTNumber()
* @model
* @generated
*/
public interface GTNumber extends GTArithmetics {
/**
* Returns the value of the '<em><b>Number</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Number</em>' attribute.
* @see #setNumber(double)
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTNumber_Number()
* @model
* @generated
*/
double getNumber();
/**
* Sets the value of the '{@link org.emoflon.ibex.gt.SGTPatternModel.GTNumber#getNumber <em>Number</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Number</em>' attribute.
* @see #getNumber()
* @generated
*/
void setNumber(double value);
} // GTNumber

View file

@ -1,93 +1,93 @@
/**
*/
package StochasticLanguage;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT One Parameter Calculation</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link StochasticLanguage.GTOneParameterCalculation#getValue <em>Value</em>}</li>
* <li>{@link StochasticLanguage.GTOneParameterCalculation#getOperator <em>Operator</em>}</li>
* <li>{@link StochasticLanguage.GTOneParameterCalculation#isNegative <em>Negative</em>}</li>
* </ul>
*
* @see StochasticLanguage.StochasticLanguagePackage#getGTOneParameterCalculation()
* @model
* @generated
*/
public interface GTOneParameterCalculation extends GTArithmetics {
/**
* Returns the value of the '<em><b>Value</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Value</em>' containment reference.
* @see #setValue(GTArithmetics)
* @see StochasticLanguage.StochasticLanguagePackage#getGTOneParameterCalculation_Value()
* @model containment="true"
* @generated
*/
GTArithmetics getValue();
/**
* Sets the value of the '{@link StochasticLanguage.GTOneParameterCalculation#getValue <em>Value</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Value</em>' containment reference.
* @see #getValue()
* @generated
*/
void setValue(GTArithmetics value);
/**
* Returns the value of the '<em><b>Operator</b></em>' attribute.
* The literals are from the enumeration {@link StochasticLanguage.OneParameterOperator}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Operator</em>' attribute.
* @see StochasticLanguage.OneParameterOperator
* @see #setOperator(OneParameterOperator)
* @see StochasticLanguage.StochasticLanguagePackage#getGTOneParameterCalculation_Operator()
* @model
* @generated
*/
OneParameterOperator getOperator();
/**
* Sets the value of the '{@link StochasticLanguage.GTOneParameterCalculation#getOperator <em>Operator</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Operator</em>' attribute.
* @see StochasticLanguage.OneParameterOperator
* @see #getOperator()
* @generated
*/
void setOperator(OneParameterOperator value);
/**
* Returns the value of the '<em><b>Negative</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Negative</em>' attribute.
* @see #setNegative(boolean)
* @see StochasticLanguage.StochasticLanguagePackage#getGTOneParameterCalculation_Negative()
* @model
* @generated
*/
boolean isNegative();
/**
* Sets the value of the '{@link StochasticLanguage.GTOneParameterCalculation#isNegative <em>Negative</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Negative</em>' attribute.
* @see #isNegative()
* @generated
*/
void setNegative(boolean value);
} // GTOneParameterCalculation
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT One Parameter Calculation</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.GTOneParameterCalculation#getValue <em>Value</em>}</li>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.GTOneParameterCalculation#getOperator <em>Operator</em>}</li>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.GTOneParameterCalculation#isNegative <em>Negative</em>}</li>
* </ul>
*
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTOneParameterCalculation()
* @model
* @generated
*/
public interface GTOneParameterCalculation extends GTArithmetics {
/**
* Returns the value of the '<em><b>Value</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Value</em>' containment reference.
* @see #setValue(GTArithmetics)
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTOneParameterCalculation_Value()
* @model containment="true"
* @generated
*/
GTArithmetics getValue();
/**
* Sets the value of the '{@link org.emoflon.ibex.gt.SGTPatternModel.GTOneParameterCalculation#getValue <em>Value</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Value</em>' containment reference.
* @see #getValue()
* @generated
*/
void setValue(GTArithmetics value);
/**
* Returns the value of the '<em><b>Operator</b></em>' attribute.
* The literals are from the enumeration {@link org.emoflon.ibex.gt.SGTPatternModel.OneParameterOperator}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Operator</em>' attribute.
* @see org.emoflon.ibex.gt.SGTPatternModel.OneParameterOperator
* @see #setOperator(OneParameterOperator)
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTOneParameterCalculation_Operator()
* @model
* @generated
*/
OneParameterOperator getOperator();
/**
* Sets the value of the '{@link org.emoflon.ibex.gt.SGTPatternModel.GTOneParameterCalculation#getOperator <em>Operator</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Operator</em>' attribute.
* @see org.emoflon.ibex.gt.SGTPatternModel.OneParameterOperator
* @see #getOperator()
* @generated
*/
void setOperator(OneParameterOperator value);
/**
* Returns the value of the '<em><b>Negative</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Negative</em>' attribute.
* @see #setNegative(boolean)
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTOneParameterCalculation_Negative()
* @model
* @generated
*/
boolean isNegative();
/**
* Sets the value of the '{@link org.emoflon.ibex.gt.SGTPatternModel.GTOneParameterCalculation#isNegative <em>Negative</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Negative</em>' attribute.
* @see #isNegative()
* @generated
*/
void setNegative(boolean value);
} // GTOneParameterCalculation

View file

@ -1,300 +1,300 @@
/**
*/
package StochasticLanguage;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>GT Relation</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see StochasticLanguage.StochasticLanguagePackage#getGTRelation()
* @model
* @generated
*/
public enum GTRelation implements Enumerator {
/**
* The '<em><b>GREATER OR EQUAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #GREATER_OR_EQUAL_VALUE
* @generated
* @ordered
*/
GREATER_OR_EQUAL(0, "GREATER_OR_EQUAL", "GREATER_OR_EQUAL"),
/**
* The '<em><b>GREATER</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #GREATER_VALUE
* @generated
* @ordered
*/
GREATER(1, "GREATER", "GREATER"),
/**
* The '<em><b>EQUAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #EQUAL_VALUE
* @generated
* @ordered
*/
EQUAL(2, "EQUAL", "EQUAL"),
/**
* The '<em><b>UNEQUAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #UNEQUAL_VALUE
* @generated
* @ordered
*/
UNEQUAL(3, "UNEQUAL", "UNEQUAL"),
/**
* The '<em><b>SMALLER OR EQUAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SMALLER_OR_EQUAL_VALUE
* @generated
* @ordered
*/
SMALLER_OR_EQUAL(4, "SMALLER_OR_EQUAL", "SMALLER_OR_EQUAL"),
/**
* The '<em><b>SMALLER</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SMALLER_VALUE
* @generated
* @ordered
*/
SMALLER(5, "SMALLER", "SMALLER");
/**
* The '<em><b>GREATER OR EQUAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #GREATER_OR_EQUAL
* @model
* @generated
* @ordered
*/
public static final int GREATER_OR_EQUAL_VALUE = 0;
/**
* The '<em><b>GREATER</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #GREATER
* @model
* @generated
* @ordered
*/
public static final int GREATER_VALUE = 1;
/**
* The '<em><b>EQUAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #EQUAL
* @model
* @generated
* @ordered
*/
public static final int EQUAL_VALUE = 2;
/**
* The '<em><b>UNEQUAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #UNEQUAL
* @model
* @generated
* @ordered
*/
public static final int UNEQUAL_VALUE = 3;
/**
* The '<em><b>SMALLER OR EQUAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SMALLER_OR_EQUAL
* @model
* @generated
* @ordered
*/
public static final int SMALLER_OR_EQUAL_VALUE = 4;
/**
* The '<em><b>SMALLER</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SMALLER
* @model
* @generated
* @ordered
*/
public static final int SMALLER_VALUE = 5;
/**
* An array of all the '<em><b>GT Relation</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final GTRelation[] VALUES_ARRAY = new GTRelation[] { GREATER_OR_EQUAL, GREATER, EQUAL, UNEQUAL,
SMALLER_OR_EQUAL, SMALLER, };
/**
* A public read-only list of all the '<em><b>GT Relation</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<GTRelation> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>GT Relation</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param literal the literal.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTRelation get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
GTRelation result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>GT Relation</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name the name.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTRelation getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
GTRelation result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>GT Relation</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the integer value.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTRelation get(int value) {
switch (value) {
case GREATER_OR_EQUAL_VALUE:
return GREATER_OR_EQUAL;
case GREATER_VALUE:
return GREATER;
case EQUAL_VALUE:
return EQUAL;
case UNEQUAL_VALUE:
return UNEQUAL;
case SMALLER_OR_EQUAL_VALUE:
return SMALLER_OR_EQUAL;
case SMALLER_VALUE:
return SMALLER;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private GTRelation(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return literal;
}
} //GTRelation
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>GT Relation</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTRelation()
* @model
* @generated
*/
public enum GTRelation implements Enumerator {
/**
* The '<em><b>GREATER OR EQUAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #GREATER_OR_EQUAL_VALUE
* @generated
* @ordered
*/
GREATER_OR_EQUAL(0, "GREATER_OR_EQUAL", "GREATER_OR_EQUAL"),
/**
* The '<em><b>GREATER</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #GREATER_VALUE
* @generated
* @ordered
*/
GREATER(1, "GREATER", "GREATER"),
/**
* The '<em><b>EQUAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #EQUAL_VALUE
* @generated
* @ordered
*/
EQUAL(2, "EQUAL", "EQUAL"),
/**
* The '<em><b>UNEQUAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #UNEQUAL_VALUE
* @generated
* @ordered
*/
UNEQUAL(3, "UNEQUAL", "UNEQUAL"),
/**
* The '<em><b>SMALLER OR EQUAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SMALLER_OR_EQUAL_VALUE
* @generated
* @ordered
*/
SMALLER_OR_EQUAL(4, "SMALLER_OR_EQUAL", "SMALLER_OR_EQUAL"),
/**
* The '<em><b>SMALLER</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SMALLER_VALUE
* @generated
* @ordered
*/
SMALLER(5, "SMALLER", "SMALLER");
/**
* The '<em><b>GREATER OR EQUAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #GREATER_OR_EQUAL
* @model
* @generated
* @ordered
*/
public static final int GREATER_OR_EQUAL_VALUE = 0;
/**
* The '<em><b>GREATER</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #GREATER
* @model
* @generated
* @ordered
*/
public static final int GREATER_VALUE = 1;
/**
* The '<em><b>EQUAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #EQUAL
* @model
* @generated
* @ordered
*/
public static final int EQUAL_VALUE = 2;
/**
* The '<em><b>UNEQUAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #UNEQUAL
* @model
* @generated
* @ordered
*/
public static final int UNEQUAL_VALUE = 3;
/**
* The '<em><b>SMALLER OR EQUAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SMALLER_OR_EQUAL
* @model
* @generated
* @ordered
*/
public static final int SMALLER_OR_EQUAL_VALUE = 4;
/**
* The '<em><b>SMALLER</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SMALLER
* @model
* @generated
* @ordered
*/
public static final int SMALLER_VALUE = 5;
/**
* An array of all the '<em><b>GT Relation</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final GTRelation[] VALUES_ARRAY = new GTRelation[] { GREATER_OR_EQUAL, GREATER, EQUAL, UNEQUAL,
SMALLER_OR_EQUAL, SMALLER, };
/**
* A public read-only list of all the '<em><b>GT Relation</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<GTRelation> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>GT Relation</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param literal the literal.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTRelation get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
GTRelation result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>GT Relation</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name the name.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTRelation getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
GTRelation result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>GT Relation</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the integer value.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTRelation get(int value) {
switch (value) {
case GREATER_OR_EQUAL_VALUE:
return GREATER_OR_EQUAL;
case GREATER_VALUE:
return GREATER;
case EQUAL_VALUE:
return EQUAL;
case UNEQUAL_VALUE:
return UNEQUAL;
case SMALLER_OR_EQUAL_VALUE:
return SMALLER_OR_EQUAL;
case SMALLER_VALUE:
return SMALLER;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private GTRelation(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return literal;
}
} //GTRelation

View file

@ -1,258 +1,258 @@
/**
*/
package StochasticLanguage;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>GT Stochastic Distribution</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The stochastic distribution type. WARNING: Literals need to be the same as the GT.xtext distribution type
* <!-- end-model-doc -->
* @see StochasticLanguage.StochasticLanguagePackage#getGTStochasticDistribution()
* @model
* @generated
*/
public enum GTStochasticDistribution implements Enumerator {
/**
* The '<em><b>NORMAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NORMAL_VALUE
* @generated
* @ordered
*/
NORMAL(0, "NORMAL", "NORMAL"),
/**
* The '<em><b>UNIFORM</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #UNIFORM_VALUE
* @generated
* @ordered
*/
UNIFORM(1, "UNIFORM", "UNIFORM"),
/**
* The '<em><b>EXPONENTIAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #EXPONENTIAL_VALUE
* @generated
* @ordered
*/
EXPONENTIAL(2, "EXPONENTIAL", "EXPONENTIAL"),
/**
* The '<em><b>STATIC</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #STATIC_VALUE
* @generated
* @ordered
*/
STATIC(3, "STATIC", "STATIC");
/**
* The '<em><b>NORMAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NORMAL
* @model
* @generated
* @ordered
*/
public static final int NORMAL_VALUE = 0;
/**
* The '<em><b>UNIFORM</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #UNIFORM
* @model
* @generated
* @ordered
*/
public static final int UNIFORM_VALUE = 1;
/**
* The '<em><b>EXPONENTIAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #EXPONENTIAL
* @model
* @generated
* @ordered
*/
public static final int EXPONENTIAL_VALUE = 2;
/**
* The '<em><b>STATIC</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #STATIC
* @model
* @generated
* @ordered
*/
public static final int STATIC_VALUE = 3;
/**
* An array of all the '<em><b>GT Stochastic Distribution</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final GTStochasticDistribution[] VALUES_ARRAY = new GTStochasticDistribution[] { NORMAL, UNIFORM,
EXPONENTIAL, STATIC, };
/**
* A public read-only list of all the '<em><b>GT Stochastic Distribution</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<GTStochasticDistribution> VALUES = Collections
.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>GT Stochastic Distribution</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param literal the literal.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTStochasticDistribution get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
GTStochasticDistribution result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>GT Stochastic Distribution</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name the name.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTStochasticDistribution getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
GTStochasticDistribution result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>GT Stochastic Distribution</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the integer value.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTStochasticDistribution get(int value) {
switch (value) {
case NORMAL_VALUE:
return NORMAL;
case UNIFORM_VALUE:
return UNIFORM;
case EXPONENTIAL_VALUE:
return EXPONENTIAL;
case STATIC_VALUE:
return STATIC;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private GTStochasticDistribution(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return literal;
}
} //GTStochasticDistribution
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>GT Stochastic Distribution</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The stochastic distribution type. WARNING: Literals need to be the same as the GT.xtext distribution type
* <!-- end-model-doc -->
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTStochasticDistribution()
* @model
* @generated
*/
public enum GTStochasticDistribution implements Enumerator {
/**
* The '<em><b>NORMAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NORMAL_VALUE
* @generated
* @ordered
*/
NORMAL(0, "NORMAL", "NORMAL"),
/**
* The '<em><b>UNIFORM</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #UNIFORM_VALUE
* @generated
* @ordered
*/
UNIFORM(1, "UNIFORM", "UNIFORM"),
/**
* The '<em><b>EXPONENTIAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #EXPONENTIAL_VALUE
* @generated
* @ordered
*/
EXPONENTIAL(2, "EXPONENTIAL", "EXPONENTIAL"),
/**
* The '<em><b>STATIC</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #STATIC_VALUE
* @generated
* @ordered
*/
STATIC(3, "STATIC", "STATIC");
/**
* The '<em><b>NORMAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NORMAL
* @model
* @generated
* @ordered
*/
public static final int NORMAL_VALUE = 0;
/**
* The '<em><b>UNIFORM</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #UNIFORM
* @model
* @generated
* @ordered
*/
public static final int UNIFORM_VALUE = 1;
/**
* The '<em><b>EXPONENTIAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #EXPONENTIAL
* @model
* @generated
* @ordered
*/
public static final int EXPONENTIAL_VALUE = 2;
/**
* The '<em><b>STATIC</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #STATIC
* @model
* @generated
* @ordered
*/
public static final int STATIC_VALUE = 3;
/**
* An array of all the '<em><b>GT Stochastic Distribution</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final GTStochasticDistribution[] VALUES_ARRAY = new GTStochasticDistribution[] { NORMAL, UNIFORM,
EXPONENTIAL, STATIC, };
/**
* A public read-only list of all the '<em><b>GT Stochastic Distribution</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<GTStochasticDistribution> VALUES = Collections
.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>GT Stochastic Distribution</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param literal the literal.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTStochasticDistribution get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
GTStochasticDistribution result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>GT Stochastic Distribution</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name the name.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTStochasticDistribution getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
GTStochasticDistribution result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>GT Stochastic Distribution</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the integer value.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTStochasticDistribution get(int value) {
switch (value) {
case NORMAL_VALUE:
return NORMAL;
case UNIFORM_VALUE:
return UNIFORM;
case EXPONENTIAL_VALUE:
return EXPONENTIAL;
case STATIC_VALUE:
return STATIC;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private GTStochasticDistribution(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return literal;
}
} //GTStochasticDistribution

View file

@ -1,99 +1,99 @@
/**
*/
package StochasticLanguage;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Stochastic Function</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A stochastic function can be used to calculate probabilities or generate values.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link StochasticLanguage.GTStochasticFunction#getMean <em>Mean</em>}</li>
* <li>{@link StochasticLanguage.GTStochasticFunction#getSd <em>Sd</em>}</li>
* <li>{@link StochasticLanguage.GTStochasticFunction#getDistribution <em>Distribution</em>}</li>
* </ul>
*
* @see StochasticLanguage.StochasticLanguagePackage#getGTStochasticFunction()
* @model
* @generated
*/
public interface GTStochasticFunction extends EObject {
/**
* Returns the value of the '<em><b>Mean</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Mean</em>' containment reference.
* @see #setMean(GTArithmetics)
* @see StochasticLanguage.StochasticLanguagePackage#getGTStochasticFunction_Mean()
* @model containment="true"
* @generated
*/
GTArithmetics getMean();
/**
* Sets the value of the '{@link StochasticLanguage.GTStochasticFunction#getMean <em>Mean</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Mean</em>' containment reference.
* @see #getMean()
* @generated
*/
void setMean(GTArithmetics value);
/**
* Returns the value of the '<em><b>Sd</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Sd</em>' containment reference.
* @see #setSd(GTArithmetics)
* @see StochasticLanguage.StochasticLanguagePackage#getGTStochasticFunction_Sd()
* @model containment="true"
* @generated
*/
GTArithmetics getSd();
/**
* Sets the value of the '{@link StochasticLanguage.GTStochasticFunction#getSd <em>Sd</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Sd</em>' containment reference.
* @see #getSd()
* @generated
*/
void setSd(GTArithmetics value);
/**
* Returns the value of the '<em><b>Distribution</b></em>' attribute.
* The literals are from the enumeration {@link StochasticLanguage.GTStochasticDistribution}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Distribution</em>' attribute.
* @see StochasticLanguage.GTStochasticDistribution
* @see #setDistribution(GTStochasticDistribution)
* @see StochasticLanguage.StochasticLanguagePackage#getGTStochasticFunction_Distribution()
* @model
* @generated
*/
GTStochasticDistribution getDistribution();
/**
* Sets the value of the '{@link StochasticLanguage.GTStochasticFunction#getDistribution <em>Distribution</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Distribution</em>' attribute.
* @see StochasticLanguage.GTStochasticDistribution
* @see #getDistribution()
* @generated
*/
void setDistribution(GTStochasticDistribution value);
} // GTStochasticFunction
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Stochastic Function</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A stochastic function can be used to calculate probabilities or generate values.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.GTStochasticFunction#getMean <em>Mean</em>}</li>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.GTStochasticFunction#getSd <em>Sd</em>}</li>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.GTStochasticFunction#getDistribution <em>Distribution</em>}</li>
* </ul>
*
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTStochasticFunction()
* @model
* @generated
*/
public interface GTStochasticFunction extends EObject {
/**
* Returns the value of the '<em><b>Mean</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Mean</em>' containment reference.
* @see #setMean(GTArithmetics)
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTStochasticFunction_Mean()
* @model containment="true"
* @generated
*/
GTArithmetics getMean();
/**
* Sets the value of the '{@link org.emoflon.ibex.gt.SGTPatternModel.GTStochasticFunction#getMean <em>Mean</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Mean</em>' containment reference.
* @see #getMean()
* @generated
*/
void setMean(GTArithmetics value);
/**
* Returns the value of the '<em><b>Sd</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Sd</em>' containment reference.
* @see #setSd(GTArithmetics)
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTStochasticFunction_Sd()
* @model containment="true"
* @generated
*/
GTArithmetics getSd();
/**
* Sets the value of the '{@link org.emoflon.ibex.gt.SGTPatternModel.GTStochasticFunction#getSd <em>Sd</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Sd</em>' containment reference.
* @see #getSd()
* @generated
*/
void setSd(GTArithmetics value);
/**
* Returns the value of the '<em><b>Distribution</b></em>' attribute.
* The literals are from the enumeration {@link org.emoflon.ibex.gt.SGTPatternModel.GTStochasticDistribution}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Distribution</em>' attribute.
* @see org.emoflon.ibex.gt.SGTPatternModel.GTStochasticDistribution
* @see #setDistribution(GTStochasticDistribution)
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTStochasticFunction_Distribution()
* @model
* @generated
*/
GTStochasticDistribution getDistribution();
/**
* Sets the value of the '{@link org.emoflon.ibex.gt.SGTPatternModel.GTStochasticFunction#getDistribution <em>Distribution</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Distribution</em>' attribute.
* @see org.emoflon.ibex.gt.SGTPatternModel.GTStochasticDistribution
* @see #getDistribution()
* @generated
*/
void setDistribution(GTStochasticDistribution value);
} // GTStochasticFunction

View file

@ -1,50 +1,50 @@
/**
*/
package StochasticLanguage;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Stochastic Named Element</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* Any element in the internal model which has a name should inherit form this class.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link StochasticLanguage.GTStochasticNamedElement#getName <em>Name</em>}</li>
* </ul>
*
* @see StochasticLanguage.StochasticLanguagePackage#getGTStochasticNamedElement()
* @model abstract="true"
* @generated
*/
public interface GTStochasticNamedElement extends EObject {
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see StochasticLanguage.StochasticLanguagePackage#getGTStochasticNamedElement_Name()
* @model
* @generated
*/
String getName();
/**
* Sets the value of the '{@link StochasticLanguage.GTStochasticNamedElement#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);
} // GTStochasticNamedElement
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Stochastic Named Element</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* Any element in the internal model which has a name should inherit form this class.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.GTStochasticNamedElement#getName <em>Name</em>}</li>
* </ul>
*
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTStochasticNamedElement()
* @model abstract="true"
* @generated
*/
public interface GTStochasticNamedElement extends EObject {
/**
* Returns the value of the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTStochasticNamedElement_Name()
* @model
* @generated
*/
String getName();
/**
* Sets the value of the '{@link org.emoflon.ibex.gt.SGTPatternModel.GTStochasticNamedElement#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);
} // GTStochasticNamedElement

View file

@ -1,50 +1,50 @@
/**
*/
package StochasticLanguage;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Stochastic Node</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A typed node can reference other nodes via edges.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link StochasticLanguage.GTStochasticNode#getType <em>Type</em>}</li>
* </ul>
*
* @see StochasticLanguage.StochasticLanguagePackage#getGTStochasticNode()
* @model
* @generated
*/
public interface GTStochasticNode extends GTStochasticNamedElement {
/**
* Returns the value of the '<em><b>Type</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Type</em>' reference.
* @see #setType(EClass)
* @see StochasticLanguage.StochasticLanguagePackage#getGTStochasticNode_Type()
* @model
* @generated
*/
EClass getType();
/**
* Sets the value of the '{@link StochasticLanguage.GTStochasticNode#getType <em>Type</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Type</em>' reference.
* @see #getType()
* @generated
*/
void setType(EClass value);
} // GTStochasticNode
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Stochastic Node</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A typed node can reference other nodes via edges.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.GTStochasticNode#getType <em>Type</em>}</li>
* </ul>
*
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTStochasticNode()
* @model
* @generated
*/
public interface GTStochasticNode extends GTStochasticNamedElement {
/**
* Returns the value of the '<em><b>Type</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Type</em>' reference.
* @see #setType(EClass)
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTStochasticNode_Type()
* @model
* @generated
*/
EClass getType();
/**
* Sets the value of the '{@link org.emoflon.ibex.gt.SGTPatternModel.GTStochasticNode#getType <em>Type</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Type</em>' reference.
* @see #getType()
* @generated
*/
void setType(EClass value);
} // GTStochasticNode

View file

@ -1,230 +1,230 @@
/**
*/
package StochasticLanguage;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>GT Stochastic Range</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see StochasticLanguage.StochasticLanguagePackage#getGTStochasticRange()
* @model
* @generated
*/
public enum GTStochasticRange implements Enumerator {
/**
* The '<em><b>NEUTRAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NEUTRAL_VALUE
* @generated
* @ordered
*/
NEUTRAL(0, "NEUTRAL", "NEUTRAL"),
/**
* The '<em><b>POSITIVE</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #POSITIVE_VALUE
* @generated
* @ordered
*/
POSITIVE(1, "POSITIVE", "POSITIVE"),
/**
* The '<em><b>NEGATIVE</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NEGATIVE_VALUE
* @generated
* @ordered
*/
NEGATIVE(2, "NEGATIVE", "NEGATIVE");
/**
* The '<em><b>NEUTRAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NEUTRAL
* @model
* @generated
* @ordered
*/
public static final int NEUTRAL_VALUE = 0;
/**
* The '<em><b>POSITIVE</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #POSITIVE
* @model
* @generated
* @ordered
*/
public static final int POSITIVE_VALUE = 1;
/**
* The '<em><b>NEGATIVE</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NEGATIVE
* @model
* @generated
* @ordered
*/
public static final int NEGATIVE_VALUE = 2;
/**
* An array of all the '<em><b>GT Stochastic Range</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final GTStochasticRange[] VALUES_ARRAY = new GTStochasticRange[] { NEUTRAL, POSITIVE, NEGATIVE, };
/**
* A public read-only list of all the '<em><b>GT Stochastic Range</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<GTStochasticRange> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>GT Stochastic Range</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param literal the literal.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTStochasticRange get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
GTStochasticRange result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>GT Stochastic Range</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name the name.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTStochasticRange getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
GTStochasticRange result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>GT Stochastic Range</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the integer value.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTStochasticRange get(int value) {
switch (value) {
case NEUTRAL_VALUE:
return NEUTRAL;
case POSITIVE_VALUE:
return POSITIVE;
case NEGATIVE_VALUE:
return NEGATIVE;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private GTStochasticRange(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return literal;
}
} //GTStochasticRange
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>GT Stochastic Range</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTStochasticRange()
* @model
* @generated
*/
public enum GTStochasticRange implements Enumerator {
/**
* The '<em><b>NEUTRAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NEUTRAL_VALUE
* @generated
* @ordered
*/
NEUTRAL(0, "NEUTRAL", "NEUTRAL"),
/**
* The '<em><b>POSITIVE</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #POSITIVE_VALUE
* @generated
* @ordered
*/
POSITIVE(1, "POSITIVE", "POSITIVE"),
/**
* The '<em><b>NEGATIVE</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NEGATIVE_VALUE
* @generated
* @ordered
*/
NEGATIVE(2, "NEGATIVE", "NEGATIVE");
/**
* The '<em><b>NEUTRAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NEUTRAL
* @model
* @generated
* @ordered
*/
public static final int NEUTRAL_VALUE = 0;
/**
* The '<em><b>POSITIVE</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #POSITIVE
* @model
* @generated
* @ordered
*/
public static final int POSITIVE_VALUE = 1;
/**
* The '<em><b>NEGATIVE</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NEGATIVE
* @model
* @generated
* @ordered
*/
public static final int NEGATIVE_VALUE = 2;
/**
* An array of all the '<em><b>GT Stochastic Range</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final GTStochasticRange[] VALUES_ARRAY = new GTStochasticRange[] { NEUTRAL, POSITIVE, NEGATIVE, };
/**
* A public read-only list of all the '<em><b>GT Stochastic Range</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<GTStochasticRange> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>GT Stochastic Range</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param literal the literal.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTStochasticRange get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
GTStochasticRange result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>GT Stochastic Range</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name the name.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTStochasticRange getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
GTStochasticRange result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>GT Stochastic Range</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the integer value.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTStochasticRange get(int value) {
switch (value) {
case NEUTRAL_VALUE:
return NEUTRAL;
case POSITIVE_VALUE:
return POSITIVE;
case NEGATIVE_VALUE:
return NEGATIVE;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private GTStochasticRange(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return literal;
}
} //GTStochasticRange

View file

@ -1,93 +1,93 @@
/**
*/
package StochasticLanguage;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Two Parameter Calculation</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link StochasticLanguage.GTTwoParameterCalculation#getLeft <em>Left</em>}</li>
* <li>{@link StochasticLanguage.GTTwoParameterCalculation#getRight <em>Right</em>}</li>
* <li>{@link StochasticLanguage.GTTwoParameterCalculation#getOperator <em>Operator</em>}</li>
* </ul>
*
* @see StochasticLanguage.StochasticLanguagePackage#getGTTwoParameterCalculation()
* @model
* @generated
*/
public interface GTTwoParameterCalculation extends GTArithmetics {
/**
* Returns the value of the '<em><b>Left</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Left</em>' containment reference.
* @see #setLeft(GTArithmetics)
* @see StochasticLanguage.StochasticLanguagePackage#getGTTwoParameterCalculation_Left()
* @model containment="true"
* @generated
*/
GTArithmetics getLeft();
/**
* Sets the value of the '{@link StochasticLanguage.GTTwoParameterCalculation#getLeft <em>Left</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Left</em>' containment reference.
* @see #getLeft()
* @generated
*/
void setLeft(GTArithmetics value);
/**
* Returns the value of the '<em><b>Right</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Right</em>' containment reference.
* @see #setRight(GTArithmetics)
* @see StochasticLanguage.StochasticLanguagePackage#getGTTwoParameterCalculation_Right()
* @model containment="true"
* @generated
*/
GTArithmetics getRight();
/**
* Sets the value of the '{@link StochasticLanguage.GTTwoParameterCalculation#getRight <em>Right</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Right</em>' containment reference.
* @see #getRight()
* @generated
*/
void setRight(GTArithmetics value);
/**
* Returns the value of the '<em><b>Operator</b></em>' attribute.
* The literals are from the enumeration {@link StochasticLanguage.TwoParameterOperator}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Operator</em>' attribute.
* @see StochasticLanguage.TwoParameterOperator
* @see #setOperator(TwoParameterOperator)
* @see StochasticLanguage.StochasticLanguagePackage#getGTTwoParameterCalculation_Operator()
* @model
* @generated
*/
TwoParameterOperator getOperator();
/**
* Sets the value of the '{@link StochasticLanguage.GTTwoParameterCalculation#getOperator <em>Operator</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Operator</em>' attribute.
* @see StochasticLanguage.TwoParameterOperator
* @see #getOperator()
* @generated
*/
void setOperator(TwoParameterOperator value);
} // GTTwoParameterCalculation
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Two Parameter Calculation</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.GTTwoParameterCalculation#getLeft <em>Left</em>}</li>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.GTTwoParameterCalculation#getRight <em>Right</em>}</li>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.GTTwoParameterCalculation#getOperator <em>Operator</em>}</li>
* </ul>
*
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTTwoParameterCalculation()
* @model
* @generated
*/
public interface GTTwoParameterCalculation extends GTArithmetics {
/**
* Returns the value of the '<em><b>Left</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Left</em>' containment reference.
* @see #setLeft(GTArithmetics)
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTTwoParameterCalculation_Left()
* @model containment="true"
* @generated
*/
GTArithmetics getLeft();
/**
* Sets the value of the '{@link org.emoflon.ibex.gt.SGTPatternModel.GTTwoParameterCalculation#getLeft <em>Left</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Left</em>' containment reference.
* @see #getLeft()
* @generated
*/
void setLeft(GTArithmetics value);
/**
* Returns the value of the '<em><b>Right</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Right</em>' containment reference.
* @see #setRight(GTArithmetics)
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTTwoParameterCalculation_Right()
* @model containment="true"
* @generated
*/
GTArithmetics getRight();
/**
* Sets the value of the '{@link org.emoflon.ibex.gt.SGTPatternModel.GTTwoParameterCalculation#getRight <em>Right</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Right</em>' containment reference.
* @see #getRight()
* @generated
*/
void setRight(GTArithmetics value);
/**
* Returns the value of the '<em><b>Operator</b></em>' attribute.
* The literals are from the enumeration {@link org.emoflon.ibex.gt.SGTPatternModel.TwoParameterOperator}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Operator</em>' attribute.
* @see org.emoflon.ibex.gt.SGTPatternModel.TwoParameterOperator
* @see #setOperator(TwoParameterOperator)
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getGTTwoParameterCalculation_Operator()
* @model
* @generated
*/
TwoParameterOperator getOperator();
/**
* Sets the value of the '{@link org.emoflon.ibex.gt.SGTPatternModel.GTTwoParameterCalculation#getOperator <em>Operator</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Operator</em>' attribute.
* @see org.emoflon.ibex.gt.SGTPatternModel.TwoParameterOperator
* @see #getOperator()
* @generated
*/
void setOperator(TwoParameterOperator value);
} // GTTwoParameterCalculation

View file

@ -1,369 +1,369 @@
/**
*/
package StochasticLanguage;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>One Parameter Operator</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see StochasticLanguage.StochasticLanguagePackage#getOneParameterOperator()
* @model
* @generated
*/
public enum OneParameterOperator implements Enumerator {
/**
* The '<em><b>ROOT</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #ROOT_VALUE
* @generated
* @ordered
*/
ROOT(0, "ROOT", "ROOT"),
/**
* The '<em><b>ABSOLUTE</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #ABSOLUTE_VALUE
* @generated
* @ordered
*/
ABSOLUTE(1, "ABSOLUTE", "ABSOLUTE"),
/**
* The '<em><b>SIN</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SIN_VALUE
* @generated
* @ordered
*/
SIN(2, "SIN", "SIN"),
/**
* The '<em><b>COS</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #COS_VALUE
* @generated
* @ordered
*/
COS(3, "COS", "COS"),
/**
* The '<em><b>TAN</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #TAN_VALUE
* @generated
* @ordered
*/
TAN(4, "TAN", "TAN"),
/**
* The '<em><b>EEXPONENTIAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #EEXPONENTIAL_VALUE
* @generated
* @ordered
*/
EEXPONENTIAL(5, "E_EXPONENTIAL", "E_EXPONENTIAL"),
/**
* The '<em><b>LOGARITHMUS</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LOGARITHMUS_VALUE
* @generated
* @ordered
*/
LOGARITHMUS(6, "LOGARITHMUS", "LOGARITHMUS"),
/**
* The '<em><b>NATLOG</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NATLOG_VALUE
* @generated
* @ordered
*/
NATLOG(7, "NATLOG", "NATLOG"),
/**
* The '<em><b>BRACKET</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #BRACKET_VALUE
* @generated
* @ordered
*/
BRACKET(8, "BRACKET", "BRACKET");
/**
* The '<em><b>ROOT</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #ROOT
* @model
* @generated
* @ordered
*/
public static final int ROOT_VALUE = 0;
/**
* The '<em><b>ABSOLUTE</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #ABSOLUTE
* @model
* @generated
* @ordered
*/
public static final int ABSOLUTE_VALUE = 1;
/**
* The '<em><b>SIN</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SIN
* @model
* @generated
* @ordered
*/
public static final int SIN_VALUE = 2;
/**
* The '<em><b>COS</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #COS
* @model
* @generated
* @ordered
*/
public static final int COS_VALUE = 3;
/**
* The '<em><b>TAN</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #TAN
* @model
* @generated
* @ordered
*/
public static final int TAN_VALUE = 4;
/**
* The '<em><b>EEXPONENTIAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #EEXPONENTIAL
* @model name="E_EXPONENTIAL"
* @generated
* @ordered
*/
public static final int EEXPONENTIAL_VALUE = 5;
/**
* The '<em><b>LOGARITHMUS</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LOGARITHMUS
* @model
* @generated
* @ordered
*/
public static final int LOGARITHMUS_VALUE = 6;
/**
* The '<em><b>NATLOG</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NATLOG
* @model
* @generated
* @ordered
*/
public static final int NATLOG_VALUE = 7;
/**
* The '<em><b>BRACKET</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #BRACKET
* @model
* @generated
* @ordered
*/
public static final int BRACKET_VALUE = 8;
/**
* An array of all the '<em><b>One Parameter Operator</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final OneParameterOperator[] VALUES_ARRAY = new OneParameterOperator[] { ROOT, ABSOLUTE, SIN, COS,
TAN, EEXPONENTIAL, LOGARITHMUS, NATLOG, BRACKET, };
/**
* A public read-only list of all the '<em><b>One Parameter Operator</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<OneParameterOperator> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>One Parameter Operator</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param literal the literal.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static OneParameterOperator get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
OneParameterOperator result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>One Parameter Operator</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name the name.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static OneParameterOperator getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
OneParameterOperator result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>One Parameter Operator</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the integer value.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static OneParameterOperator get(int value) {
switch (value) {
case ROOT_VALUE:
return ROOT;
case ABSOLUTE_VALUE:
return ABSOLUTE;
case SIN_VALUE:
return SIN;
case COS_VALUE:
return COS;
case TAN_VALUE:
return TAN;
case EEXPONENTIAL_VALUE:
return EEXPONENTIAL;
case LOGARITHMUS_VALUE:
return LOGARITHMUS;
case NATLOG_VALUE:
return NATLOG;
case BRACKET_VALUE:
return BRACKET;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private OneParameterOperator(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return literal;
}
} //OneParameterOperator
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>One Parameter Operator</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getOneParameterOperator()
* @model
* @generated
*/
public enum OneParameterOperator implements Enumerator {
/**
* The '<em><b>ROOT</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #ROOT_VALUE
* @generated
* @ordered
*/
ROOT(0, "ROOT", "ROOT"),
/**
* The '<em><b>ABSOLUTE</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #ABSOLUTE_VALUE
* @generated
* @ordered
*/
ABSOLUTE(1, "ABSOLUTE", "ABSOLUTE"),
/**
* The '<em><b>SIN</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SIN_VALUE
* @generated
* @ordered
*/
SIN(2, "SIN", "SIN"),
/**
* The '<em><b>COS</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #COS_VALUE
* @generated
* @ordered
*/
COS(3, "COS", "COS"),
/**
* The '<em><b>TAN</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #TAN_VALUE
* @generated
* @ordered
*/
TAN(4, "TAN", "TAN"),
/**
* The '<em><b>EEXPONENTIAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #EEXPONENTIAL_VALUE
* @generated
* @ordered
*/
EEXPONENTIAL(5, "E_EXPONENTIAL", "E_EXPONENTIAL"),
/**
* The '<em><b>LOGARITHMUS</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LOGARITHMUS_VALUE
* @generated
* @ordered
*/
LOGARITHMUS(6, "LOGARITHMUS", "LOGARITHMUS"),
/**
* The '<em><b>NATLOG</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NATLOG_VALUE
* @generated
* @ordered
*/
NATLOG(7, "NATLOG", "NATLOG"),
/**
* The '<em><b>BRACKET</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #BRACKET_VALUE
* @generated
* @ordered
*/
BRACKET(8, "BRACKET", "BRACKET");
/**
* The '<em><b>ROOT</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #ROOT
* @model
* @generated
* @ordered
*/
public static final int ROOT_VALUE = 0;
/**
* The '<em><b>ABSOLUTE</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #ABSOLUTE
* @model
* @generated
* @ordered
*/
public static final int ABSOLUTE_VALUE = 1;
/**
* The '<em><b>SIN</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SIN
* @model
* @generated
* @ordered
*/
public static final int SIN_VALUE = 2;
/**
* The '<em><b>COS</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #COS
* @model
* @generated
* @ordered
*/
public static final int COS_VALUE = 3;
/**
* The '<em><b>TAN</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #TAN
* @model
* @generated
* @ordered
*/
public static final int TAN_VALUE = 4;
/**
* The '<em><b>EEXPONENTIAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #EEXPONENTIAL
* @model name="E_EXPONENTIAL"
* @generated
* @ordered
*/
public static final int EEXPONENTIAL_VALUE = 5;
/**
* The '<em><b>LOGARITHMUS</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LOGARITHMUS
* @model
* @generated
* @ordered
*/
public static final int LOGARITHMUS_VALUE = 6;
/**
* The '<em><b>NATLOG</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NATLOG
* @model
* @generated
* @ordered
*/
public static final int NATLOG_VALUE = 7;
/**
* The '<em><b>BRACKET</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #BRACKET
* @model
* @generated
* @ordered
*/
public static final int BRACKET_VALUE = 8;
/**
* An array of all the '<em><b>One Parameter Operator</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final OneParameterOperator[] VALUES_ARRAY = new OneParameterOperator[] { ROOT, ABSOLUTE, SIN, COS,
TAN, EEXPONENTIAL, LOGARITHMUS, NATLOG, BRACKET, };
/**
* A public read-only list of all the '<em><b>One Parameter Operator</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<OneParameterOperator> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>One Parameter Operator</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param literal the literal.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static OneParameterOperator get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
OneParameterOperator result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>One Parameter Operator</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name the name.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static OneParameterOperator getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
OneParameterOperator result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>One Parameter Operator</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the integer value.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static OneParameterOperator get(int value) {
switch (value) {
case ROOT_VALUE:
return ROOT;
case ABSOLUTE_VALUE:
return ABSOLUTE;
case SIN_VALUE:
return SIN;
case COS_VALUE:
return COS;
case TAN_VALUE:
return TAN;
case EEXPONENTIAL_VALUE:
return EEXPONENTIAL;
case LOGARITHMUS_VALUE:
return LOGARITHMUS;
case NATLOG_VALUE:
return NATLOG;
case BRACKET_VALUE:
return BRACKET;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private OneParameterOperator(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return literal;
}
} //OneParameterOperator

View file

@ -1,87 +1,87 @@
/**
*/
package StochasticLanguage;
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 StochasticLanguage.StochasticLanguagePackage
* @generated
*/
public interface StochasticLanguageFactory extends EFactory {
/**
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
StochasticLanguageFactory eINSTANCE = StochasticLanguage.impl.StochasticLanguageFactoryImpl.init();
/**
* Returns a new object of class '<em>GT Stochastic Node</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>GT Stochastic Node</em>'.
* @generated
*/
GTStochasticNode createGTStochasticNode();
/**
* Returns a new object of class '<em>GT Attribute</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>GT Attribute</em>'.
* @generated
*/
GTAttribute createGTAttribute();
/**
* Returns a new object of class '<em>GT Stochastic Function</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>GT Stochastic Function</em>'.
* @generated
*/
GTStochasticFunction createGTStochasticFunction();
/**
* Returns a new object of class '<em>GT Number</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>GT Number</em>'.
* @generated
*/
GTNumber createGTNumber();
/**
* Returns a new object of class '<em>GT Two Parameter Calculation</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>GT Two Parameter Calculation</em>'.
* @generated
*/
GTTwoParameterCalculation createGTTwoParameterCalculation();
/**
* Returns a new object of class '<em>GT One Parameter Calculation</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>GT One Parameter Calculation</em>'.
* @generated
*/
GTOneParameterCalculation createGTOneParameterCalculation();
/**
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the package supported by this factory.
* @generated
*/
StochasticLanguagePackage getStochasticLanguagePackage();
} //StochasticLanguageFactory
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel;
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 org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage
* @generated
*/
public interface SGTPatternModelFactory extends EFactory {
/**
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
SGTPatternModelFactory eINSTANCE = org.emoflon.ibex.gt.SGTPatternModel.impl.SGTPatternModelFactoryImpl.init();
/**
* Returns a new object of class '<em>GT Stochastic Node</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>GT Stochastic Node</em>'.
* @generated
*/
GTStochasticNode createGTStochasticNode();
/**
* Returns a new object of class '<em>GT Attribute</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>GT Attribute</em>'.
* @generated
*/
GTAttribute createGTAttribute();
/**
* Returns a new object of class '<em>GT Stochastic Function</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>GT Stochastic Function</em>'.
* @generated
*/
GTStochasticFunction createGTStochasticFunction();
/**
* Returns a new object of class '<em>GT Number</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>GT Number</em>'.
* @generated
*/
GTNumber createGTNumber();
/**
* Returns a new object of class '<em>GT Two Parameter Calculation</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>GT Two Parameter Calculation</em>'.
* @generated
*/
GTTwoParameterCalculation createGTTwoParameterCalculation();
/**
* Returns a new object of class '<em>GT One Parameter Calculation</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>GT One Parameter Calculation</em>'.
* @generated
*/
GTOneParameterCalculation createGTOneParameterCalculation();
/**
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the package supported by this factory.
* @generated
*/
SGTPatternModelPackage getSGTPatternModelPackage();
} //SGTPatternModelFactory

View file

@ -1,300 +1,300 @@
/**
*/
package StochasticLanguage;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>Two Parameter Operator</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see StochasticLanguage.StochasticLanguagePackage#getTwoParameterOperator()
* @model
* @generated
*/
public enum TwoParameterOperator implements Enumerator {
/**
* The '<em><b>ADDITION</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #ADDITION_VALUE
* @generated
* @ordered
*/
ADDITION(0, "ADDITION", "ADDITION"),
/**
* The '<em><b>MULTIPLICATION</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #MULTIPLICATION_VALUE
* @generated
* @ordered
*/
MULTIPLICATION(1, "MULTIPLICATION", "MULTIPLICATION"),
/**
* The '<em><b>DIVISION</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #DIVISION_VALUE
* @generated
* @ordered
*/
DIVISION(2, "DIVISION", "DIVISION"),
/**
* The '<em><b>MODULO</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #MODULO_VALUE
* @generated
* @ordered
*/
MODULO(3, "MODULO", "MODULO"),
/**
* The '<em><b>EXPONENTIAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #EXPONENTIAL_VALUE
* @generated
* @ordered
*/
EXPONENTIAL(4, "EXPONENTIAL", "EXPONENTIAL"),
/**
* The '<em><b>SUBTRACTION</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SUBTRACTION_VALUE
* @generated
* @ordered
*/
SUBTRACTION(5, "SUBTRACTION", "SUBTRACTION");
/**
* The '<em><b>ADDITION</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #ADDITION
* @model
* @generated
* @ordered
*/
public static final int ADDITION_VALUE = 0;
/**
* The '<em><b>MULTIPLICATION</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #MULTIPLICATION
* @model
* @generated
* @ordered
*/
public static final int MULTIPLICATION_VALUE = 1;
/**
* The '<em><b>DIVISION</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #DIVISION
* @model
* @generated
* @ordered
*/
public static final int DIVISION_VALUE = 2;
/**
* The '<em><b>MODULO</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #MODULO
* @model
* @generated
* @ordered
*/
public static final int MODULO_VALUE = 3;
/**
* The '<em><b>EXPONENTIAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #EXPONENTIAL
* @model
* @generated
* @ordered
*/
public static final int EXPONENTIAL_VALUE = 4;
/**
* The '<em><b>SUBTRACTION</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SUBTRACTION
* @model
* @generated
* @ordered
*/
public static final int SUBTRACTION_VALUE = 5;
/**
* An array of all the '<em><b>Two Parameter Operator</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final TwoParameterOperator[] VALUES_ARRAY = new TwoParameterOperator[] { ADDITION, MULTIPLICATION,
DIVISION, MODULO, EXPONENTIAL, SUBTRACTION, };
/**
* A public read-only list of all the '<em><b>Two Parameter Operator</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<TwoParameterOperator> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Two Parameter Operator</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param literal the literal.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static TwoParameterOperator get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
TwoParameterOperator result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Two Parameter Operator</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name the name.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static TwoParameterOperator getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
TwoParameterOperator result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Two Parameter Operator</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the integer value.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static TwoParameterOperator get(int value) {
switch (value) {
case ADDITION_VALUE:
return ADDITION;
case MULTIPLICATION_VALUE:
return MULTIPLICATION;
case DIVISION_VALUE:
return DIVISION;
case MODULO_VALUE:
return MODULO;
case EXPONENTIAL_VALUE:
return EXPONENTIAL;
case SUBTRACTION_VALUE:
return SUBTRACTION;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private TwoParameterOperator(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return literal;
}
} //TwoParameterOperator
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>Two Parameter Operator</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage#getTwoParameterOperator()
* @model
* @generated
*/
public enum TwoParameterOperator implements Enumerator {
/**
* The '<em><b>ADDITION</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #ADDITION_VALUE
* @generated
* @ordered
*/
ADDITION(0, "ADDITION", "ADDITION"),
/**
* The '<em><b>MULTIPLICATION</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #MULTIPLICATION_VALUE
* @generated
* @ordered
*/
MULTIPLICATION(1, "MULTIPLICATION", "MULTIPLICATION"),
/**
* The '<em><b>DIVISION</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #DIVISION_VALUE
* @generated
* @ordered
*/
DIVISION(2, "DIVISION", "DIVISION"),
/**
* The '<em><b>MODULO</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #MODULO_VALUE
* @generated
* @ordered
*/
MODULO(3, "MODULO", "MODULO"),
/**
* The '<em><b>EXPONENTIAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #EXPONENTIAL_VALUE
* @generated
* @ordered
*/
EXPONENTIAL(4, "EXPONENTIAL", "EXPONENTIAL"),
/**
* The '<em><b>SUBTRACTION</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SUBTRACTION_VALUE
* @generated
* @ordered
*/
SUBTRACTION(5, "SUBTRACTION", "SUBTRACTION");
/**
* The '<em><b>ADDITION</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #ADDITION
* @model
* @generated
* @ordered
*/
public static final int ADDITION_VALUE = 0;
/**
* The '<em><b>MULTIPLICATION</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #MULTIPLICATION
* @model
* @generated
* @ordered
*/
public static final int MULTIPLICATION_VALUE = 1;
/**
* The '<em><b>DIVISION</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #DIVISION
* @model
* @generated
* @ordered
*/
public static final int DIVISION_VALUE = 2;
/**
* The '<em><b>MODULO</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #MODULO
* @model
* @generated
* @ordered
*/
public static final int MODULO_VALUE = 3;
/**
* The '<em><b>EXPONENTIAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #EXPONENTIAL
* @model
* @generated
* @ordered
*/
public static final int EXPONENTIAL_VALUE = 4;
/**
* The '<em><b>SUBTRACTION</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SUBTRACTION
* @model
* @generated
* @ordered
*/
public static final int SUBTRACTION_VALUE = 5;
/**
* An array of all the '<em><b>Two Parameter Operator</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final TwoParameterOperator[] VALUES_ARRAY = new TwoParameterOperator[] { ADDITION, MULTIPLICATION,
DIVISION, MODULO, EXPONENTIAL, SUBTRACTION, };
/**
* A public read-only list of all the '<em><b>Two Parameter Operator</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<TwoParameterOperator> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Two Parameter Operator</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param literal the literal.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static TwoParameterOperator get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
TwoParameterOperator result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Two Parameter Operator</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name the name.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static TwoParameterOperator getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
TwoParameterOperator result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Two Parameter Operator</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the integer value.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static TwoParameterOperator get(int value) {
switch (value) {
case ADDITION_VALUE:
return ADDITION;
case MULTIPLICATION_VALUE:
return MULTIPLICATION;
case DIVISION_VALUE:
return DIVISION;
case MODULO_VALUE:
return MODULO;
case EXPONENTIAL_VALUE:
return EXPONENTIAL;
case SUBTRACTION_VALUE:
return SUBTRACTION;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private TwoParameterOperator(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return literal;
}
} //TwoParameterOperator

View file

@ -1,233 +1,233 @@
/**
*/
package StochasticLanguage.impl;
import StochasticLanguage.GTAttribute;
import StochasticLanguage.StochasticLanguagePackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>GT Attribute</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link StochasticLanguage.impl.GTAttributeImpl#getAttribute <em>Attribute</em>}</li>
* <li>{@link StochasticLanguage.impl.GTAttributeImpl#isNegative <em>Negative</em>}</li>
* </ul>
*
* @generated
*/
public class GTAttributeImpl extends GTStochasticNodeImpl implements GTAttribute {
/**
* The cached value of the '{@link #getAttribute() <em>Attribute</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getAttribute()
* @generated
* @ordered
*/
protected EAttribute attribute;
/**
* The default value of the '{@link #isNegative() <em>Negative</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isNegative()
* @generated
* @ordered
*/
protected static final boolean NEGATIVE_EDEFAULT = false;
/**
* The cached value of the '{@link #isNegative() <em>Negative</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isNegative()
* @generated
* @ordered
*/
protected boolean negative = NEGATIVE_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected GTAttributeImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return StochasticLanguagePackage.Literals.GT_ATTRIBUTE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EAttribute getAttribute() {
if (attribute != null && attribute.eIsProxy()) {
InternalEObject oldAttribute = (InternalEObject) attribute;
attribute = (EAttribute) eResolveProxy(oldAttribute);
if (attribute != oldAttribute) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE,
StochasticLanguagePackage.GT_ATTRIBUTE__ATTRIBUTE, oldAttribute, attribute));
}
}
return attribute;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute basicGetAttribute() {
return attribute;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setAttribute(EAttribute newAttribute) {
EAttribute oldAttribute = attribute;
attribute = newAttribute;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, StochasticLanguagePackage.GT_ATTRIBUTE__ATTRIBUTE,
oldAttribute, attribute));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean isNegative() {
return negative;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setNegative(boolean newNegative) {
boolean oldNegative = negative;
negative = newNegative;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, StochasticLanguagePackage.GT_ATTRIBUTE__NEGATIVE,
oldNegative, negative));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case StochasticLanguagePackage.GT_ATTRIBUTE__ATTRIBUTE:
if (resolve)
return getAttribute();
return basicGetAttribute();
case StochasticLanguagePackage.GT_ATTRIBUTE__NEGATIVE:
return isNegative();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case StochasticLanguagePackage.GT_ATTRIBUTE__ATTRIBUTE:
setAttribute((EAttribute) newValue);
return;
case StochasticLanguagePackage.GT_ATTRIBUTE__NEGATIVE:
setNegative((Boolean) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case StochasticLanguagePackage.GT_ATTRIBUTE__ATTRIBUTE:
setAttribute((EAttribute) null);
return;
case StochasticLanguagePackage.GT_ATTRIBUTE__NEGATIVE:
setNegative(NEGATIVE_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case StochasticLanguagePackage.GT_ATTRIBUTE__ATTRIBUTE:
return attribute != null;
case StochasticLanguagePackage.GT_ATTRIBUTE__NEGATIVE:
return negative != NEGATIVE_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (negative: ");
result.append(negative);
result.append(')');
return result.toString();
}
} //GTAttributeImpl
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.emoflon.ibex.gt.SGTPatternModel.GTAttribute;
import org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>GT Attribute</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.impl.GTAttributeImpl#getAttribute <em>Attribute</em>}</li>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.impl.GTAttributeImpl#isNegative <em>Negative</em>}</li>
* </ul>
*
* @generated
*/
public class GTAttributeImpl extends GTStochasticNodeImpl implements GTAttribute {
/**
* The cached value of the '{@link #getAttribute() <em>Attribute</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getAttribute()
* @generated
* @ordered
*/
protected EAttribute attribute;
/**
* The default value of the '{@link #isNegative() <em>Negative</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isNegative()
* @generated
* @ordered
*/
protected static final boolean NEGATIVE_EDEFAULT = false;
/**
* The cached value of the '{@link #isNegative() <em>Negative</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isNegative()
* @generated
* @ordered
*/
protected boolean negative = NEGATIVE_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected GTAttributeImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return SGTPatternModelPackage.Literals.GT_ATTRIBUTE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EAttribute getAttribute() {
if (attribute != null && attribute.eIsProxy()) {
InternalEObject oldAttribute = (InternalEObject) attribute;
attribute = (EAttribute) eResolveProxy(oldAttribute);
if (attribute != oldAttribute) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE,
SGTPatternModelPackage.GT_ATTRIBUTE__ATTRIBUTE, oldAttribute, attribute));
}
}
return attribute;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EAttribute basicGetAttribute() {
return attribute;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setAttribute(EAttribute newAttribute) {
EAttribute oldAttribute = attribute;
attribute = newAttribute;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SGTPatternModelPackage.GT_ATTRIBUTE__ATTRIBUTE,
oldAttribute, attribute));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean isNegative() {
return negative;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setNegative(boolean newNegative) {
boolean oldNegative = negative;
negative = newNegative;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SGTPatternModelPackage.GT_ATTRIBUTE__NEGATIVE,
oldNegative, negative));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case SGTPatternModelPackage.GT_ATTRIBUTE__ATTRIBUTE:
if (resolve)
return getAttribute();
return basicGetAttribute();
case SGTPatternModelPackage.GT_ATTRIBUTE__NEGATIVE:
return isNegative();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case SGTPatternModelPackage.GT_ATTRIBUTE__ATTRIBUTE:
setAttribute((EAttribute) newValue);
return;
case SGTPatternModelPackage.GT_ATTRIBUTE__NEGATIVE:
setNegative((Boolean) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case SGTPatternModelPackage.GT_ATTRIBUTE__ATTRIBUTE:
setAttribute((EAttribute) null);
return;
case SGTPatternModelPackage.GT_ATTRIBUTE__NEGATIVE:
setNegative(NEGATIVE_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case SGTPatternModelPackage.GT_ATTRIBUTE__ATTRIBUTE:
return attribute != null;
case SGTPatternModelPackage.GT_ATTRIBUTE__NEGATIVE:
return negative != NEGATIVE_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (negative: ");
result.append(negative);
result.append(')');
return result.toString();
}
} //GTAttributeImpl

View file

@ -1,167 +1,167 @@
/**
*/
package StochasticLanguage.impl;
import StochasticLanguage.GTNumber;
import StochasticLanguage.StochasticLanguagePackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>GT Number</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link StochasticLanguage.impl.GTNumberImpl#getNumber <em>Number</em>}</li>
* </ul>
*
* @generated
*/
public class GTNumberImpl extends EObjectImpl implements GTNumber {
/**
* The default value of the '{@link #getNumber() <em>Number</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNumber()
* @generated
* @ordered
*/
protected static final double NUMBER_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getNumber() <em>Number</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNumber()
* @generated
* @ordered
*/
protected double number = NUMBER_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected GTNumberImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return StochasticLanguagePackage.Literals.GT_NUMBER;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getNumber() {
return number;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setNumber(double newNumber) {
double oldNumber = number;
number = newNumber;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, StochasticLanguagePackage.GT_NUMBER__NUMBER,
oldNumber, number));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case StochasticLanguagePackage.GT_NUMBER__NUMBER:
return getNumber();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case StochasticLanguagePackage.GT_NUMBER__NUMBER:
setNumber((Double) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case StochasticLanguagePackage.GT_NUMBER__NUMBER:
setNumber(NUMBER_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case StochasticLanguagePackage.GT_NUMBER__NUMBER:
return number != NUMBER_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (number: ");
result.append(number);
result.append(')');
return result.toString();
}
} //GTNumberImpl
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.emoflon.ibex.gt.SGTPatternModel.GTNumber;
import org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>GT Number</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.impl.GTNumberImpl#getNumber <em>Number</em>}</li>
* </ul>
*
* @generated
*/
public class GTNumberImpl extends MinimalEObjectImpl.Container implements GTNumber {
/**
* The default value of the '{@link #getNumber() <em>Number</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNumber()
* @generated
* @ordered
*/
protected static final double NUMBER_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getNumber() <em>Number</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNumber()
* @generated
* @ordered
*/
protected double number = NUMBER_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected GTNumberImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return SGTPatternModelPackage.Literals.GT_NUMBER;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public double getNumber() {
return number;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setNumber(double newNumber) {
double oldNumber = number;
number = newNumber;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SGTPatternModelPackage.GT_NUMBER__NUMBER, oldNumber,
number));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case SGTPatternModelPackage.GT_NUMBER__NUMBER:
return getNumber();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case SGTPatternModelPackage.GT_NUMBER__NUMBER:
setNumber((Double) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case SGTPatternModelPackage.GT_NUMBER__NUMBER:
setNumber(NUMBER_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case SGTPatternModelPackage.GT_NUMBER__NUMBER:
return number != NUMBER_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (number: ");
result.append(number);
result.append(')');
return result.toString();
}
} //GTNumberImpl

View file

@ -1,317 +1,317 @@
/**
*/
package StochasticLanguage.impl;
import StochasticLanguage.GTArithmetics;
import StochasticLanguage.GTOneParameterCalculation;
import StochasticLanguage.OneParameterOperator;
import StochasticLanguage.StochasticLanguagePackage;
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.EObjectImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>GT One Parameter Calculation</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link StochasticLanguage.impl.GTOneParameterCalculationImpl#getValue <em>Value</em>}</li>
* <li>{@link StochasticLanguage.impl.GTOneParameterCalculationImpl#getOperator <em>Operator</em>}</li>
* <li>{@link StochasticLanguage.impl.GTOneParameterCalculationImpl#isNegative <em>Negative</em>}</li>
* </ul>
*
* @generated
*/
public class GTOneParameterCalculationImpl extends EObjectImpl implements GTOneParameterCalculation {
/**
* The cached value of the '{@link #getValue() <em>Value</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValue()
* @generated
* @ordered
*/
protected GTArithmetics value;
/**
* The default value of the '{@link #getOperator() <em>Operator</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOperator()
* @generated
* @ordered
*/
protected static final OneParameterOperator OPERATOR_EDEFAULT = OneParameterOperator.ROOT;
/**
* The cached value of the '{@link #getOperator() <em>Operator</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOperator()
* @generated
* @ordered
*/
protected OneParameterOperator operator = OPERATOR_EDEFAULT;
/**
* The default value of the '{@link #isNegative() <em>Negative</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isNegative()
* @generated
* @ordered
*/
protected static final boolean NEGATIVE_EDEFAULT = false;
/**
* The cached value of the '{@link #isNegative() <em>Negative</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isNegative()
* @generated
* @ordered
*/
protected boolean negative = NEGATIVE_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected GTOneParameterCalculationImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return StochasticLanguagePackage.Literals.GT_ONE_PARAMETER_CALCULATION;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTArithmetics getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValue(GTArithmetics newValue, NotificationChain msgs) {
GTArithmetics oldValue = value;
value = newValue;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION__VALUE, oldValue, newValue);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setValue(GTArithmetics newValue) {
if (newValue != value) {
NotificationChain msgs = null;
if (value != null)
msgs = ((InternalEObject) value).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION__VALUE, null,
msgs);
if (newValue != null)
msgs = ((InternalEObject) newValue).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION__VALUE, null,
msgs);
msgs = basicSetValue(newValue, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION__VALUE, newValue, newValue));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public OneParameterOperator getOperator() {
return operator;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setOperator(OneParameterOperator newOperator) {
OneParameterOperator oldOperator = operator;
operator = newOperator == null ? OPERATOR_EDEFAULT : newOperator;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION__OPERATOR, oldOperator, operator));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean isNegative() {
return negative;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setNegative(boolean newNegative) {
boolean oldNegative = negative;
negative = newNegative;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION__NEGATIVE, oldNegative, negative));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION__VALUE:
return basicSetValue(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 StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION__VALUE:
return getValue();
case StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION__OPERATOR:
return getOperator();
case StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION__NEGATIVE:
return isNegative();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION__VALUE:
setValue((GTArithmetics) newValue);
return;
case StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION__OPERATOR:
setOperator((OneParameterOperator) newValue);
return;
case StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION__NEGATIVE:
setNegative((Boolean) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION__VALUE:
setValue((GTArithmetics) null);
return;
case StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION__OPERATOR:
setOperator(OPERATOR_EDEFAULT);
return;
case StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION__NEGATIVE:
setNegative(NEGATIVE_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION__VALUE:
return value != null;
case StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION__OPERATOR:
return operator != OPERATOR_EDEFAULT;
case StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION__NEGATIVE:
return negative != NEGATIVE_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (operator: ");
result.append(operator);
result.append(", negative: ");
result.append(negative);
result.append(')');
return result.toString();
}
} //GTOneParameterCalculationImpl
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel.impl;
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 org.emoflon.ibex.gt.SGTPatternModel.GTArithmetics;
import org.emoflon.ibex.gt.SGTPatternModel.GTOneParameterCalculation;
import org.emoflon.ibex.gt.SGTPatternModel.OneParameterOperator;
import org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>GT One Parameter Calculation</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.impl.GTOneParameterCalculationImpl#getValue <em>Value</em>}</li>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.impl.GTOneParameterCalculationImpl#getOperator <em>Operator</em>}</li>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.impl.GTOneParameterCalculationImpl#isNegative <em>Negative</em>}</li>
* </ul>
*
* @generated
*/
public class GTOneParameterCalculationImpl extends MinimalEObjectImpl.Container implements GTOneParameterCalculation {
/**
* The cached value of the '{@link #getValue() <em>Value</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValue()
* @generated
* @ordered
*/
protected GTArithmetics value;
/**
* The default value of the '{@link #getOperator() <em>Operator</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOperator()
* @generated
* @ordered
*/
protected static final OneParameterOperator OPERATOR_EDEFAULT = OneParameterOperator.ROOT;
/**
* The cached value of the '{@link #getOperator() <em>Operator</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOperator()
* @generated
* @ordered
*/
protected OneParameterOperator operator = OPERATOR_EDEFAULT;
/**
* The default value of the '{@link #isNegative() <em>Negative</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isNegative()
* @generated
* @ordered
*/
protected static final boolean NEGATIVE_EDEFAULT = false;
/**
* The cached value of the '{@link #isNegative() <em>Negative</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isNegative()
* @generated
* @ordered
*/
protected boolean negative = NEGATIVE_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected GTOneParameterCalculationImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return SGTPatternModelPackage.Literals.GT_ONE_PARAMETER_CALCULATION;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTArithmetics getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValue(GTArithmetics newValue, NotificationChain msgs) {
GTArithmetics oldValue = value;
value = newValue;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
SGTPatternModelPackage.GT_ONE_PARAMETER_CALCULATION__VALUE, oldValue, newValue);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setValue(GTArithmetics newValue) {
if (newValue != value) {
NotificationChain msgs = null;
if (value != null)
msgs = ((InternalEObject) value).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - SGTPatternModelPackage.GT_ONE_PARAMETER_CALCULATION__VALUE, null,
msgs);
if (newValue != null)
msgs = ((InternalEObject) newValue).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - SGTPatternModelPackage.GT_ONE_PARAMETER_CALCULATION__VALUE, null,
msgs);
msgs = basicSetValue(newValue, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
SGTPatternModelPackage.GT_ONE_PARAMETER_CALCULATION__VALUE, newValue, newValue));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public OneParameterOperator getOperator() {
return operator;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setOperator(OneParameterOperator newOperator) {
OneParameterOperator oldOperator = operator;
operator = newOperator == null ? OPERATOR_EDEFAULT : newOperator;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
SGTPatternModelPackage.GT_ONE_PARAMETER_CALCULATION__OPERATOR, oldOperator, operator));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean isNegative() {
return negative;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setNegative(boolean newNegative) {
boolean oldNegative = negative;
negative = newNegative;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
SGTPatternModelPackage.GT_ONE_PARAMETER_CALCULATION__NEGATIVE, oldNegative, negative));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case SGTPatternModelPackage.GT_ONE_PARAMETER_CALCULATION__VALUE:
return basicSetValue(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 SGTPatternModelPackage.GT_ONE_PARAMETER_CALCULATION__VALUE:
return getValue();
case SGTPatternModelPackage.GT_ONE_PARAMETER_CALCULATION__OPERATOR:
return getOperator();
case SGTPatternModelPackage.GT_ONE_PARAMETER_CALCULATION__NEGATIVE:
return isNegative();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case SGTPatternModelPackage.GT_ONE_PARAMETER_CALCULATION__VALUE:
setValue((GTArithmetics) newValue);
return;
case SGTPatternModelPackage.GT_ONE_PARAMETER_CALCULATION__OPERATOR:
setOperator((OneParameterOperator) newValue);
return;
case SGTPatternModelPackage.GT_ONE_PARAMETER_CALCULATION__NEGATIVE:
setNegative((Boolean) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case SGTPatternModelPackage.GT_ONE_PARAMETER_CALCULATION__VALUE:
setValue((GTArithmetics) null);
return;
case SGTPatternModelPackage.GT_ONE_PARAMETER_CALCULATION__OPERATOR:
setOperator(OPERATOR_EDEFAULT);
return;
case SGTPatternModelPackage.GT_ONE_PARAMETER_CALCULATION__NEGATIVE:
setNegative(NEGATIVE_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case SGTPatternModelPackage.GT_ONE_PARAMETER_CALCULATION__VALUE:
return value != null;
case SGTPatternModelPackage.GT_ONE_PARAMETER_CALCULATION__OPERATOR:
return operator != OPERATOR_EDEFAULT;
case SGTPatternModelPackage.GT_ONE_PARAMETER_CALCULATION__NEGATIVE:
return negative != NEGATIVE_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (operator: ");
result.append(operator);
result.append(", negative: ");
result.append(negative);
result.append(')');
return result.toString();
}
} //GTOneParameterCalculationImpl

View file

@ -1,333 +1,333 @@
/**
*/
package StochasticLanguage.impl;
import StochasticLanguage.GTArithmetics;
import StochasticLanguage.GTStochasticDistribution;
import StochasticLanguage.GTStochasticFunction;
import StochasticLanguage.StochasticLanguagePackage;
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.EObjectImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>GT Stochastic Function</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link StochasticLanguage.impl.GTStochasticFunctionImpl#getMean <em>Mean</em>}</li>
* <li>{@link StochasticLanguage.impl.GTStochasticFunctionImpl#getSd <em>Sd</em>}</li>
* <li>{@link StochasticLanguage.impl.GTStochasticFunctionImpl#getDistribution <em>Distribution</em>}</li>
* </ul>
*
* @generated
*/
public class GTStochasticFunctionImpl extends EObjectImpl implements GTStochasticFunction {
/**
* The cached value of the '{@link #getMean() <em>Mean</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMean()
* @generated
* @ordered
*/
protected GTArithmetics mean;
/**
* The cached value of the '{@link #getSd() <em>Sd</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getSd()
* @generated
* @ordered
*/
protected GTArithmetics sd;
/**
* The default value of the '{@link #getDistribution() <em>Distribution</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDistribution()
* @generated
* @ordered
*/
protected static final GTStochasticDistribution DISTRIBUTION_EDEFAULT = GTStochasticDistribution.NORMAL;
/**
* The cached value of the '{@link #getDistribution() <em>Distribution</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDistribution()
* @generated
* @ordered
*/
protected GTStochasticDistribution distribution = DISTRIBUTION_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected GTStochasticFunctionImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return StochasticLanguagePackage.Literals.GT_STOCHASTIC_FUNCTION;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTArithmetics getMean() {
return mean;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetMean(GTArithmetics newMean, NotificationChain msgs) {
GTArithmetics oldMean = mean;
mean = newMean;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__MEAN, oldMean, newMean);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setMean(GTArithmetics newMean) {
if (newMean != mean) {
NotificationChain msgs = null;
if (mean != null)
msgs = ((InternalEObject) mean).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__MEAN, null, msgs);
if (newMean != null)
msgs = ((InternalEObject) newMean).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__MEAN, null, msgs);
msgs = basicSetMean(newMean, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__MEAN, newMean, newMean));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTArithmetics getSd() {
return sd;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetSd(GTArithmetics newSd, NotificationChain msgs) {
GTArithmetics oldSd = sd;
sd = newSd;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__SD, oldSd, newSd);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setSd(GTArithmetics newSd) {
if (newSd != sd) {
NotificationChain msgs = null;
if (sd != null)
msgs = ((InternalEObject) sd).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__SD, null, msgs);
if (newSd != null)
msgs = ((InternalEObject) newSd).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__SD, null, msgs);
msgs = basicSetSd(newSd, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__SD,
newSd, newSd));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTStochasticDistribution getDistribution() {
return distribution;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setDistribution(GTStochasticDistribution newDistribution) {
GTStochasticDistribution oldDistribution = distribution;
distribution = newDistribution == null ? DISTRIBUTION_EDEFAULT : newDistribution;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__DISTRIBUTION, oldDistribution, distribution));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__MEAN:
return basicSetMean(null, msgs);
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__SD:
return basicSetSd(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 StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__MEAN:
return getMean();
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__SD:
return getSd();
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__DISTRIBUTION:
return getDistribution();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__MEAN:
setMean((GTArithmetics) newValue);
return;
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__SD:
setSd((GTArithmetics) newValue);
return;
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__DISTRIBUTION:
setDistribution((GTStochasticDistribution) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__MEAN:
setMean((GTArithmetics) null);
return;
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__SD:
setSd((GTArithmetics) null);
return;
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__DISTRIBUTION:
setDistribution(DISTRIBUTION_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__MEAN:
return mean != null;
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__SD:
return sd != null;
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION__DISTRIBUTION:
return distribution != DISTRIBUTION_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (distribution: ");
result.append(distribution);
result.append(')');
return result.toString();
}
} //GTStochasticFunctionImpl
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel.impl;
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 org.emoflon.ibex.gt.SGTPatternModel.GTArithmetics;
import org.emoflon.ibex.gt.SGTPatternModel.GTStochasticDistribution;
import org.emoflon.ibex.gt.SGTPatternModel.GTStochasticFunction;
import org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>GT Stochastic Function</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.impl.GTStochasticFunctionImpl#getMean <em>Mean</em>}</li>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.impl.GTStochasticFunctionImpl#getSd <em>Sd</em>}</li>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.impl.GTStochasticFunctionImpl#getDistribution <em>Distribution</em>}</li>
* </ul>
*
* @generated
*/
public class GTStochasticFunctionImpl extends MinimalEObjectImpl.Container implements GTStochasticFunction {
/**
* The cached value of the '{@link #getMean() <em>Mean</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMean()
* @generated
* @ordered
*/
protected GTArithmetics mean;
/**
* The cached value of the '{@link #getSd() <em>Sd</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getSd()
* @generated
* @ordered
*/
protected GTArithmetics sd;
/**
* The default value of the '{@link #getDistribution() <em>Distribution</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDistribution()
* @generated
* @ordered
*/
protected static final GTStochasticDistribution DISTRIBUTION_EDEFAULT = GTStochasticDistribution.NORMAL;
/**
* The cached value of the '{@link #getDistribution() <em>Distribution</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDistribution()
* @generated
* @ordered
*/
protected GTStochasticDistribution distribution = DISTRIBUTION_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected GTStochasticFunctionImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return SGTPatternModelPackage.Literals.GT_STOCHASTIC_FUNCTION;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTArithmetics getMean() {
return mean;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetMean(GTArithmetics newMean, NotificationChain msgs) {
GTArithmetics oldMean = mean;
mean = newMean;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__MEAN, oldMean, newMean);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setMean(GTArithmetics newMean) {
if (newMean != mean) {
NotificationChain msgs = null;
if (mean != null)
msgs = ((InternalEObject) mean).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__MEAN, null, msgs);
if (newMean != null)
msgs = ((InternalEObject) newMean).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__MEAN, null, msgs);
msgs = basicSetMean(newMean, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__MEAN,
newMean, newMean));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTArithmetics getSd() {
return sd;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetSd(GTArithmetics newSd, NotificationChain msgs) {
GTArithmetics oldSd = sd;
sd = newSd;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__SD, oldSd, newSd);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setSd(GTArithmetics newSd) {
if (newSd != sd) {
NotificationChain msgs = null;
if (sd != null)
msgs = ((InternalEObject) sd).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__SD, null, msgs);
if (newSd != null)
msgs = ((InternalEObject) newSd).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__SD, null, msgs);
msgs = basicSetSd(newSd, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__SD,
newSd, newSd));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTStochasticDistribution getDistribution() {
return distribution;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setDistribution(GTStochasticDistribution newDistribution) {
GTStochasticDistribution oldDistribution = distribution;
distribution = newDistribution == null ? DISTRIBUTION_EDEFAULT : newDistribution;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__DISTRIBUTION, oldDistribution, distribution));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__MEAN:
return basicSetMean(null, msgs);
case SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__SD:
return basicSetSd(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 SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__MEAN:
return getMean();
case SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__SD:
return getSd();
case SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__DISTRIBUTION:
return getDistribution();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__MEAN:
setMean((GTArithmetics) newValue);
return;
case SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__SD:
setSd((GTArithmetics) newValue);
return;
case SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__DISTRIBUTION:
setDistribution((GTStochasticDistribution) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__MEAN:
setMean((GTArithmetics) null);
return;
case SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__SD:
setSd((GTArithmetics) null);
return;
case SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__DISTRIBUTION:
setDistribution(DISTRIBUTION_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__MEAN:
return mean != null;
case SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__SD:
return sd != null;
case SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION__DISTRIBUTION:
return distribution != DISTRIBUTION_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (distribution: ");
result.append(distribution);
result.append(')');
return result.toString();
}
} //GTStochasticFunctionImpl

View file

@ -1,167 +1,168 @@
/**
*/
package StochasticLanguage.impl;
import StochasticLanguage.GTStochasticNamedElement;
import StochasticLanguage.StochasticLanguagePackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>GT Stochastic Named Element</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link StochasticLanguage.impl.GTStochasticNamedElementImpl#getName <em>Name</em>}</li>
* </ul>
*
* @generated
*/
public abstract class GTStochasticNamedElementImpl extends EObjectImpl implements GTStochasticNamedElement {
/**
* 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 GTStochasticNamedElementImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return StochasticLanguagePackage.Literals.GT_STOCHASTIC_NAMED_ELEMENT;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_STOCHASTIC_NAMED_ELEMENT__NAME, oldName, name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case StochasticLanguagePackage.GT_STOCHASTIC_NAMED_ELEMENT__NAME:
return getName();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case StochasticLanguagePackage.GT_STOCHASTIC_NAMED_ELEMENT__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 StochasticLanguagePackage.GT_STOCHASTIC_NAMED_ELEMENT__NAME:
setName(NAME_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case StochasticLanguagePackage.GT_STOCHASTIC_NAMED_ELEMENT__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();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (name: ");
result.append(name);
result.append(')');
return result.toString();
}
} //GTStochasticNamedElementImpl
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.emoflon.ibex.gt.SGTPatternModel.GTStochasticNamedElement;
import org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>GT Stochastic Named Element</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.impl.GTStochasticNamedElementImpl#getName <em>Name</em>}</li>
* </ul>
*
* @generated
*/
public abstract class GTStochasticNamedElementImpl extends MinimalEObjectImpl.Container
implements GTStochasticNamedElement {
/**
* 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 GTStochasticNamedElementImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return SGTPatternModelPackage.Literals.GT_STOCHASTIC_NAMED_ELEMENT;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
SGTPatternModelPackage.GT_STOCHASTIC_NAMED_ELEMENT__NAME, oldName, name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case SGTPatternModelPackage.GT_STOCHASTIC_NAMED_ELEMENT__NAME:
return getName();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case SGTPatternModelPackage.GT_STOCHASTIC_NAMED_ELEMENT__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 SGTPatternModelPackage.GT_STOCHASTIC_NAMED_ELEMENT__NAME:
setName(NAME_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case SGTPatternModelPackage.GT_STOCHASTIC_NAMED_ELEMENT__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();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (name: ");
result.append(name);
result.append(')');
return result.toString();
}
} //GTStochasticNamedElementImpl

View file

@ -1,160 +1,160 @@
/**
*/
package StochasticLanguage.impl;
import StochasticLanguage.GTStochasticNode;
import StochasticLanguage.StochasticLanguagePackage;
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;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>GT Stochastic Node</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link StochasticLanguage.impl.GTStochasticNodeImpl#getType <em>Type</em>}</li>
* </ul>
*
* @generated
*/
public class GTStochasticNodeImpl extends GTStochasticNamedElementImpl implements GTStochasticNode {
/**
* The cached value of the '{@link #getType() <em>Type</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getType()
* @generated
* @ordered
*/
protected EClass type;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected GTStochasticNodeImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return StochasticLanguagePackage.Literals.GT_STOCHASTIC_NODE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EClass getType() {
if (type != null && type.eIsProxy()) {
InternalEObject oldType = (InternalEObject) type;
type = (EClass) eResolveProxy(oldType);
if (type != oldType) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE,
StochasticLanguagePackage.GT_STOCHASTIC_NODE__TYPE, oldType, type));
}
}
return type;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass basicGetType() {
return type;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setType(EClass newType) {
EClass oldType = type;
type = newType;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, StochasticLanguagePackage.GT_STOCHASTIC_NODE__TYPE,
oldType, type));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case StochasticLanguagePackage.GT_STOCHASTIC_NODE__TYPE:
if (resolve)
return getType();
return basicGetType();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case StochasticLanguagePackage.GT_STOCHASTIC_NODE__TYPE:
setType((EClass) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case StochasticLanguagePackage.GT_STOCHASTIC_NODE__TYPE:
setType((EClass) null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case StochasticLanguagePackage.GT_STOCHASTIC_NODE__TYPE:
return type != null;
}
return super.eIsSet(featureID);
}
} //GTStochasticNodeImpl
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel.impl;
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 org.emoflon.ibex.gt.SGTPatternModel.GTStochasticNode;
import org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>GT Stochastic Node</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.impl.GTStochasticNodeImpl#getType <em>Type</em>}</li>
* </ul>
*
* @generated
*/
public class GTStochasticNodeImpl extends GTStochasticNamedElementImpl implements GTStochasticNode {
/**
* The cached value of the '{@link #getType() <em>Type</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getType()
* @generated
* @ordered
*/
protected EClass type;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected GTStochasticNodeImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return SGTPatternModelPackage.Literals.GT_STOCHASTIC_NODE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EClass getType() {
if (type != null && type.eIsProxy()) {
InternalEObject oldType = (InternalEObject) type;
type = (EClass) eResolveProxy(oldType);
if (type != oldType) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE,
SGTPatternModelPackage.GT_STOCHASTIC_NODE__TYPE, oldType, type));
}
}
return type;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass basicGetType() {
return type;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setType(EClass newType) {
EClass oldType = type;
type = newType;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SGTPatternModelPackage.GT_STOCHASTIC_NODE__TYPE,
oldType, type));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case SGTPatternModelPackage.GT_STOCHASTIC_NODE__TYPE:
if (resolve)
return getType();
return basicGetType();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case SGTPatternModelPackage.GT_STOCHASTIC_NODE__TYPE:
setType((EClass) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case SGTPatternModelPackage.GT_STOCHASTIC_NODE__TYPE:
setType((EClass) null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case SGTPatternModelPackage.GT_STOCHASTIC_NODE__TYPE:
return type != null;
}
return super.eIsSet(featureID);
}
} //GTStochasticNodeImpl

View file

@ -1,337 +1,335 @@
/**
*/
package StochasticLanguage.impl;
import StochasticLanguage.GTArithmetics;
import StochasticLanguage.GTTwoParameterCalculation;
import StochasticLanguage.StochasticLanguagePackage;
import StochasticLanguage.TwoParameterOperator;
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.EObjectImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>GT Two Parameter Calculation</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link StochasticLanguage.impl.GTTwoParameterCalculationImpl#getLeft <em>Left</em>}</li>
* <li>{@link StochasticLanguage.impl.GTTwoParameterCalculationImpl#getRight <em>Right</em>}</li>
* <li>{@link StochasticLanguage.impl.GTTwoParameterCalculationImpl#getOperator <em>Operator</em>}</li>
* </ul>
*
* @generated
*/
public class GTTwoParameterCalculationImpl extends EObjectImpl implements GTTwoParameterCalculation {
/**
* The cached value of the '{@link #getLeft() <em>Left</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getLeft()
* @generated
* @ordered
*/
protected GTArithmetics left;
/**
* The cached value of the '{@link #getRight() <em>Right</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getRight()
* @generated
* @ordered
*/
protected GTArithmetics right;
/**
* The default value of the '{@link #getOperator() <em>Operator</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOperator()
* @generated
* @ordered
*/
protected static final TwoParameterOperator OPERATOR_EDEFAULT = TwoParameterOperator.ADDITION;
/**
* The cached value of the '{@link #getOperator() <em>Operator</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOperator()
* @generated
* @ordered
*/
protected TwoParameterOperator operator = OPERATOR_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected GTTwoParameterCalculationImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return StochasticLanguagePackage.Literals.GT_TWO_PARAMETER_CALCULATION;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTArithmetics getLeft() {
return left;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetLeft(GTArithmetics newLeft, NotificationChain msgs) {
GTArithmetics oldLeft = left;
left = newLeft;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__LEFT, oldLeft, newLeft);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setLeft(GTArithmetics newLeft) {
if (newLeft != left) {
NotificationChain msgs = null;
if (left != null)
msgs = ((InternalEObject) left).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__LEFT, null,
msgs);
if (newLeft != null)
msgs = ((InternalEObject) newLeft).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__LEFT, null,
msgs);
msgs = basicSetLeft(newLeft, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__LEFT, newLeft, newLeft));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTArithmetics getRight() {
return right;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetRight(GTArithmetics newRight, NotificationChain msgs) {
GTArithmetics oldRight = right;
right = newRight;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__RIGHT, oldRight, newRight);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setRight(GTArithmetics newRight) {
if (newRight != right) {
NotificationChain msgs = null;
if (right != null)
msgs = ((InternalEObject) right).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__RIGHT, null,
msgs);
if (newRight != null)
msgs = ((InternalEObject) newRight).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__RIGHT, null,
msgs);
msgs = basicSetRight(newRight, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__RIGHT, newRight, newRight));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public TwoParameterOperator getOperator() {
return operator;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setOperator(TwoParameterOperator newOperator) {
TwoParameterOperator oldOperator = operator;
operator = newOperator == null ? OPERATOR_EDEFAULT : newOperator;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__OPERATOR, oldOperator, operator));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__LEFT:
return basicSetLeft(null, msgs);
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__RIGHT:
return basicSetRight(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 StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__LEFT:
return getLeft();
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__RIGHT:
return getRight();
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__OPERATOR:
return getOperator();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__LEFT:
setLeft((GTArithmetics) newValue);
return;
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__RIGHT:
setRight((GTArithmetics) newValue);
return;
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__OPERATOR:
setOperator((TwoParameterOperator) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__LEFT:
setLeft((GTArithmetics) null);
return;
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__RIGHT:
setRight((GTArithmetics) null);
return;
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__OPERATOR:
setOperator(OPERATOR_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__LEFT:
return left != null;
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__RIGHT:
return right != null;
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION__OPERATOR:
return operator != OPERATOR_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (operator: ");
result.append(operator);
result.append(')');
return result.toString();
}
} //GTTwoParameterCalculationImpl
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel.impl;
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 org.emoflon.ibex.gt.SGTPatternModel.GTArithmetics;
import org.emoflon.ibex.gt.SGTPatternModel.GTTwoParameterCalculation;
import org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage;
import org.emoflon.ibex.gt.SGTPatternModel.TwoParameterOperator;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>GT Two Parameter Calculation</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.impl.GTTwoParameterCalculationImpl#getLeft <em>Left</em>}</li>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.impl.GTTwoParameterCalculationImpl#getRight <em>Right</em>}</li>
* <li>{@link org.emoflon.ibex.gt.SGTPatternModel.impl.GTTwoParameterCalculationImpl#getOperator <em>Operator</em>}</li>
* </ul>
*
* @generated
*/
public class GTTwoParameterCalculationImpl extends MinimalEObjectImpl.Container implements GTTwoParameterCalculation {
/**
* The cached value of the '{@link #getLeft() <em>Left</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getLeft()
* @generated
* @ordered
*/
protected GTArithmetics left;
/**
* The cached value of the '{@link #getRight() <em>Right</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getRight()
* @generated
* @ordered
*/
protected GTArithmetics right;
/**
* The default value of the '{@link #getOperator() <em>Operator</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOperator()
* @generated
* @ordered
*/
protected static final TwoParameterOperator OPERATOR_EDEFAULT = TwoParameterOperator.ADDITION;
/**
* The cached value of the '{@link #getOperator() <em>Operator</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOperator()
* @generated
* @ordered
*/
protected TwoParameterOperator operator = OPERATOR_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected GTTwoParameterCalculationImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return SGTPatternModelPackage.Literals.GT_TWO_PARAMETER_CALCULATION;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTArithmetics getLeft() {
return left;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetLeft(GTArithmetics newLeft, NotificationChain msgs) {
GTArithmetics oldLeft = left;
left = newLeft;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__LEFT, oldLeft, newLeft);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setLeft(GTArithmetics newLeft) {
if (newLeft != left) {
NotificationChain msgs = null;
if (left != null)
msgs = ((InternalEObject) left).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__LEFT, null, msgs);
if (newLeft != null)
msgs = ((InternalEObject) newLeft).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__LEFT, null, msgs);
msgs = basicSetLeft(newLeft, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__LEFT, newLeft, newLeft));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTArithmetics getRight() {
return right;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetRight(GTArithmetics newRight, NotificationChain msgs) {
GTArithmetics oldRight = right;
right = newRight;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__RIGHT, oldRight, newRight);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setRight(GTArithmetics newRight) {
if (newRight != right) {
NotificationChain msgs = null;
if (right != null)
msgs = ((InternalEObject) right).eInverseRemove(this,
EOPPOSITE_FEATURE_BASE - SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__RIGHT, null,
msgs);
if (newRight != null)
msgs = ((InternalEObject) newRight).eInverseAdd(this,
EOPPOSITE_FEATURE_BASE - SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__RIGHT, null,
msgs);
msgs = basicSetRight(newRight, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__RIGHT, newRight, newRight));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public TwoParameterOperator getOperator() {
return operator;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setOperator(TwoParameterOperator newOperator) {
TwoParameterOperator oldOperator = operator;
operator = newOperator == null ? OPERATOR_EDEFAULT : newOperator;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET,
SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__OPERATOR, oldOperator, operator));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__LEFT:
return basicSetLeft(null, msgs);
case SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__RIGHT:
return basicSetRight(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 SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__LEFT:
return getLeft();
case SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__RIGHT:
return getRight();
case SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__OPERATOR:
return getOperator();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__LEFT:
setLeft((GTArithmetics) newValue);
return;
case SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__RIGHT:
setRight((GTArithmetics) newValue);
return;
case SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__OPERATOR:
setOperator((TwoParameterOperator) newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__LEFT:
setLeft((GTArithmetics) null);
return;
case SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__RIGHT:
setRight((GTArithmetics) null);
return;
case SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__OPERATOR:
setOperator(OPERATOR_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__LEFT:
return left != null;
case SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__RIGHT:
return right != null;
case SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION__OPERATOR:
return operator != OPERATOR_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy())
return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (operator: ");
result.append(operator);
result.append(')');
return result.toString();
}
} //GTTwoParameterCalculationImpl

View file

@ -1,320 +1,320 @@
/**
*/
package StochasticLanguage.impl;
import StochasticLanguage.*;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EDataType;
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;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
* @generated
*/
public class StochasticLanguageFactoryImpl extends EFactoryImpl implements StochasticLanguageFactory {
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static StochasticLanguageFactory init() {
try {
StochasticLanguageFactory theStochasticLanguageFactory = (StochasticLanguageFactory) EPackage.Registry.INSTANCE
.getEFactory(StochasticLanguagePackage.eNS_URI);
if (theStochasticLanguageFactory != null) {
return theStochasticLanguageFactory;
}
} catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new StochasticLanguageFactoryImpl();
}
/**
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public StochasticLanguageFactoryImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case StochasticLanguagePackage.GT_STOCHASTIC_NODE:
return createGTStochasticNode();
case StochasticLanguagePackage.GT_ATTRIBUTE:
return createGTAttribute();
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION:
return createGTStochasticFunction();
case StochasticLanguagePackage.GT_NUMBER:
return createGTNumber();
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION:
return createGTTwoParameterCalculation();
case StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION:
return createGTOneParameterCalculation();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object createFromString(EDataType eDataType, String initialValue) {
switch (eDataType.getClassifierID()) {
case StochasticLanguagePackage.GT_STOCHASTIC_DISTRIBUTION:
return createGTStochasticDistributionFromString(eDataType, initialValue);
case StochasticLanguagePackage.GT_STOCHASTIC_RANGE:
return createGTStochasticRangeFromString(eDataType, initialValue);
case StochasticLanguagePackage.TWO_PARAMETER_OPERATOR:
return createTwoParameterOperatorFromString(eDataType, initialValue);
case StochasticLanguagePackage.ONE_PARAMETER_OPERATOR:
return createOneParameterOperatorFromString(eDataType, initialValue);
case StochasticLanguagePackage.GT_RELATION:
return createGTRelationFromString(eDataType, initialValue);
default:
throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String convertToString(EDataType eDataType, Object instanceValue) {
switch (eDataType.getClassifierID()) {
case StochasticLanguagePackage.GT_STOCHASTIC_DISTRIBUTION:
return convertGTStochasticDistributionToString(eDataType, instanceValue);
case StochasticLanguagePackage.GT_STOCHASTIC_RANGE:
return convertGTStochasticRangeToString(eDataType, instanceValue);
case StochasticLanguagePackage.TWO_PARAMETER_OPERATOR:
return convertTwoParameterOperatorToString(eDataType, instanceValue);
case StochasticLanguagePackage.ONE_PARAMETER_OPERATOR:
return convertOneParameterOperatorToString(eDataType, instanceValue);
case StochasticLanguagePackage.GT_RELATION:
return convertGTRelationToString(eDataType, instanceValue);
default:
throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTStochasticNode createGTStochasticNode() {
GTStochasticNodeImpl gtStochasticNode = new GTStochasticNodeImpl();
return gtStochasticNode;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTAttribute createGTAttribute() {
GTAttributeImpl gtAttribute = new GTAttributeImpl();
return gtAttribute;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTStochasticFunction createGTStochasticFunction() {
GTStochasticFunctionImpl gtStochasticFunction = new GTStochasticFunctionImpl();
return gtStochasticFunction;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTNumber createGTNumber() {
GTNumberImpl gtNumber = new GTNumberImpl();
return gtNumber;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTTwoParameterCalculation createGTTwoParameterCalculation() {
GTTwoParameterCalculationImpl gtTwoParameterCalculation = new GTTwoParameterCalculationImpl();
return gtTwoParameterCalculation;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTOneParameterCalculation createGTOneParameterCalculation() {
GTOneParameterCalculationImpl gtOneParameterCalculation = new GTOneParameterCalculationImpl();
return gtOneParameterCalculation;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public GTStochasticDistribution createGTStochasticDistributionFromString(EDataType eDataType, String initialValue) {
GTStochasticDistribution result = GTStochasticDistribution.get(initialValue);
if (result == null)
throw new IllegalArgumentException(
"The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String convertGTStochasticDistributionToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public GTStochasticRange createGTStochasticRangeFromString(EDataType eDataType, String initialValue) {
GTStochasticRange result = GTStochasticRange.get(initialValue);
if (result == null)
throw new IllegalArgumentException(
"The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String convertGTStochasticRangeToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public TwoParameterOperator createTwoParameterOperatorFromString(EDataType eDataType, String initialValue) {
TwoParameterOperator result = TwoParameterOperator.get(initialValue);
if (result == null)
throw new IllegalArgumentException(
"The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String convertTwoParameterOperatorToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public OneParameterOperator createOneParameterOperatorFromString(EDataType eDataType, String initialValue) {
OneParameterOperator result = OneParameterOperator.get(initialValue);
if (result == null)
throw new IllegalArgumentException(
"The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String convertOneParameterOperatorToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public GTRelation createGTRelationFromString(EDataType eDataType, String initialValue) {
GTRelation result = GTRelation.get(initialValue);
if (result == null)
throw new IllegalArgumentException(
"The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String convertGTRelationToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public StochasticLanguagePackage getStochasticLanguagePackage() {
return (StochasticLanguagePackage) getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @deprecated
* @generated
*/
@Deprecated
public static StochasticLanguagePackage getPackage() {
return StochasticLanguagePackage.eINSTANCE;
}
} //StochasticLanguageFactoryImpl
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EDataType;
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 org.emoflon.ibex.gt.SGTPatternModel.*;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
* @generated
*/
public class SGTPatternModelFactoryImpl extends EFactoryImpl implements SGTPatternModelFactory {
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static SGTPatternModelFactory init() {
try {
SGTPatternModelFactory theSGTPatternModelFactory = (SGTPatternModelFactory) EPackage.Registry.INSTANCE
.getEFactory(SGTPatternModelPackage.eNS_URI);
if (theSGTPatternModelFactory != null) {
return theSGTPatternModelFactory;
}
} catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new SGTPatternModelFactoryImpl();
}
/**
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public SGTPatternModelFactoryImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case SGTPatternModelPackage.GT_STOCHASTIC_NODE:
return createGTStochasticNode();
case SGTPatternModelPackage.GT_ATTRIBUTE:
return createGTAttribute();
case SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION:
return createGTStochasticFunction();
case SGTPatternModelPackage.GT_NUMBER:
return createGTNumber();
case SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION:
return createGTTwoParameterCalculation();
case SGTPatternModelPackage.GT_ONE_PARAMETER_CALCULATION:
return createGTOneParameterCalculation();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object createFromString(EDataType eDataType, String initialValue) {
switch (eDataType.getClassifierID()) {
case SGTPatternModelPackage.GT_STOCHASTIC_DISTRIBUTION:
return createGTStochasticDistributionFromString(eDataType, initialValue);
case SGTPatternModelPackage.GT_STOCHASTIC_RANGE:
return createGTStochasticRangeFromString(eDataType, initialValue);
case SGTPatternModelPackage.TWO_PARAMETER_OPERATOR:
return createTwoParameterOperatorFromString(eDataType, initialValue);
case SGTPatternModelPackage.ONE_PARAMETER_OPERATOR:
return createOneParameterOperatorFromString(eDataType, initialValue);
case SGTPatternModelPackage.GT_RELATION:
return createGTRelationFromString(eDataType, initialValue);
default:
throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String convertToString(EDataType eDataType, Object instanceValue) {
switch (eDataType.getClassifierID()) {
case SGTPatternModelPackage.GT_STOCHASTIC_DISTRIBUTION:
return convertGTStochasticDistributionToString(eDataType, instanceValue);
case SGTPatternModelPackage.GT_STOCHASTIC_RANGE:
return convertGTStochasticRangeToString(eDataType, instanceValue);
case SGTPatternModelPackage.TWO_PARAMETER_OPERATOR:
return convertTwoParameterOperatorToString(eDataType, instanceValue);
case SGTPatternModelPackage.ONE_PARAMETER_OPERATOR:
return convertOneParameterOperatorToString(eDataType, instanceValue);
case SGTPatternModelPackage.GT_RELATION:
return convertGTRelationToString(eDataType, instanceValue);
default:
throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTStochasticNode createGTStochasticNode() {
GTStochasticNodeImpl gtStochasticNode = new GTStochasticNodeImpl();
return gtStochasticNode;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTAttribute createGTAttribute() {
GTAttributeImpl gtAttribute = new GTAttributeImpl();
return gtAttribute;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTStochasticFunction createGTStochasticFunction() {
GTStochasticFunctionImpl gtStochasticFunction = new GTStochasticFunctionImpl();
return gtStochasticFunction;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTNumber createGTNumber() {
GTNumberImpl gtNumber = new GTNumberImpl();
return gtNumber;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTTwoParameterCalculation createGTTwoParameterCalculation() {
GTTwoParameterCalculationImpl gtTwoParameterCalculation = new GTTwoParameterCalculationImpl();
return gtTwoParameterCalculation;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public GTOneParameterCalculation createGTOneParameterCalculation() {
GTOneParameterCalculationImpl gtOneParameterCalculation = new GTOneParameterCalculationImpl();
return gtOneParameterCalculation;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public GTStochasticDistribution createGTStochasticDistributionFromString(EDataType eDataType, String initialValue) {
GTStochasticDistribution result = GTStochasticDistribution.get(initialValue);
if (result == null)
throw new IllegalArgumentException(
"The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String convertGTStochasticDistributionToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public GTStochasticRange createGTStochasticRangeFromString(EDataType eDataType, String initialValue) {
GTStochasticRange result = GTStochasticRange.get(initialValue);
if (result == null)
throw new IllegalArgumentException(
"The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String convertGTStochasticRangeToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public TwoParameterOperator createTwoParameterOperatorFromString(EDataType eDataType, String initialValue) {
TwoParameterOperator result = TwoParameterOperator.get(initialValue);
if (result == null)
throw new IllegalArgumentException(
"The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String convertTwoParameterOperatorToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public OneParameterOperator createOneParameterOperatorFromString(EDataType eDataType, String initialValue) {
OneParameterOperator result = OneParameterOperator.get(initialValue);
if (result == null)
throw new IllegalArgumentException(
"The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String convertOneParameterOperatorToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public GTRelation createGTRelationFromString(EDataType eDataType, String initialValue) {
GTRelation result = GTRelation.get(initialValue);
if (result == null)
throw new IllegalArgumentException(
"The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String convertGTRelationToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public SGTPatternModelPackage getSGTPatternModelPackage() {
return (SGTPatternModelPackage) getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @deprecated
* @generated
*/
@Deprecated
public static SGTPatternModelPackage getPackage() {
return SGTPatternModelPackage.eINSTANCE;
}
} //SGTPatternModelFactoryImpl

View file

@ -1,252 +1,252 @@
/**
*/
package StochasticLanguage.util;
import StochasticLanguage.*;
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;
/**
* <!-- 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 StochasticLanguage.StochasticLanguagePackage
* @generated
*/
public class StochasticLanguageAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static StochasticLanguagePackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public StochasticLanguageAdapterFactory() {
if (modelPackage == null) {
modelPackage = StochasticLanguagePackage.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 StochasticLanguageSwitch<Adapter> modelSwitch = new StochasticLanguageSwitch<Adapter>() {
@Override
public Adapter caseGTStochasticNamedElement(GTStochasticNamedElement object) {
return createGTStochasticNamedElementAdapter();
}
@Override
public Adapter caseGTStochasticNode(GTStochasticNode object) {
return createGTStochasticNodeAdapter();
}
@Override
public Adapter caseGTAttribute(GTAttribute object) {
return createGTAttributeAdapter();
}
@Override
public Adapter caseGTStochasticFunction(GTStochasticFunction object) {
return createGTStochasticFunctionAdapter();
}
@Override
public Adapter caseGTNumber(GTNumber object) {
return createGTNumberAdapter();
}
@Override
public Adapter caseGTArithmetics(GTArithmetics object) {
return createGTArithmeticsAdapter();
}
@Override
public Adapter caseGTTwoParameterCalculation(GTTwoParameterCalculation object) {
return createGTTwoParameterCalculationAdapter();
}
@Override
public Adapter caseGTOneParameterCalculation(GTOneParameterCalculation object) {
return createGTOneParameterCalculationAdapter();
}
@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 StochasticLanguage.GTStochasticNamedElement <em>GT Stochastic Named Element</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 StochasticLanguage.GTStochasticNamedElement
* @generated
*/
public Adapter createGTStochasticNamedElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link StochasticLanguage.GTStochasticNode <em>GT Stochastic Node</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 StochasticLanguage.GTStochasticNode
* @generated
*/
public Adapter createGTStochasticNodeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link StochasticLanguage.GTAttribute <em>GT Attribute</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 StochasticLanguage.GTAttribute
* @generated
*/
public Adapter createGTAttributeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link StochasticLanguage.GTStochasticFunction <em>GT Stochastic Function</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 StochasticLanguage.GTStochasticFunction
* @generated
*/
public Adapter createGTStochasticFunctionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link StochasticLanguage.GTNumber <em>GT Number</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 StochasticLanguage.GTNumber
* @generated
*/
public Adapter createGTNumberAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link StochasticLanguage.GTArithmetics <em>GT Arithmetics</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 StochasticLanguage.GTArithmetics
* @generated
*/
public Adapter createGTArithmeticsAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link StochasticLanguage.GTTwoParameterCalculation <em>GT Two Parameter Calculation</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 StochasticLanguage.GTTwoParameterCalculation
* @generated
*/
public Adapter createGTTwoParameterCalculationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link StochasticLanguage.GTOneParameterCalculation <em>GT One Parameter Calculation</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 StochasticLanguage.GTOneParameterCalculation
* @generated
*/
public Adapter createGTOneParameterCalculationAdapter() {
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;
}
} //StochasticLanguageAdapterFactory
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel.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 org.emoflon.ibex.gt.SGTPatternModel.*;
/**
* <!-- 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 org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage
* @generated
*/
public class SGTPatternModelAdapterFactory extends AdapterFactoryImpl {
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static SGTPatternModelPackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public SGTPatternModelAdapterFactory() {
if (modelPackage == null) {
modelPackage = SGTPatternModelPackage.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 SGTPatternModelSwitch<Adapter> modelSwitch = new SGTPatternModelSwitch<Adapter>() {
@Override
public Adapter caseGTStochasticNamedElement(GTStochasticNamedElement object) {
return createGTStochasticNamedElementAdapter();
}
@Override
public Adapter caseGTStochasticNode(GTStochasticNode object) {
return createGTStochasticNodeAdapter();
}
@Override
public Adapter caseGTAttribute(GTAttribute object) {
return createGTAttributeAdapter();
}
@Override
public Adapter caseGTStochasticFunction(GTStochasticFunction object) {
return createGTStochasticFunctionAdapter();
}
@Override
public Adapter caseGTNumber(GTNumber object) {
return createGTNumberAdapter();
}
@Override
public Adapter caseGTArithmetics(GTArithmetics object) {
return createGTArithmeticsAdapter();
}
@Override
public Adapter caseGTTwoParameterCalculation(GTTwoParameterCalculation object) {
return createGTTwoParameterCalculationAdapter();
}
@Override
public Adapter caseGTOneParameterCalculation(GTOneParameterCalculation object) {
return createGTOneParameterCalculationAdapter();
}
@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 org.emoflon.ibex.gt.SGTPatternModel.GTStochasticNamedElement <em>GT Stochastic Named Element</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 org.emoflon.ibex.gt.SGTPatternModel.GTStochasticNamedElement
* @generated
*/
public Adapter createGTStochasticNamedElementAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.emoflon.ibex.gt.SGTPatternModel.GTStochasticNode <em>GT Stochastic Node</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 org.emoflon.ibex.gt.SGTPatternModel.GTStochasticNode
* @generated
*/
public Adapter createGTStochasticNodeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.emoflon.ibex.gt.SGTPatternModel.GTAttribute <em>GT Attribute</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 org.emoflon.ibex.gt.SGTPatternModel.GTAttribute
* @generated
*/
public Adapter createGTAttributeAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.emoflon.ibex.gt.SGTPatternModel.GTStochasticFunction <em>GT Stochastic Function</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 org.emoflon.ibex.gt.SGTPatternModel.GTStochasticFunction
* @generated
*/
public Adapter createGTStochasticFunctionAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.emoflon.ibex.gt.SGTPatternModel.GTNumber <em>GT Number</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 org.emoflon.ibex.gt.SGTPatternModel.GTNumber
* @generated
*/
public Adapter createGTNumberAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.emoflon.ibex.gt.SGTPatternModel.GTArithmetics <em>GT Arithmetics</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 org.emoflon.ibex.gt.SGTPatternModel.GTArithmetics
* @generated
*/
public Adapter createGTArithmeticsAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.emoflon.ibex.gt.SGTPatternModel.GTTwoParameterCalculation <em>GT Two Parameter Calculation</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 org.emoflon.ibex.gt.SGTPatternModel.GTTwoParameterCalculation
* @generated
*/
public Adapter createGTTwoParameterCalculationAdapter() {
return null;
}
/**
* Creates a new adapter for an object of class '{@link org.emoflon.ibex.gt.SGTPatternModel.GTOneParameterCalculation <em>GT One Parameter Calculation</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 org.emoflon.ibex.gt.SGTPatternModel.GTOneParameterCalculation
* @generated
*/
public Adapter createGTOneParameterCalculationAdapter() {
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;
}
} //SGTPatternModelAdapterFactory

View file

@ -1,280 +1,280 @@
/**
*/
package StochasticLanguage.util;
import StochasticLanguage.*;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
/**
* <!-- 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 StochasticLanguage.StochasticLanguagePackage
* @generated
*/
public class StochasticLanguageSwitch<T> extends Switch<T> {
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static StochasticLanguagePackage modelPackage;
/**
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public StochasticLanguageSwitch() {
if (modelPackage == null) {
modelPackage = StochasticLanguagePackage.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 StochasticLanguagePackage.GT_STOCHASTIC_NAMED_ELEMENT: {
GTStochasticNamedElement gtStochasticNamedElement = (GTStochasticNamedElement) theEObject;
T result = caseGTStochasticNamedElement(gtStochasticNamedElement);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case StochasticLanguagePackage.GT_STOCHASTIC_NODE: {
GTStochasticNode gtStochasticNode = (GTStochasticNode) theEObject;
T result = caseGTStochasticNode(gtStochasticNode);
if (result == null)
result = caseGTStochasticNamedElement(gtStochasticNode);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case StochasticLanguagePackage.GT_ATTRIBUTE: {
GTAttribute gtAttribute = (GTAttribute) theEObject;
T result = caseGTAttribute(gtAttribute);
if (result == null)
result = caseGTStochasticNode(gtAttribute);
if (result == null)
result = caseGTArithmetics(gtAttribute);
if (result == null)
result = caseGTStochasticNamedElement(gtAttribute);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case StochasticLanguagePackage.GT_STOCHASTIC_FUNCTION: {
GTStochasticFunction gtStochasticFunction = (GTStochasticFunction) theEObject;
T result = caseGTStochasticFunction(gtStochasticFunction);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case StochasticLanguagePackage.GT_NUMBER: {
GTNumber gtNumber = (GTNumber) theEObject;
T result = caseGTNumber(gtNumber);
if (result == null)
result = caseGTArithmetics(gtNumber);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case StochasticLanguagePackage.GT_ARITHMETICS: {
GTArithmetics gtArithmetics = (GTArithmetics) theEObject;
T result = caseGTArithmetics(gtArithmetics);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case StochasticLanguagePackage.GT_TWO_PARAMETER_CALCULATION: {
GTTwoParameterCalculation gtTwoParameterCalculation = (GTTwoParameterCalculation) theEObject;
T result = caseGTTwoParameterCalculation(gtTwoParameterCalculation);
if (result == null)
result = caseGTArithmetics(gtTwoParameterCalculation);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case StochasticLanguagePackage.GT_ONE_PARAMETER_CALCULATION: {
GTOneParameterCalculation gtOneParameterCalculation = (GTOneParameterCalculation) theEObject;
T result = caseGTOneParameterCalculation(gtOneParameterCalculation);
if (result == null)
result = caseGTArithmetics(gtOneParameterCalculation);
if (result == null)
result = defaultCase(theEObject);
return result;
}
default:
return defaultCase(theEObject);
}
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT Stochastic Named Element</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>GT Stochastic Named Element</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTStochasticNamedElement(GTStochasticNamedElement object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT Stochastic Node</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>GT Stochastic Node</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTStochasticNode(GTStochasticNode object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT Attribute</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>GT Attribute</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTAttribute(GTAttribute object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT Stochastic Function</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>GT Stochastic Function</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTStochasticFunction(GTStochasticFunction object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT Number</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>GT Number</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTNumber(GTNumber object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT Arithmetics</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>GT Arithmetics</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTArithmetics(GTArithmetics object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT Two Parameter Calculation</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>GT Two Parameter Calculation</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTTwoParameterCalculation(GTTwoParameterCalculation object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT One Parameter Calculation</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>GT One Parameter Calculation</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTOneParameterCalculation(GTOneParameterCalculation 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;
}
} //StochasticLanguageSwitch
/**
*/
package org.emoflon.ibex.gt.SGTPatternModel.util;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
import org.emoflon.ibex.gt.SGTPatternModel.*;
/**
* <!-- 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 org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage
* @generated
*/
public class SGTPatternModelSwitch<T> extends Switch<T> {
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static SGTPatternModelPackage modelPackage;
/**
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public SGTPatternModelSwitch() {
if (modelPackage == null) {
modelPackage = SGTPatternModelPackage.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 SGTPatternModelPackage.GT_STOCHASTIC_NAMED_ELEMENT: {
GTStochasticNamedElement gtStochasticNamedElement = (GTStochasticNamedElement) theEObject;
T result = caseGTStochasticNamedElement(gtStochasticNamedElement);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case SGTPatternModelPackage.GT_STOCHASTIC_NODE: {
GTStochasticNode gtStochasticNode = (GTStochasticNode) theEObject;
T result = caseGTStochasticNode(gtStochasticNode);
if (result == null)
result = caseGTStochasticNamedElement(gtStochasticNode);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case SGTPatternModelPackage.GT_ATTRIBUTE: {
GTAttribute gtAttribute = (GTAttribute) theEObject;
T result = caseGTAttribute(gtAttribute);
if (result == null)
result = caseGTStochasticNode(gtAttribute);
if (result == null)
result = caseGTArithmetics(gtAttribute);
if (result == null)
result = caseGTStochasticNamedElement(gtAttribute);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case SGTPatternModelPackage.GT_STOCHASTIC_FUNCTION: {
GTStochasticFunction gtStochasticFunction = (GTStochasticFunction) theEObject;
T result = caseGTStochasticFunction(gtStochasticFunction);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case SGTPatternModelPackage.GT_NUMBER: {
GTNumber gtNumber = (GTNumber) theEObject;
T result = caseGTNumber(gtNumber);
if (result == null)
result = caseGTArithmetics(gtNumber);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case SGTPatternModelPackage.GT_ARITHMETICS: {
GTArithmetics gtArithmetics = (GTArithmetics) theEObject;
T result = caseGTArithmetics(gtArithmetics);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case SGTPatternModelPackage.GT_TWO_PARAMETER_CALCULATION: {
GTTwoParameterCalculation gtTwoParameterCalculation = (GTTwoParameterCalculation) theEObject;
T result = caseGTTwoParameterCalculation(gtTwoParameterCalculation);
if (result == null)
result = caseGTArithmetics(gtTwoParameterCalculation);
if (result == null)
result = defaultCase(theEObject);
return result;
}
case SGTPatternModelPackage.GT_ONE_PARAMETER_CALCULATION: {
GTOneParameterCalculation gtOneParameterCalculation = (GTOneParameterCalculation) theEObject;
T result = caseGTOneParameterCalculation(gtOneParameterCalculation);
if (result == null)
result = caseGTArithmetics(gtOneParameterCalculation);
if (result == null)
result = defaultCase(theEObject);
return result;
}
default:
return defaultCase(theEObject);
}
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT Stochastic Named Element</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>GT Stochastic Named Element</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTStochasticNamedElement(GTStochasticNamedElement object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT Stochastic Node</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>GT Stochastic Node</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTStochasticNode(GTStochasticNode object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT Attribute</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>GT Attribute</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTAttribute(GTAttribute object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT Stochastic Function</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>GT Stochastic Function</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTStochasticFunction(GTStochasticFunction object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT Number</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>GT Number</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTNumber(GTNumber object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT Arithmetics</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>GT Arithmetics</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTArithmetics(GTArithmetics object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT Two Parameter Calculation</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>GT Two Parameter Calculation</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTTwoParameterCalculation(GTTwoParameterCalculation object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>GT One Parameter Calculation</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>GT One Parameter Calculation</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGTOneParameterCalculation(GTOneParameterCalculation 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;
}
} //SGTPatternModelSwitch

View file

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry exported="true" kind="lib" path="lib/commons-math3-3.6.1.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="module" value="true"/>
@ -10,6 +9,5 @@
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="src" path="xtend-gen"/>
<classpathentry kind="lib" path="C:/Users/Isabe/git/emoflon-ibex/org.emoflon.ibex.gt/lib/commons-math3-3.6.1.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View file

@ -26,8 +26,10 @@ Require-Bundle: org.apache.log4j,
org.emoflon.ibex.gt.editor.ui,
org.moflon.core.plugins,
org.moflon.core.propertycontainer,
org.moflon.core.utilities
Bundle-ClassPath: .,
lib/commons-math3-3.6.1.jar
org.moflon.core.utilities,
org.emoflon.ibex.gt.sgtpatternmodel;bundle-version="0.1.0",
org.emoflon.ibex.dependencies;bundle-version="1.0.0";visibility:=reexport,
org.emoflon.ibex.patternmodel
Bundle-ClassPath: .
Automatic-Module-Name: org.emoflon.ibex.gt
Bundle-RequiredExecutionEnvironment: JavaSE-1.8

View file

@ -11,9 +11,9 @@ bin.includes = .,\
build.properties,\
gen/,\
src/,\
xtend-gen/,\
lib/commons-math3-3.6.1.jar
xtend-gen/
source.. = src/,\
gen/,\
xtend-gen/
output.. = bin/
jars.compile.order = .

View file

@ -2,12 +2,12 @@
*/
package GTLanguage;
import StochasticLanguage.GTArithmetics;
import StochasticLanguage.GTAttribute;
import StochasticLanguage.GTRelation;
import org.eclipse.emf.ecore.EObject;
import org.emoflon.ibex.gt.SGTPatternModel.GTArithmetics;
import org.emoflon.ibex.gt.SGTPatternModel.GTAttribute;
import org.emoflon.ibex.gt.SGTPatternModel.GTRelation;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Arithmetic Constraint</b></em>'.
@ -73,11 +73,11 @@ public interface GTArithmeticConstraint extends EObject {
/**
* Returns the value of the '<em><b>Relation</b></em>' attribute.
* The literals are from the enumeration {@link StochasticLanguage.GTRelation}.
* The literals are from the enumeration {@link org.emoflon.ibex.gt.SGTPatternModel.GTRelation}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Relation</em>' attribute.
* @see StochasticLanguage.GTRelation
* @see org.emoflon.ibex.gt.SGTPatternModel.GTRelation
* @see #setRelation(GTRelation)
* @see GTLanguage.GTLanguagePackage#getGTArithmeticConstraint_Relation()
* @model
@ -90,7 +90,7 @@ public interface GTArithmeticConstraint extends EObject {
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Relation</em>' attribute.
* @see StochasticLanguage.GTRelation
* @see org.emoflon.ibex.gt.SGTPatternModel.GTRelation
* @see #getRelation()
* @generated
*/

View file

@ -554,17 +554,6 @@ public interface GTLanguagePackage extends EPackage {
*/
EReference getGTRule_RuleNodes();
/**
* Returns the meta object for the containment reference '{@link GTLanguage.GTRule#getProbability <em>Probability</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Probability</em>'.
* @see GTLanguage.GTRule#getProbability()
* @see #getGTRule()
* @generated
*/
EReference getGTRule_Probability();
/**
* Returns the meta object for the containment reference list '{@link GTLanguage.GTRule#getConstraints <em>Constraints</em>}'.
* <!-- begin-user-doc -->
@ -576,6 +565,17 @@ public interface GTLanguagePackage extends EPackage {
*/
EReference getGTRule_Constraints();
/**
* Returns the meta object for the containment reference '{@link GTLanguage.GTRule#getProbability <em>Probability</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>Probability</em>'.
* @see GTLanguage.GTRule#getProbability()
* @see #getGTRule()
* @generated
*/
EReference getGTRule_Probability();
/**
* Returns the meta object for class '{@link GTLanguage.GTRuleSet <em>GT Rule Set</em>}'.
* <!-- begin-user-doc -->
@ -799,14 +799,6 @@ public interface GTLanguagePackage extends EPackage {
*/
EReference GT_RULE__RULE_NODES = eINSTANCE.getGTRule_RuleNodes();
/**
* The meta object literal for the '<em><b>Probability</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference GT_RULE__PROBABILITY = eINSTANCE.getGTRule_Probability();
/**
* The meta object literal for the '<em><b>Constraints</b></em>' containment reference list feature.
* <!-- begin-user-doc -->
@ -815,6 +807,14 @@ public interface GTLanguagePackage extends EPackage {
*/
EReference GT_RULE__CONSTRAINTS = eINSTANCE.getGTRule_Constraints();
/**
* The meta object literal for the '<em><b>Probability</b></em>' containment reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EReference GT_RULE__PROBABILITY = eINSTANCE.getGTRule_Probability();
/**
* The meta object literal for the '{@link GTLanguage.impl.GTRuleSetImpl <em>GT Rule Set</em>}' class.
* <!-- begin-user-doc -->

View file

@ -2,11 +2,11 @@
*/
package GTLanguage;
import StochasticLanguage.GTArithmetics;
import StochasticLanguage.GTStochasticFunction;
import org.eclipse.emf.ecore.EObject;
import org.emoflon.ibex.gt.SGTPatternModel.GTArithmetics;
import org.emoflon.ibex.gt.SGTPatternModel.GTStochasticFunction;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Probability</b></em>'.

View file

@ -111,6 +111,18 @@ public interface GTRule extends GTNamedElement {
*/
EList<GTNode> getRuleNodes();
/**
* Returns the value of the '<em><b>Constraints</b></em>' containment reference list.
* The list contents are of type {@link GTLanguage.GTArithmeticConstraint}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Constraints</em>' containment reference list.
* @see GTLanguage.GTLanguagePackage#getGTRule_Constraints()
* @model containment="true"
* @generated
*/
EList<GTArithmeticConstraint> getConstraints();
/**
* Returns the value of the '<em><b>Probability</b></em>' containment reference.
* <!-- begin-user-doc -->
@ -133,16 +145,4 @@ public interface GTRule extends GTNamedElement {
*/
void setProbability(GTProbability value);
/**
* Returns the value of the '<em><b>Constraints</b></em>' containment reference list.
* The list contents are of type {@link GTLanguage.GTArithmeticConstraint}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Constraints</em>' containment reference list.
* @see GTLanguage.GTLanguagePackage#getGTRule_Constraints()
* @model containment="true"
* @generated
*/
EList<GTArithmeticConstraint> getConstraints();
} // GTRule

View file

@ -5,10 +5,6 @@ package GTLanguage.impl;
import GTLanguage.GTArithmeticConstraint;
import GTLanguage.GTLanguagePackage;
import StochasticLanguage.GTArithmetics;
import StochasticLanguage.GTAttribute;
import StochasticLanguage.GTRelation;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
@ -18,6 +14,10 @@ import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.emoflon.ibex.gt.SGTPatternModel.GTArithmetics;
import org.emoflon.ibex.gt.SGTPatternModel.GTAttribute;
import org.emoflon.ibex.gt.SGTPatternModel.GTRelation;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>GT Arithmetic Constraint</b></em>'.

View file

@ -12,10 +12,6 @@ import GTLanguage.GTProbability;
import GTLanguage.GTRule;
import GTLanguage.GTRuleSet;
import StochasticLanguage.StochasticLanguagePackage;
import StochasticLanguage.impl.StochasticLanguagePackageImpl;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
@ -23,6 +19,8 @@ import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;
import org.emoflon.ibex.gt.SGTPatternModel.SGTPatternModelPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Package</b>.
@ -129,19 +127,14 @@ public class GTLanguagePackageImpl extends EPackageImpl implements GTLanguagePac
isInited = true;
// Obtain or create and register interdependencies
Object registeredPackage = EPackage.Registry.INSTANCE.getEPackage(StochasticLanguagePackage.eNS_URI);
StochasticLanguagePackageImpl theStochasticLanguagePackage = (StochasticLanguagePackageImpl) (registeredPackage instanceof StochasticLanguagePackageImpl
? registeredPackage
: StochasticLanguagePackage.eINSTANCE);
// Initialize simple dependencies
SGTPatternModelPackage.eINSTANCE.eClass();
// Create package meta-data objects
theGTLanguagePackage.createPackageContents();
theStochasticLanguagePackage.createPackageContents();
// Initialize created meta-data
theGTLanguagePackage.initializePackageContents();
theStochasticLanguagePackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
theGTLanguagePackage.freeze();
@ -277,8 +270,8 @@ public class GTLanguagePackageImpl extends EPackageImpl implements GTLanguagePac
* @generated
*/
@Override
public EReference getGTRule_Probability() {
return (EReference) gtRuleEClass.getEStructuralFeatures().get(6);
public EReference getGTRule_Constraints() {
return (EReference) gtRuleEClass.getEStructuralFeatures().get(5);
}
/**
@ -287,8 +280,8 @@ public class GTLanguagePackageImpl extends EPackageImpl implements GTLanguagePac
* @generated
*/
@Override
public EReference getGTRule_Constraints() {
return (EReference) gtRuleEClass.getEStructuralFeatures().get(5);
public EReference getGTRule_Probability() {
return (EReference) gtRuleEClass.getEStructuralFeatures().get(6);
}
/**
@ -467,8 +460,8 @@ public class GTLanguagePackageImpl extends EPackageImpl implements GTLanguagePac
setNsURI(eNS_URI);
// Obtain other dependent packages
StochasticLanguagePackage theStochasticLanguagePackage = (StochasticLanguagePackage) EPackage.Registry.INSTANCE
.getEPackage(StochasticLanguagePackage.eNS_URI);
SGTPatternModelPackage theSGTPatternModelPackage = (SGTPatternModelPackage) EPackage.Registry.INSTANCE
.getEPackage(SGTPatternModelPackage.eNS_URI);
// Create type parameters
@ -525,22 +518,22 @@ public class GTLanguagePackageImpl extends EPackageImpl implements GTLanguagePac
initEClass(gtProbabilityEClass, GTProbability.class, "GTProbability", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
initEReference(getGTProbability_Function(), theStochasticLanguagePackage.getGTStochasticFunction(), null,
initEReference(getGTProbability_Function(), theSGTPatternModelPackage.getGTStochasticFunction(), null,
"function", null, 0, 1, GTProbability.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getGTProbability_Parameter(), theStochasticLanguagePackage.getGTArithmetics(), null, "parameter",
initEReference(getGTProbability_Parameter(), theSGTPatternModelPackage.getGTArithmetics(), null, "parameter",
null, 0, 1, GTProbability.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(gtArithmeticConstraintEClass, GTArithmeticConstraint.class, "GTArithmeticConstraint", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getGTArithmeticConstraint_Parameter(), theStochasticLanguagePackage.getGTAttribute(), null,
initEReference(getGTArithmeticConstraint_Parameter(), theSGTPatternModelPackage.getGTAttribute(), null,
"parameter", null, 0, 1, GTArithmeticConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getGTArithmeticConstraint_Expression(), theStochasticLanguagePackage.getGTArithmetics(), null,
initEReference(getGTArithmeticConstraint_Expression(), theSGTPatternModelPackage.getGTArithmetics(), null,
"expression", null, 0, 1, GTArithmeticConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getGTArithmeticConstraint_Relation(), theStochasticLanguagePackage.getGTRelation(), "relation",
initEAttribute(getGTArithmeticConstraint_Relation(), theSGTPatternModelPackage.getGTRelation(), "relation",
null, 0, 1, GTArithmeticConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

View file

@ -5,9 +5,6 @@ package GTLanguage.impl;
import GTLanguage.GTLanguagePackage;
import GTLanguage.GTProbability;
import StochasticLanguage.GTArithmetics;
import StochasticLanguage.GTStochasticFunction;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
@ -17,6 +14,9 @@ import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.emoflon.ibex.gt.SGTPatternModel.GTArithmetics;
import org.emoflon.ibex.gt.SGTPatternModel.GTStochasticFunction;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>GT Probability</b></em>'.

View file

@ -242,6 +242,20 @@ public class GTRuleImpl extends GTNamedElementImpl implements GTRule {
return ruleNodes;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EList<GTArithmeticConstraint> getConstraints() {
if (constraints == null) {
constraints = new EObjectContainmentEList<GTArithmeticConstraint>(GTArithmeticConstraint.class, this,
GTLanguagePackage.GT_RULE__CONSTRAINTS);
}
return constraints;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@ -294,20 +308,6 @@ public class GTRuleImpl extends GTNamedElementImpl implements GTRule {
newProbability, newProbability));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EList<GTArithmeticConstraint> getConstraints() {
if (constraints == null) {
constraints = new EObjectContainmentEList<GTArithmeticConstraint>(GTArithmeticConstraint.class, this,
GTLanguagePackage.GT_RULE__CONSTRAINTS);
}
return constraints;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->

View file

@ -1,48 +0,0 @@
/**
*/
package StochasticLanguage;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>GT Number</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* The value of the parameter if it has a static value
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link StochasticLanguage.GTNumber#getNumber <em>Number</em>}</li>
* </ul>
*
* @see StochasticLanguage.StochasticLanguagePackage#getGTNumber()
* @model
* @generated
*/
public interface GTNumber extends GTArithmetics {
/**
* Returns the value of the '<em><b>Number</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Number</em>' attribute.
* @see #setNumber(double)
* @see StochasticLanguage.StochasticLanguagePackage#getGTNumber_Number()
* @model
* @generated
*/
double getNumber();
/**
* Sets the value of the '{@link StochasticLanguage.GTNumber#getNumber <em>Number</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Number</em>' attribute.
* @see #getNumber()
* @generated
*/
void setNumber(double value);
} // GTNumber

View file

@ -1,230 +0,0 @@
/**
*/
package StochasticLanguage;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>GT Stochastic Range</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see StochasticLanguage.StochasticLanguagePackage#getGTStochasticRange()
* @model
* @generated
*/
public enum GTStochasticRange implements Enumerator {
/**
* The '<em><b>NEUTRAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NEUTRAL_VALUE
* @generated
* @ordered
*/
NEUTRAL(0, "NEUTRAL", "NEUTRAL"),
/**
* The '<em><b>POSITIVE</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #POSITIVE_VALUE
* @generated
* @ordered
*/
POSITIVE(1, "POSITIVE", "POSITIVE"),
/**
* The '<em><b>NEGATIVE</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NEGATIVE_VALUE
* @generated
* @ordered
*/
NEGATIVE(2, "NEGATIVE", "NEGATIVE");
/**
* The '<em><b>NEUTRAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NEUTRAL
* @model
* @generated
* @ordered
*/
public static final int NEUTRAL_VALUE = 0;
/**
* The '<em><b>POSITIVE</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #POSITIVE
* @model
* @generated
* @ordered
*/
public static final int POSITIVE_VALUE = 1;
/**
* The '<em><b>NEGATIVE</b></em>' literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NEGATIVE
* @model
* @generated
* @ordered
*/
public static final int NEGATIVE_VALUE = 2;
/**
* An array of all the '<em><b>GT Stochastic Range</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final GTStochasticRange[] VALUES_ARRAY = new GTStochasticRange[] { NEUTRAL, POSITIVE, NEGATIVE, };
/**
* A public read-only list of all the '<em><b>GT Stochastic Range</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<GTStochasticRange> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>GT Stochastic Range</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param literal the literal.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTStochasticRange get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
GTStochasticRange result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>GT Stochastic Range</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name the name.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTStochasticRange getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
GTStochasticRange result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>GT Stochastic Range</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the integer value.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static GTStochasticRange get(int value) {
switch (value) {
case NEUTRAL_VALUE:
return NEUTRAL;
case POSITIVE_VALUE:
return POSITIVE;
case NEGATIVE_VALUE:
return NEGATIVE;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private GTStochasticRange(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return literal;
}
} //GTStochasticRange

Some files were not shown because too many files have changed in this diff Show more