Skip to content
Snippets Groups Projects
Commit 859739c0 authored by Alexander Diewald's avatar Alexander Diewald
Browse files

- Delete content of generated-src (committed by accident).

- Set svn:ignore property for generated-src.
parent fc166bba
No related branches found
No related tags found
No related merge requests found
Showing
with 0 additions and 3403 deletions
/**
*/
package org.fortiss.af3.exploration.dsl.model.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;
import org.fortiss.af3.exploration.dsl.model.MOEAExplorationExpression;
import org.fortiss.af3.exploration.dsl.model.ModelFactory;
import org.fortiss.af3.exploration.dsl.model.ModelPackage;
import org.fortiss.af3.exploration.dsl.model.expressions.ExpressionsPackage;
import org.fortiss.af3.exploration.dsl.model.expressions.impl.ExpressionsPackageImpl;
import org.fortiss.af3.exploration.dsl.model.operators.OperatorsPackage;
import org.fortiss.af3.exploration.dsl.model.operators.impl.OperatorsPackageImpl;
import org.fortiss.af3.exploration.dsl.model.patterns.PatternsPackage;
import org.fortiss.af3.exploration.dsl.model.patterns.impl.PatternsPackageImpl;
import org.fortiss.af3.exploration.dsl.model.types.TypesPackage;
import org.fortiss.af3.exploration.dsl.model.types.impl.TypesPackageImpl;
import org.fortiss.tooling.base.model.base.BasePackage;
import org.fortiss.tooling.base.model.element.ElementPackage;
import org.fortiss.tooling.base.model.layout.LayoutPackage;
import org.fortiss.tooling.base.model.visualization.VisualizationPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Package</b>.
* <!-- end-user-doc -->
* @generated
*/
public class ModelPackageImpl extends EPackageImpl implements ModelPackage {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private EClass moeaExplorationExpressionEClass = 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 org.fortiss.af3.exploration.dsl.model.ModelPackage#eNS_URI
* @see #init()
* @generated
*/
private ModelPackageImpl() {
super(eNS_URI, ModelFactory.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 ModelPackage#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 ModelPackage init() {
if (isInited) return (ModelPackage)EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI);
// Obtain or create and register package
ModelPackageImpl theModelPackage = (ModelPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ModelPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ModelPackageImpl());
isInited = true;
// Initialize simple dependencies
ElementPackage.eINSTANCE.eClass();
LayoutPackage.eINSTANCE.eClass();
BasePackage.eINSTANCE.eClass();
VisualizationPackage.eINSTANCE.eClass();
// Obtain or create and register interdependencies
OperatorsPackageImpl theOperatorsPackage = (OperatorsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI) instanceof OperatorsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI) : OperatorsPackage.eINSTANCE);
ExpressionsPackageImpl theExpressionsPackage = (ExpressionsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ExpressionsPackage.eNS_URI) instanceof ExpressionsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ExpressionsPackage.eNS_URI) : ExpressionsPackage.eINSTANCE);
PatternsPackageImpl thePatternsPackage = (PatternsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PatternsPackage.eNS_URI) instanceof PatternsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PatternsPackage.eNS_URI) : PatternsPackage.eINSTANCE);
TypesPackageImpl theTypesPackage = (TypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TypesPackage.eNS_URI) instanceof TypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TypesPackage.eNS_URI) : TypesPackage.eINSTANCE);
// Create package meta-data objects
theModelPackage.createPackageContents();
theOperatorsPackage.createPackageContents();
theExpressionsPackage.createPackageContents();
thePatternsPackage.createPackageContents();
theTypesPackage.createPackageContents();
// Initialize created meta-data
theModelPackage.initializePackageContents();
theOperatorsPackage.initializePackageContents();
theExpressionsPackage.initializePackageContents();
thePatternsPackage.initializePackageContents();
theTypesPackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
theModelPackage.freeze();
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(ModelPackage.eNS_URI, theModelPackage);
return theModelPackage;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EClass getMOEAExplorationExpression() {
return moeaExplorationExpressionEClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EReference getMOEAExplorationExpression_Expression() {
return (EReference)moeaExplorationExpressionEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ModelFactory getModelFactory() {
return (ModelFactory)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
moeaExplorationExpressionEClass = createEClass(MOEA_EXPLORATION_EXPRESSION);
createEReference(moeaExplorationExpressionEClass, MOEA_EXPLORATION_EXPRESSION__EXPRESSION);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private boolean isInitialized = false;
/**
* Complete the initialization of the package and its meta-model. This
* method is guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void initializePackageContents() {
if (isInitialized) return;
isInitialized = true;
// Initialize package
setName(eNAME);
setNsPrefix(eNS_PREFIX);
setNsURI(eNS_URI);
// Obtain other dependent packages
OperatorsPackage theOperatorsPackage = (OperatorsPackage)EPackage.Registry.INSTANCE.getEPackage(OperatorsPackage.eNS_URI);
ExpressionsPackage theExpressionsPackage = (ExpressionsPackage)EPackage.Registry.INSTANCE.getEPackage(ExpressionsPackage.eNS_URI);
PatternsPackage thePatternsPackage = (PatternsPackage)EPackage.Registry.INSTANCE.getEPackage(PatternsPackage.eNS_URI);
TypesPackage theTypesPackage = (TypesPackage)EPackage.Registry.INSTANCE.getEPackage(TypesPackage.eNS_URI);
// Add subpackages
getESubpackages().add(theOperatorsPackage);
getESubpackages().add(theExpressionsPackage);
getESubpackages().add(thePatternsPackage);
getESubpackages().add(theTypesPackage);
// Create type parameters
// Set bounds for type parameters
// Add supertypes to classes
// Initialize classes and features; add operations and parameters
initEClass(moeaExplorationExpressionEClass, MOEAExplorationExpression.class, "MOEAExplorationExpression", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getMOEAExplorationExpression_Expression(), theExpressionsPackage.getExpression(), null, "expression", null, 0, 1, MOEAExplorationExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
// Create resource
createResource(eNS_URI);
}
} //ModelPackageImpl
/**
*/
package org.fortiss.af3.exploration.dsl.model.operators;
import org.fortiss.af3.exploration.dsl.model.expressions.ArithmeticExpression;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Arithmetic Op</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* DEPRECATED/LEGACY.
* <!-- end-model-doc -->
*
*
* @see org.fortiss.af3.exploration.dsl.model.operators.OperatorsPackage#getArithmeticOp()
* @model
* @generated
*/
public interface ArithmeticOp<T, LHE extends ArithmeticExpression<T>, RHE extends ArithmeticExpression<T>> extends DualOperator<LHE, ArithmeticOperatorEnum, RHE>, ArithmeticExpression<T> {
} // ArithmeticOp
/**
*/
package org.fortiss.af3.exploration.dsl.model.operators;
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>Arithmetic Operator Enum</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* DEPRECATED/LEGACY.
* <!-- end-model-doc -->
* @see org.fortiss.af3.exploration.dsl.model.operators.OperatorsPackage#getArithmeticOperatorEnum()
* @model
* @generated
*/
public enum ArithmeticOperatorEnum implements Enumerator {
/**
* The '<em><b>ADD</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #ADD_VALUE
* @generated
* @ordered
*/
ADD(0, "ADD", "ADD"),
/**
* The '<em><b>SUB</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SUB_VALUE
* @generated
* @ordered
*/
SUB(1, "SUB", "SUB"),
/**
* The '<em><b>MUL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #MUL_VALUE
* @generated
* @ordered
*/
MUL(2, "MUL", "MUL"),
/**
* The '<em><b>DIV</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #DIV_VALUE
* @generated
* @ordered
*/
DIV(3, "DIV", "DIV");
/**
* The '<em><b>ADD</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>ADD</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #ADD
* @model
* @generated
* @ordered
*/
public static final int ADD_VALUE = 0;
/**
* The '<em><b>SUB</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>SUB</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #SUB
* @model
* @generated
* @ordered
*/
public static final int SUB_VALUE = 1;
/**
* The '<em><b>MUL</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>MUL</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #MUL
* @model
* @generated
* @ordered
*/
public static final int MUL_VALUE = 2;
/**
* The '<em><b>DIV</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>DIV</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #DIV
* @model
* @generated
* @ordered
*/
public static final int DIV_VALUE = 3;
/**
* An array of all the '<em><b>Arithmetic Operator Enum</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final ArithmeticOperatorEnum[] VALUES_ARRAY =
new ArithmeticOperatorEnum[] {
ADD,
SUB,
MUL,
DIV,
};
/**
* A public read-only list of all the '<em><b>Arithmetic Operator Enum</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<ArithmeticOperatorEnum> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Arithmetic Operator Enum</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static ArithmeticOperatorEnum get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
ArithmeticOperatorEnum result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Arithmetic Operator Enum</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static ArithmeticOperatorEnum getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
ArithmeticOperatorEnum result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Arithmetic Operator Enum</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static ArithmeticOperatorEnum get(int value) {
switch (value) {
case ADD_VALUE: return ADD;
case SUB_VALUE: return SUB;
case MUL_VALUE: return MUL;
case DIV_VALUE: return DIV;
}
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 ArithmeticOperatorEnum(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
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;
}
} //ArithmeticOperatorEnum
/**
*/
package org.fortiss.af3.exploration.dsl.model.operators;
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>Boolean Operator Enum</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* DEPRECATED/LEGACY.
* <!-- end-model-doc -->
* @see org.fortiss.af3.exploration.dsl.model.operators.OperatorsPackage#getBooleanOperatorEnum()
* @model
* @generated
*/
public enum BooleanOperatorEnum implements Enumerator {
/**
* The '<em><b>NOT</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #NOT_VALUE
* @generated
* @ordered
*/
NOT(0, "NOT", "NOT"),
/**
* The '<em><b>AND</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #AND_VALUE
* @generated
* @ordered
*/
AND(1, "AND", "AND"),
/**
* The '<em><b>OR</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #OR_VALUE
* @generated
* @ordered
*/
OR(2, "OR", "OR"),
/**
* The '<em><b>XOR</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #XOR_VALUE
* @generated
* @ordered
*/
XOR(3, "XOR", "XOR");
/**
* The '<em><b>NOT</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>NOT</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #NOT
* @model
* @generated
* @ordered
*/
public static final int NOT_VALUE = 0;
/**
* The '<em><b>AND</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>AND</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #AND
* @model
* @generated
* @ordered
*/
public static final int AND_VALUE = 1;
/**
* The '<em><b>OR</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>OR</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #OR
* @model
* @generated
* @ordered
*/
public static final int OR_VALUE = 2;
/**
* The '<em><b>XOR</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>XOR</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #XOR
* @model
* @generated
* @ordered
*/
public static final int XOR_VALUE = 3;
/**
* An array of all the '<em><b>Boolean Operator Enum</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final BooleanOperatorEnum[] VALUES_ARRAY =
new BooleanOperatorEnum[] {
NOT,
AND,
OR,
XOR,
};
/**
* A public read-only list of all the '<em><b>Boolean Operator Enum</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<BooleanOperatorEnum> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Boolean Operator Enum</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static BooleanOperatorEnum get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
BooleanOperatorEnum result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Boolean Operator Enum</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static BooleanOperatorEnum getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
BooleanOperatorEnum result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Boolean Operator Enum</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static BooleanOperatorEnum get(int value) {
switch (value) {
case NOT_VALUE: return NOT;
case AND_VALUE: return AND;
case OR_VALUE: return OR;
case XOR_VALUE: return XOR;
}
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 BooleanOperatorEnum(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
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;
}
} //BooleanOperatorEnum
/**
*/
package org.fortiss.af3.exploration.dsl.model.operators;
import org.fortiss.af3.exploration.dsl.model.expressions.ArithmeticExpression;
import org.fortiss.af3.exploration.dsl.model.expressions.BooleanExpression;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Comparison Op</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* DEPRECATED/LEGACY.
* <!-- end-model-doc -->
*
*
* @see org.fortiss.af3.exploration.dsl.model.operators.OperatorsPackage#getComparisonOp()
* @model
* @generated
*/
public interface ComparisonOp<T, LHT extends ArithmeticExpression<T>, RHT extends ArithmeticExpression<T>> extends DualOperator<ArithmeticExpression<T>, ComparisonOperatorEnum, ArithmeticExpression<T>>, BooleanExpression {
} // ComparisonOp
/**
*/
package org.fortiss.af3.exploration.dsl.model.operators;
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>Comparison Operator Enum</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* DEPRECATED/LEGACY.
* <!-- end-model-doc -->
* @see org.fortiss.af3.exploration.dsl.model.operators.OperatorsPackage#getComparisonOperatorEnum()
* @model
* @generated
*/
public enum ComparisonOperatorEnum implements Enumerator {
/**
* The '<em><b>LESS</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LESS_VALUE
* @generated
* @ordered
*/
LESS(0, "LESS", "LESS"),
/**
* The '<em><b>LESS OR EQUAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LESS_OR_EQUAL_VALUE
* @generated
* @ordered
*/
LESS_OR_EQUAL(1, "LESS_OR_EQUAL", "LESS_OR_EQUAL"),
/**
* 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>GREATER OR EQUAL</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #GREATER_OR_EQUAL_VALUE
* @generated
* @ordered
*/
GREATER_OR_EQUAL(3, "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(4, "GREATER", "GREATER");
/**
* The '<em><b>LESS</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>LESS</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #LESS
* @model
* @generated
* @ordered
*/
public static final int LESS_VALUE = 0;
/**
* The '<em><b>LESS OR EQUAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>LESS OR EQUAL</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #LESS_OR_EQUAL
* @model
* @generated
* @ordered
*/
public static final int LESS_OR_EQUAL_VALUE = 1;
/**
* The '<em><b>EQUAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>EQUAL</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #EQUAL
* @model
* @generated
* @ordered
*/
public static final int EQUAL_VALUE = 2;
/**
* The '<em><b>GREATER OR EQUAL</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>GREATER OR EQUAL</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #GREATER_OR_EQUAL
* @model
* @generated
* @ordered
*/
public static final int GREATER_OR_EQUAL_VALUE = 3;
/**
* The '<em><b>GREATER</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>GREATER</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #GREATER
* @model
* @generated
* @ordered
*/
public static final int GREATER_VALUE = 4;
/**
* An array of all the '<em><b>Comparison Operator Enum</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final ComparisonOperatorEnum[] VALUES_ARRAY =
new ComparisonOperatorEnum[] {
LESS,
LESS_OR_EQUAL,
EQUAL,
GREATER_OR_EQUAL,
GREATER,
};
/**
* A public read-only list of all the '<em><b>Comparison Operator Enum</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<ComparisonOperatorEnum> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Comparison Operator Enum</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static ComparisonOperatorEnum get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
ComparisonOperatorEnum result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Comparison Operator Enum</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static ComparisonOperatorEnum getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
ComparisonOperatorEnum result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Comparison Operator Enum</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static ComparisonOperatorEnum get(int value) {
switch (value) {
case LESS_VALUE: return LESS;
case LESS_OR_EQUAL_VALUE: return LESS_OR_EQUAL;
case EQUAL_VALUE: return EQUAL;
case GREATER_OR_EQUAL_VALUE: return GREATER_OR_EQUAL;
case GREATER_VALUE: return GREATER;
}
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 ComparisonOperatorEnum(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
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;
}
} //ComparisonOperatorEnum
/**
*/
package org.fortiss.af3.exploration.dsl.model.operators;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Dual Operator</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* DEPRECATED/LEGACY.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.fortiss.af3.exploration.dsl.model.operators.DualOperator#getLeft <em>Left</em>}</li>
* </ul>
* </p>
*
* @see org.fortiss.af3.exploration.dsl.model.operators.OperatorsPackage#getDualOperator()
* @model
* @generated
*/
public interface DualOperator<LHT, OP, RHT> extends Operator<OP, RHT> {
/**
* Returns the value of the '<em><b>Left</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* DEPRECATED/LEGACY.
* <!-- end-model-doc -->
* @return the value of the '<em>Left</em>' containment reference.
* @see #setLeft(Object)
* @see org.fortiss.af3.exploration.dsl.model.operators.OperatorsPackage#getDualOperator_Left()
* @model kind="reference" containment="true" resolveProxies="true" required="true"
* @generated
*/
LHT getLeft();
/**
* Sets the value of the '{@link org.fortiss.af3.exploration.dsl.model.operators.DualOperator#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(LHT value);
} // DualOperator
/**
*/
package org.fortiss.af3.exploration.dsl.model.operators;
import org.fortiss.af3.exploration.dsl.model.expressions.BooleanExpression;
import org.fortiss.af3.exploration.dsl.model.expressions.ElementExpression;
import org.fortiss.tooling.base.model.element.IModelElement;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Location Op</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* DEPRECATED/LEGACY.
* <!-- end-model-doc -->
*
*
* @see org.fortiss.af3.exploration.dsl.model.operators.OperatorsPackage#getLocationOp()
* @model
* @generated
*/
public interface LocationOp<LHT extends IModelElement, RHT extends IModelElement> extends DualOperator<ElementExpression<LHT>, LocationOperatorEnum, ElementExpression<RHT>>, BooleanExpression {
} // LocationOp
/**
*/
package org.fortiss.af3.exploration.dsl.model.operators;
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>Location Operator Enum</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* DEPRECATED/LEGACY.
* <!-- end-model-doc -->
* @see org.fortiss.af3.exploration.dsl.model.operators.OperatorsPackage#getLocationOperatorEnum()
* @model
* @generated
*/
public enum LocationOperatorEnum implements Enumerator {
/**
* The '<em><b>Allocation</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #ALLOCATION_VALUE
* @generated
* @ordered
*/
ALLOCATION(0, "Allocation", "Allocation"),
/**
* The '<em><b>Dislocation</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #DISLOCATION_VALUE
* @generated
* @ordered
*/
DISLOCATION(1, "Dislocation", "Dislocation");
/**
* The '<em><b>Allocation</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Allocation</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #ALLOCATION
* @model name="Allocation"
* @generated
* @ordered
*/
public static final int ALLOCATION_VALUE = 0;
/**
* The '<em><b>Dislocation</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Dislocation</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #DISLOCATION
* @model name="Dislocation"
* @generated
* @ordered
*/
public static final int DISLOCATION_VALUE = 1;
/**
* An array of all the '<em><b>Location Operator Enum</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final LocationOperatorEnum[] VALUES_ARRAY =
new LocationOperatorEnum[] {
ALLOCATION,
DISLOCATION,
};
/**
* A public read-only list of all the '<em><b>Location Operator Enum</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<LocationOperatorEnum> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Location Operator Enum</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static LocationOperatorEnum get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
LocationOperatorEnum result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Location Operator Enum</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static LocationOperatorEnum getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
LocationOperatorEnum result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Location Operator Enum</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static LocationOperatorEnum get(int value) {
switch (value) {
case ALLOCATION_VALUE: return ALLOCATION;
case DISLOCATION_VALUE: return DISLOCATION;
}
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 LocationOperatorEnum(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
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;
}
} //LocationOperatorEnum
/**
*/
package org.fortiss.af3.exploration.dsl.model.operators;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Operator</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* DEPRECATED/LEGACY.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.fortiss.af3.exploration.dsl.model.operators.Operator#getOperator <em>Operator</em>}</li>
* <li>{@link org.fortiss.af3.exploration.dsl.model.operators.Operator#getRight <em>Right</em>}</li>
* </ul>
* </p>
*
* @see org.fortiss.af3.exploration.dsl.model.operators.OperatorsPackage#getOperator()
* @model interface="true" abstract="true"
* @generated
*/
public interface Operator<OP, RHT> extends EObject {
/**
* Returns the value of the '<em><b>Operator</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* TODO: write documentation (in the model!)
* <!-- end-model-doc -->
* @return the value of the '<em>Operator</em>' attribute.
* @see #setOperator(Object)
* @see org.fortiss.af3.exploration.dsl.model.operators.OperatorsPackage#getOperator_Operator()
* @model required="true"
* @generated
*/
OP getOperator();
/**
* Sets the value of the '{@link org.fortiss.af3.exploration.dsl.model.operators.Operator#getOperator <em>Operator</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Operator</em>' attribute.
* @see #getOperator()
* @generated
*/
void setOperator(OP value);
/**
* Returns the value of the '<em><b>Right</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Right</em>' containment reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Right</em>' containment reference.
* @see #setRight(Object)
* @see org.fortiss.af3.exploration.dsl.model.operators.OperatorsPackage#getOperator_Right()
* @model kind="reference" containment="true" resolveProxies="true" required="true"
* @generated
*/
RHT getRight();
/**
* Sets the value of the '{@link org.fortiss.af3.exploration.dsl.model.operators.Operator#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(RHT value);
} // Operator
/**
*/
package org.fortiss.af3.exploration.dsl.model.operators;
import org.eclipse.emf.ecore.EFactory;
import org.fortiss.af3.exploration.dsl.model.expressions.ArithmeticExpression;
import org.fortiss.tooling.base.model.element.IModelElement;
/**
* <!-- 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.fortiss.af3.exploration.dsl.model.operators.OperatorsPackage
* @generated
*/
public interface OperatorsFactory extends EFactory {
/**
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
OperatorsFactory eINSTANCE = org.fortiss.af3.exploration.dsl.model.operators.impl.OperatorsFactoryImpl.init();
/**
* Returns a new object of class '<em>Dual Operator</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Dual Operator</em>'.
* @generated
*/
<LHT, OP, RHT> DualOperator<LHT, OP, RHT> createDualOperator();
/**
* Returns a new object of class '<em>Arithmetic Op</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Arithmetic Op</em>'.
* @generated
*/
<T, LHE extends ArithmeticExpression<T>, RHE extends ArithmeticExpression<T>> ArithmeticOp<T, LHE, RHE> createArithmeticOp();
/**
* Returns a new object of class '<em>Comparison Op</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Comparison Op</em>'.
* @generated
*/
<T, LHT extends ArithmeticExpression<T>, RHT extends ArithmeticExpression<T>> ComparisonOp<T, LHT, RHT> createComparisonOp();
/**
* Returns a new object of class '<em>Location Op</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Location Op</em>'.
* @generated
*/
<LHT extends IModelElement, RHT extends IModelElement> LocationOp<LHT, RHT> createLocationOp();
/**
* Returns a new object of class '<em>Optimization Direction</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Optimization Direction</em>'.
* @generated
*/
OptimizationDirection createOptimizationDirection();
/**
* Returns a new object of class '<em>Quantifier Op</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Quantifier Op</em>'.
* @generated
*/
QuantifierOp createQuantifierOp();
/**
* Returns a new object of class '<em>Summation Op</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Summation Op</em>'.
* @generated
*/
<T> SummationOp<T> createSummationOp();
/**
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the package supported by this factory.
* @generated
*/
OperatorsPackage getOperatorsPackage();
} //OperatorsFactory
/**
*/
package org.fortiss.af3.exploration.dsl.model.operators;
import org.fortiss.af3.exploration.dsl.model.expressions.ArithmeticExpression;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Optimization Direction</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* DEPRECATED/LEGACY.
* <!-- end-model-doc -->
*
*
* @see org.fortiss.af3.exploration.dsl.model.operators.OperatorsPackage#getOptimizationDirection()
* @model
* @generated
*/
public interface OptimizationDirection extends Operator<OptimizationDirectionEnum, ArithmeticExpression<?>> {
} // OptimizationDirection
/**
*/
package org.fortiss.af3.exploration.dsl.model.operators;
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>Optimization Direction Enum</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* DEPRECATED/LEGACY.
* <!-- end-model-doc -->
* @see org.fortiss.af3.exploration.dsl.model.operators.OperatorsPackage#getOptimizationDirectionEnum()
* @model
* @generated
*/
public enum OptimizationDirectionEnum implements Enumerator {
/**
* The '<em><b>MIN</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #MIN_VALUE
* @generated
* @ordered
*/
MIN(0, "MIN", "MIN"),
/**
* The '<em><b>MAX</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #MAX_VALUE
* @generated
* @ordered
*/
MAX(1, "MAX", "MAX");
/**
* The '<em><b>MIN</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>MIN</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #MIN
* @model
* @generated
* @ordered
*/
public static final int MIN_VALUE = 0;
/**
* The '<em><b>MAX</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>MAX</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #MAX
* @model
* @generated
* @ordered
*/
public static final int MAX_VALUE = 1;
/**
* An array of all the '<em><b>Optimization Direction Enum</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final OptimizationDirectionEnum[] VALUES_ARRAY =
new OptimizationDirectionEnum[] {
MIN,
MAX,
};
/**
* A public read-only list of all the '<em><b>Optimization Direction Enum</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<OptimizationDirectionEnum> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Optimization Direction Enum</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static OptimizationDirectionEnum get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
OptimizationDirectionEnum result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Optimization Direction Enum</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static OptimizationDirectionEnum getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
OptimizationDirectionEnum result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Optimization Direction Enum</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static OptimizationDirectionEnum get(int value) {
switch (value) {
case MIN_VALUE: return MIN;
case MAX_VALUE: return MAX;
}
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 OptimizationDirectionEnum(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
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;
}
} //OptimizationDirectionEnum
/**
*/
package org.fortiss.af3.exploration.dsl.model.operators;
import org.fortiss.af3.exploration.dsl.model.types.SetType;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Quantifier Op</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* DEPRECATED/LEGACY.
* <!-- end-model-doc -->
*
*
* @see org.fortiss.af3.exploration.dsl.model.operators.OperatorsPackage#getQuantifierOp()
* @model
* @generated
*/
public interface QuantifierOp extends Operator<QuantifierEnum, SetType<?>> {
} // QuantifierOp
/**
*/
package org.fortiss.af3.exploration.dsl.model.operators;
import org.fortiss.af3.exploration.dsl.model.expressions.ArithmeticExpression;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Summation Op</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* DEPRECATED/LEGACY.
* <!-- end-model-doc -->
*
*
* @see org.fortiss.af3.exploration.dsl.model.operators.OperatorsPackage#getSummationOp()
* @model
* @generated
*/
public interface SummationOp<T> extends Operator<ArithmeticOperatorEnum, ArithmeticExpression<T>>, ArithmeticExpression<T> {
} // SummationOp
/**
*/
package org.fortiss.af3.exploration.dsl.model.operators.impl;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.fortiss.af3.exploration.dsl.model.expressions.ArithmeticExpression;
import org.fortiss.af3.exploration.dsl.model.operators.ArithmeticOp;
import org.fortiss.af3.exploration.dsl.model.operators.ArithmeticOperatorEnum;
import org.fortiss.af3.exploration.dsl.model.operators.OperatorsPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Arithmetic Op</b></em>'.
* <!-- end-user-doc -->
* <p>
* </p>
*
* @generated
*/
public class ArithmeticOpImpl<T, LHE extends ArithmeticExpression<T>, RHE extends ArithmeticExpression<T>> extends DualOperatorImpl<LHE, ArithmeticOperatorEnum, RHE> implements ArithmeticOp<T, LHE, RHE> {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ArithmeticOpImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return OperatorsPackage.Literals.ARITHMETIC_OP;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* This is specialized for the more specific type known in this context.
* @generated
*/
@Override
public void setOperator(ArithmeticOperatorEnum newOperator) {
super.setOperator(newOperator);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* This is specialized for the more specific type known in this context.
* @generated
*/
@Override
public NotificationChain basicSetRight(RHE newRight, NotificationChain msgs) {
return super.basicSetRight(newRight, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* This is specialized for the more specific type known in this context.
* @generated
*/
@Override
public NotificationChain basicSetLeft(LHE newLeft, NotificationChain msgs) {
return super.basicSetLeft(newLeft, msgs);
}
} //ArithmeticOpImpl
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment