From 10d272818443979dbb15972b397e8ac1bbbd5cd2 Mon Sep 17 00:00:00 2001 From: OszkarSemerath Date: Sat, 10 Jun 2017 20:39:40 +0200 Subject: Added generated Xtext artefacts --- .../smtLanguage/impl/ReasoningProbeImpl.java | 177 ++ .../impl/ReasoningTacticParameterImpl.java | 265 ++ .../dslreasoner/smtLanguage/impl/SMTAndImpl.java | 165 ++ .../smtLanguage/impl/SMTAndThenCombinatorImpl.java | 165 ++ .../smtLanguage/impl/SMTAssertionImpl.java | 194 ++ .../smtLanguage/impl/SMTAtomicTermImpl.java | 42 + .../smtLanguage/impl/SMTBoolLiteralImpl.java | 176 ++ .../smtLanguage/impl/SMTBoolOperationImpl.java | 42 + .../smtLanguage/impl/SMTBoolTypeReferenceImpl.java | 42 + .../smtLanguage/impl/SMTBuiltinTacticImpl.java | 176 ++ .../impl/SMTCardinalityConstraintImpl.java | 241 ++ .../smtLanguage/impl/SMTComplexSatCommandImpl.java | 193 ++ .../impl/SMTComplexTypeReferenceImpl.java | 172 ++ .../smtLanguage/impl/SMTDistinctImpl.java | 165 ++ .../dslreasoner/smtLanguage/impl/SMTDivImpl.java | 42 + .../smtLanguage/impl/SMTDivisonImpl.java | 42 + .../smtLanguage/impl/SMTDocumentImpl.java | 266 ++ .../smtLanguage/impl/SMTEnumLiteralImpl.java | 42 + .../impl/SMTEnumeratedTypeDeclarationImpl.java | 165 ++ .../smtLanguage/impl/SMTEqualsImpl.java | 264 ++ .../smtLanguage/impl/SMTErrorResultImpl.java | 176 ++ .../smtLanguage/impl/SMTExistsImpl.java | 42 + .../smtLanguage/impl/SMTFailIfCombinatorImpl.java | 193 ++ .../smtLanguage/impl/SMTForallImpl.java | 42 + .../impl/SMTFunctionDeclarationImpl.java | 239 ++ .../impl/SMTFunctionDefinitionImpl.java | 312 ++ .../smtLanguage/impl/SMTGetModelCommandImpl.java | 44 + .../dslreasoner/smtLanguage/impl/SMTITEImpl.java | 335 +++ .../smtLanguage/impl/SMTIfCombinatorImpl.java | 336 +++ .../dslreasoner/smtLanguage/impl/SMTIffImpl.java | 264 ++ .../dslreasoner/smtLanguage/impl/SMTImplImpl.java | 264 ++ .../impl/SMTInlineConstantDefinitionImpl.java | 193 ++ .../dslreasoner/smtLanguage/impl/SMTInputImpl.java | 469 +++ .../smtLanguage/impl/SMTIntLiteralImpl.java | 176 ++ .../smtLanguage/impl/SMTIntOperationImpl.java | 264 ++ .../smtLanguage/impl/SMTIntTypeReferenceImpl.java | 42 + .../dslreasoner/smtLanguage/impl/SMTLEQImpl.java | 264 ++ .../dslreasoner/smtLanguage/impl/SMTLTImpl.java | 264 ++ .../dslreasoner/smtLanguage/impl/SMTLetImpl.java | 240 ++ .../dslreasoner/smtLanguage/impl/SMTMEQImpl.java | 264 ++ .../dslreasoner/smtLanguage/impl/SMTMTImpl.java | 264 ++ .../dslreasoner/smtLanguage/impl/SMTMinusImpl.java | 42 + .../dslreasoner/smtLanguage/impl/SMTModImpl.java | 42 + .../smtLanguage/impl/SMTModelResultImpl.java | 243 ++ .../smtLanguage/impl/SMTMultiplyImpl.java | 42 + .../dslreasoner/smtLanguage/impl/SMTNotImpl.java | 193 ++ .../smtLanguage/impl/SMTOptionImpl.java | 265 ++ .../smtLanguage/impl/SMTOrElseCombinatorImpl.java | 165 ++ .../dslreasoner/smtLanguage/impl/SMTOrImpl.java | 165 ++ .../smtLanguage/impl/SMTOutputImpl.java | 337 +++ .../smtLanguage/impl/SMTParOrCombinatorImpl.java | 165 ++ .../smtLanguage/impl/SMTParThenCombinatorImpl.java | 264 ++ .../dslreasoner/smtLanguage/impl/SMTPlusImpl.java | 42 + .../impl/SMTPrimitiveTypeReferenceImpl.java | 42 + .../impl/SMTQuantifiedExpressionImpl.java | 311 ++ .../smtLanguage/impl/SMTRealLiteralImpl.java | 178 ++ .../smtLanguage/impl/SMTRealTypeReferenceImpl.java | 42 + .../impl/SMTReasoningCombinatorImpl.java | 42 + .../smtLanguage/impl/SMTReasoningTacticImpl.java | 44 + .../smtLanguage/impl/SMTRelationImpl.java | 42 + .../smtLanguage/impl/SMTResultImpl.java | 44 + .../smtLanguage/impl/SMTSatCommandImpl.java | 44 + .../smtLanguage/impl/SMTSatResultImpl.java | 288 ++ .../impl/SMTSetTypeDeclarationImpl.java | 42 + .../smtLanguage/impl/SMTSimpleSatCommandImpl.java | 42 + .../smtLanguage/impl/SMTSortedVariableImpl.java | 193 ++ .../impl/SMTStatisticDoubleValueImpl.java | 178 ++ .../smtLanguage/impl/SMTStatisticIntValueImpl.java | 176 ++ .../smtLanguage/impl/SMTStatisticValueImpl.java | 177 ++ .../smtLanguage/impl/SMTStatisticsSectionImpl.java | 167 ++ .../impl/SMTSymbolicDeclarationImpl.java | 177 ++ .../smtLanguage/impl/SMTSymbolicValueImpl.java | 234 ++ .../dslreasoner/smtLanguage/impl/SMTTermImpl.java | 44 + .../smtLanguage/impl/SMTTryForCombinatorImpl.java | 264 ++ .../dslreasoner/smtLanguage/impl/SMTTypeImpl.java | 177 ++ .../smtLanguage/impl/SMTTypeReferenceImpl.java | 44 + .../smtLanguage/impl/SMTUnsupportedResultImpl.java | 176 ++ .../impl/SMTUsingParamCombinatorImpl.java | 240 ++ .../smtLanguage/impl/SMTWhenCombinatorImpl.java | 265 ++ .../smtLanguage/impl/SmtLanguageFactoryImpl.java | 1042 +++++++ .../smtLanguage/impl/SmtLanguagePackageImpl.java | 3062 ++++++++++++++++++++ 81 files changed, 17465 insertions(+) create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/ReasoningProbeImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/ReasoningTacticParameterImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTAndImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTAndThenCombinatorImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTAssertionImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTAtomicTermImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTBoolLiteralImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTBoolOperationImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTBoolTypeReferenceImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTBuiltinTacticImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTCardinalityConstraintImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTComplexSatCommandImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTComplexTypeReferenceImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDistinctImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDivImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDivisonImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDocumentImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTEnumLiteralImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTEnumeratedTypeDeclarationImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTEqualsImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTErrorResultImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTExistsImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTFailIfCombinatorImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTForallImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTFunctionDeclarationImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTFunctionDefinitionImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTGetModelCommandImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTITEImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTIfCombinatorImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTIffImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTImplImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTInlineConstantDefinitionImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTInputImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTIntLiteralImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTIntOperationImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTIntTypeReferenceImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTLEQImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTLTImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTLetImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTMEQImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTMTImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTMinusImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTModImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTModelResultImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTMultiplyImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTNotImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTOptionImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTOrElseCombinatorImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTOrImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTOutputImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTParOrCombinatorImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTParThenCombinatorImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTPlusImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTPrimitiveTypeReferenceImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTQuantifiedExpressionImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTRealLiteralImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTRealTypeReferenceImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTReasoningCombinatorImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTReasoningTacticImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTRelationImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTResultImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSatCommandImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSatResultImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSetTypeDeclarationImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSimpleSatCommandImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSortedVariableImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTStatisticDoubleValueImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTStatisticIntValueImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTStatisticValueImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTStatisticsSectionImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSymbolicDeclarationImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSymbolicValueImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTTermImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTTryForCombinatorImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTTypeImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTTypeReferenceImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTUnsupportedResultImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTUsingParamCombinatorImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTWhenCombinatorImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SmtLanguageFactoryImpl.java create mode 100644 Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SmtLanguagePackageImpl.java (limited to 'Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl') diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/ReasoningProbeImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/ReasoningProbeImpl.java new file mode 100644 index 00000000..5d0838e9 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/ReasoningProbeImpl.java @@ -0,0 +1,177 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.ReasoningProbe; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'Reasoning Probe'. + * + *

+ * The following features are implemented: + *

+ *

+ * + * @generated + */ +public class ReasoningProbeImpl extends MinimalEObjectImpl.Container implements ReasoningProbe +{ + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected ReasoningProbeImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.REASONING_PROBE; + } + + /** + * + * + * @generated + */ + public String getName() + { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.REASONING_PROBE__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.REASONING_PROBE__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.REASONING_PROBE__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.REASONING_PROBE__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.REASONING_PROBE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //ReasoningProbeImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/ReasoningTacticParameterImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/ReasoningTacticParameterImpl.java new file mode 100644 index 00000000..cbf1cd36 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/ReasoningTacticParameterImpl.java @@ -0,0 +1,265 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.ReasoningTacticParameter; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTAtomicTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'Reasoning Tactic Parameter'. + * + *

+ * The following features are implemented: + *

+ *

+ * + * @generated + */ +public class ReasoningTacticParameterImpl extends MinimalEObjectImpl.Container implements ReasoningTacticParameter +{ + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getValue() Value}' containment reference. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected SMTAtomicTerm value; + + /** + * + * + * @generated + */ + protected ReasoningTacticParameterImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.REASONING_TACTIC_PARAMETER; + } + + /** + * + * + * @generated + */ + public String getName() + { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.REASONING_TACTIC_PARAMETER__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public SMTAtomicTerm getValue() + { + return value; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetValue(SMTAtomicTerm newValue, NotificationChain msgs) + { + SMTAtomicTerm oldValue = value; + value = newValue; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.REASONING_TACTIC_PARAMETER__VALUE, oldValue, newValue); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setValue(SMTAtomicTerm newValue) + { + if (newValue != value) + { + NotificationChain msgs = null; + if (value != null) + msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.REASONING_TACTIC_PARAMETER__VALUE, null, msgs); + if (newValue != null) + msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.REASONING_TACTIC_PARAMETER__VALUE, null, msgs); + msgs = basicSetValue(newValue, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.REASONING_TACTIC_PARAMETER__VALUE, newValue, newValue)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.REASONING_TACTIC_PARAMETER__VALUE: + return basicSetValue(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.REASONING_TACTIC_PARAMETER__NAME: + return getName(); + case SmtLanguagePackage.REASONING_TACTIC_PARAMETER__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.REASONING_TACTIC_PARAMETER__NAME: + setName((String)newValue); + return; + case SmtLanguagePackage.REASONING_TACTIC_PARAMETER__VALUE: + setValue((SMTAtomicTerm)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.REASONING_TACTIC_PARAMETER__NAME: + setName(NAME_EDEFAULT); + return; + case SmtLanguagePackage.REASONING_TACTIC_PARAMETER__VALUE: + setValue((SMTAtomicTerm)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.REASONING_TACTIC_PARAMETER__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case SmtLanguagePackage.REASONING_TACTIC_PARAMETER__VALUE: + return value != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //ReasoningTacticParameterImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTAndImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTAndImpl.java new file mode 100644 index 00000000..5bec747b --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTAndImpl.java @@ -0,0 +1,165 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTAnd; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'SMT And'. + * + *

+ * The following features are implemented: + *

+ *

+ * + * @generated + */ +public class SMTAndImpl extends SMTBoolOperationImpl implements SMTAnd +{ + /** + * The cached value of the '{@link #getOperands() Operands}' containment reference list. + * + * + * @see #getOperands() + * @generated + * @ordered + */ + protected EList operands; + + /** + * + * + * @generated + */ + protected SMTAndImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_AND; + } + + /** + * + * + * @generated + */ + public EList getOperands() + { + if (operands == null) + { + operands = new EObjectContainmentEList(SMTTerm.class, this, SmtLanguagePackage.SMT_AND__OPERANDS); + } + return operands; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_AND__OPERANDS: + return ((InternalEList)getOperands()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_AND__OPERANDS: + return getOperands(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_AND__OPERANDS: + getOperands().clear(); + getOperands().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_AND__OPERANDS: + getOperands().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_AND__OPERANDS: + return operands != null && !operands.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //SMTAndImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTAndThenCombinatorImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTAndThenCombinatorImpl.java new file mode 100644 index 00000000..bfc00605 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTAndThenCombinatorImpl.java @@ -0,0 +1,165 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTAndThenCombinator; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTReasoningTactic; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'SMT And Then Combinator'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTAndThenCombinatorImpl#getTactics Tactics}
  • + *
+ *

+ * + * @generated + */ +public class SMTAndThenCombinatorImpl extends SMTReasoningCombinatorImpl implements SMTAndThenCombinator +{ + /** + * The cached value of the '{@link #getTactics() Tactics}' containment reference list. + * + * + * @see #getTactics() + * @generated + * @ordered + */ + protected EList tactics; + + /** + * + * + * @generated + */ + protected SMTAndThenCombinatorImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_AND_THEN_COMBINATOR; + } + + /** + * + * + * @generated + */ + public EList getTactics() + { + if (tactics == null) + { + tactics = new EObjectContainmentEList(SMTReasoningTactic.class, this, SmtLanguagePackage.SMT_AND_THEN_COMBINATOR__TACTICS); + } + return tactics; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_AND_THEN_COMBINATOR__TACTICS: + return ((InternalEList)getTactics()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_AND_THEN_COMBINATOR__TACTICS: + return getTactics(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_AND_THEN_COMBINATOR__TACTICS: + getTactics().clear(); + getTactics().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_AND_THEN_COMBINATOR__TACTICS: + getTactics().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_AND_THEN_COMBINATOR__TACTICS: + return tactics != null && !tactics.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //SMTAndThenCombinatorImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTAssertionImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTAssertionImpl.java new file mode 100644 index 00000000..8be64892 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTAssertionImpl.java @@ -0,0 +1,194 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTAssertion; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMT Assertion'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTAssertionImpl#getValue Value}
  • + *
+ *

+ * + * @generated + */ +public class SMTAssertionImpl extends MinimalEObjectImpl.Container implements SMTAssertion +{ + /** + * The cached value of the '{@link #getValue() Value}' containment reference. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected SMTTerm value; + + /** + * + * + * @generated + */ + protected SMTAssertionImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_ASSERTION; + } + + /** + * + * + * @generated + */ + public SMTTerm getValue() + { + return value; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetValue(SMTTerm newValue, NotificationChain msgs) + { + SMTTerm oldValue = value; + value = newValue; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_ASSERTION__VALUE, oldValue, newValue); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setValue(SMTTerm newValue) + { + if (newValue != value) + { + NotificationChain msgs = null; + if (value != null) + msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_ASSERTION__VALUE, null, msgs); + if (newValue != null) + msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_ASSERTION__VALUE, null, msgs); + msgs = basicSetValue(newValue, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_ASSERTION__VALUE, newValue, newValue)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_ASSERTION__VALUE: + return basicSetValue(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_ASSERTION__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_ASSERTION__VALUE: + setValue((SMTTerm)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_ASSERTION__VALUE: + setValue((SMTTerm)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_ASSERTION__VALUE: + return value != null; + } + return super.eIsSet(featureID); + } + +} //SMTAssertionImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTAtomicTermImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTAtomicTermImpl.java new file mode 100644 index 00000000..18202a68 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTAtomicTermImpl.java @@ -0,0 +1,42 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTAtomicTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'SMT Atomic Term'. + * + *

+ *

+ * + * @generated + */ +public class SMTAtomicTermImpl extends SMTTermImpl implements SMTAtomicTerm +{ + /** + * + * + * @generated + */ + protected SMTAtomicTermImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_ATOMIC_TERM; + } + +} //SMTAtomicTermImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTBoolLiteralImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTBoolLiteralImpl.java new file mode 100644 index 00000000..645ed713 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTBoolLiteralImpl.java @@ -0,0 +1,176 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTBoolLiteral; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'SMT Bool Literal'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTBoolLiteralImpl#isValue Value}
  • + *
+ *

+ * + * @generated + */ +public class SMTBoolLiteralImpl extends SMTAtomicTermImpl implements SMTBoolLiteral +{ + /** + * The default value of the '{@link #isValue() Value}' attribute. + * + * + * @see #isValue() + * @generated + * @ordered + */ + protected static final boolean VALUE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isValue() Value}' attribute. + * + * + * @see #isValue() + * @generated + * @ordered + */ + protected boolean value = VALUE_EDEFAULT; + + /** + * + * + * @generated + */ + protected SMTBoolLiteralImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_BOOL_LITERAL; + } + + /** + * + * + * @generated + */ + public boolean isValue() + { + return value; + } + + /** + * + * + * @generated + */ + public void setValue(boolean newValue) + { + boolean oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_BOOL_LITERAL__VALUE, oldValue, value)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_BOOL_LITERAL__VALUE: + return isValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_BOOL_LITERAL__VALUE: + setValue((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_BOOL_LITERAL__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_BOOL_LITERAL__VALUE: + return value != VALUE_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + +} //SMTBoolLiteralImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTBoolOperationImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTBoolOperationImpl.java new file mode 100644 index 00000000..2d46ada6 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTBoolOperationImpl.java @@ -0,0 +1,42 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTBoolOperation; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'SMT Bool Operation'. + * + *

+ *

+ * + * @generated + */ +public class SMTBoolOperationImpl extends SMTTermImpl implements SMTBoolOperation +{ + /** + * + * + * @generated + */ + protected SMTBoolOperationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_BOOL_OPERATION; + } + +} //SMTBoolOperationImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTBoolTypeReferenceImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTBoolTypeReferenceImpl.java new file mode 100644 index 00000000..0bcaf2fc --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTBoolTypeReferenceImpl.java @@ -0,0 +1,42 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTBoolTypeReference; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'SMT Bool Type Reference'. + * + *

+ *

+ * + * @generated + */ +public class SMTBoolTypeReferenceImpl extends SMTPrimitiveTypeReferenceImpl implements SMTBoolTypeReference +{ + /** + * + * + * @generated + */ + protected SMTBoolTypeReferenceImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_BOOL_TYPE_REFERENCE; + } + +} //SMTBoolTypeReferenceImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTBuiltinTacticImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTBuiltinTacticImpl.java new file mode 100644 index 00000000..c5a182d9 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTBuiltinTacticImpl.java @@ -0,0 +1,176 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTBuiltinTactic; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'SMT Builtin Tactic'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTBuiltinTacticImpl#getName Name}
  • + *
+ *

+ * + * @generated + */ +public class SMTBuiltinTacticImpl extends SMTReasoningTacticImpl implements SMTBuiltinTactic +{ + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected SMTBuiltinTacticImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_BUILTIN_TACTIC; + } + + /** + * + * + * @generated + */ + public String getName() + { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_BUILTIN_TACTIC__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_BUILTIN_TACTIC__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_BUILTIN_TACTIC__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_BUILTIN_TACTIC__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_BUILTIN_TACTIC__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //SMTBuiltinTacticImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTCardinalityConstraintImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTCardinalityConstraintImpl.java new file mode 100644 index 00000000..7bc53cf3 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTCardinalityConstraintImpl.java @@ -0,0 +1,241 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTCardinalityConstraint; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTSymbolicValue; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTypeReference; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'SMT Cardinality Constraint'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTCardinalityConstraintImpl#getType Type}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTCardinalityConstraintImpl#getElements Elements}
  • + *
+ *

+ * + * @generated + */ +public class SMTCardinalityConstraintImpl extends MinimalEObjectImpl.Container implements SMTCardinalityConstraint +{ + /** + * The cached value of the '{@link #getType() Type}' containment reference. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected SMTTypeReference type; + + /** + * The cached value of the '{@link #getElements() Elements}' containment reference list. + * + * + * @see #getElements() + * @generated + * @ordered + */ + protected EList elements; + + /** + * + * + * @generated + */ + protected SMTCardinalityConstraintImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_CARDINALITY_CONSTRAINT; + } + + /** + * + * + * @generated + */ + public SMTTypeReference getType() + { + return type; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetType(SMTTypeReference newType, NotificationChain msgs) + { + SMTTypeReference oldType = type; + type = newType; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_CARDINALITY_CONSTRAINT__TYPE, oldType, newType); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setType(SMTTypeReference newType) + { + if (newType != type) + { + NotificationChain msgs = null; + if (type != null) + msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_CARDINALITY_CONSTRAINT__TYPE, null, msgs); + if (newType != null) + msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_CARDINALITY_CONSTRAINT__TYPE, null, msgs); + msgs = basicSetType(newType, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_CARDINALITY_CONSTRAINT__TYPE, newType, newType)); + } + + /** + * + * + * @generated + */ + public EList getElements() + { + if (elements == null) + { + elements = new EObjectContainmentEList(SMTSymbolicValue.class, this, SmtLanguagePackage.SMT_CARDINALITY_CONSTRAINT__ELEMENTS); + } + return elements; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_CARDINALITY_CONSTRAINT__TYPE: + return basicSetType(null, msgs); + case SmtLanguagePackage.SMT_CARDINALITY_CONSTRAINT__ELEMENTS: + return ((InternalEList)getElements()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_CARDINALITY_CONSTRAINT__TYPE: + return getType(); + case SmtLanguagePackage.SMT_CARDINALITY_CONSTRAINT__ELEMENTS: + return getElements(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_CARDINALITY_CONSTRAINT__TYPE: + setType((SMTTypeReference)newValue); + return; + case SmtLanguagePackage.SMT_CARDINALITY_CONSTRAINT__ELEMENTS: + getElements().clear(); + getElements().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_CARDINALITY_CONSTRAINT__TYPE: + setType((SMTTypeReference)null); + return; + case SmtLanguagePackage.SMT_CARDINALITY_CONSTRAINT__ELEMENTS: + getElements().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_CARDINALITY_CONSTRAINT__TYPE: + return type != null; + case SmtLanguagePackage.SMT_CARDINALITY_CONSTRAINT__ELEMENTS: + return elements != null && !elements.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //SMTCardinalityConstraintImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTComplexSatCommandImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTComplexSatCommandImpl.java new file mode 100644 index 00000000..181d946c --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTComplexSatCommandImpl.java @@ -0,0 +1,193 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTComplexSatCommand; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTReasoningTactic; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMT Complex Sat Command'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTComplexSatCommandImpl#getMethod Method}
  • + *
+ *

+ * + * @generated + */ +public class SMTComplexSatCommandImpl extends SMTSatCommandImpl implements SMTComplexSatCommand +{ + /** + * The cached value of the '{@link #getMethod() Method}' containment reference. + * + * + * @see #getMethod() + * @generated + * @ordered + */ + protected SMTReasoningTactic method; + + /** + * + * + * @generated + */ + protected SMTComplexSatCommandImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_COMPLEX_SAT_COMMAND; + } + + /** + * + * + * @generated + */ + public SMTReasoningTactic getMethod() + { + return method; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetMethod(SMTReasoningTactic newMethod, NotificationChain msgs) + { + SMTReasoningTactic oldMethod = method; + method = newMethod; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_COMPLEX_SAT_COMMAND__METHOD, oldMethod, newMethod); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setMethod(SMTReasoningTactic newMethod) + { + if (newMethod != method) + { + NotificationChain msgs = null; + if (method != null) + msgs = ((InternalEObject)method).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_COMPLEX_SAT_COMMAND__METHOD, null, msgs); + if (newMethod != null) + msgs = ((InternalEObject)newMethod).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_COMPLEX_SAT_COMMAND__METHOD, null, msgs); + msgs = basicSetMethod(newMethod, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_COMPLEX_SAT_COMMAND__METHOD, newMethod, newMethod)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_COMPLEX_SAT_COMMAND__METHOD: + return basicSetMethod(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_COMPLEX_SAT_COMMAND__METHOD: + return getMethod(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_COMPLEX_SAT_COMMAND__METHOD: + setMethod((SMTReasoningTactic)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_COMPLEX_SAT_COMMAND__METHOD: + setMethod((SMTReasoningTactic)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_COMPLEX_SAT_COMMAND__METHOD: + return method != null; + } + return super.eIsSet(featureID); + } + +} //SMTComplexSatCommandImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTComplexTypeReferenceImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTComplexTypeReferenceImpl.java new file mode 100644 index 00000000..5338604b --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTComplexTypeReferenceImpl.java @@ -0,0 +1,172 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTComplexTypeReference; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTType; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMT Complex Type Reference'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTComplexTypeReferenceImpl#getReferred Referred}
  • + *
+ *

+ * + * @generated + */ +public class SMTComplexTypeReferenceImpl extends SMTTypeReferenceImpl implements SMTComplexTypeReference +{ + /** + * The cached value of the '{@link #getReferred() Referred}' reference. + * + * + * @see #getReferred() + * @generated + * @ordered + */ + protected SMTType referred; + + /** + * + * + * @generated + */ + protected SMTComplexTypeReferenceImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_COMPLEX_TYPE_REFERENCE; + } + + /** + * + * + * @generated + */ + public SMTType getReferred() + { + if (referred != null && referred.eIsProxy()) + { + InternalEObject oldReferred = (InternalEObject)referred; + referred = (SMTType)eResolveProxy(oldReferred); + if (referred != oldReferred) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SmtLanguagePackage.SMT_COMPLEX_TYPE_REFERENCE__REFERRED, oldReferred, referred)); + } + } + return referred; + } + + /** + * + * + * @generated + */ + public SMTType basicGetReferred() + { + return referred; + } + + /** + * + * + * @generated + */ + public void setReferred(SMTType newReferred) + { + SMTType oldReferred = referred; + referred = newReferred; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_COMPLEX_TYPE_REFERENCE__REFERRED, oldReferred, referred)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_COMPLEX_TYPE_REFERENCE__REFERRED: + if (resolve) return getReferred(); + return basicGetReferred(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_COMPLEX_TYPE_REFERENCE__REFERRED: + setReferred((SMTType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_COMPLEX_TYPE_REFERENCE__REFERRED: + setReferred((SMTType)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_COMPLEX_TYPE_REFERENCE__REFERRED: + return referred != null; + } + return super.eIsSet(featureID); + } + +} //SMTComplexTypeReferenceImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDistinctImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDistinctImpl.java new file mode 100644 index 00000000..f3e38aa4 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDistinctImpl.java @@ -0,0 +1,165 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTDistinct; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'SMT Distinct'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTDistinctImpl#getOperands Operands}
  • + *
+ *

+ * + * @generated + */ +public class SMTDistinctImpl extends SMTRelationImpl implements SMTDistinct +{ + /** + * The cached value of the '{@link #getOperands() Operands}' containment reference list. + * + * + * @see #getOperands() + * @generated + * @ordered + */ + protected EList operands; + + /** + * + * + * @generated + */ + protected SMTDistinctImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_DISTINCT; + } + + /** + * + * + * @generated + */ + public EList getOperands() + { + if (operands == null) + { + operands = new EObjectContainmentEList(SMTTerm.class, this, SmtLanguagePackage.SMT_DISTINCT__OPERANDS); + } + return operands; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_DISTINCT__OPERANDS: + return ((InternalEList)getOperands()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_DISTINCT__OPERANDS: + return getOperands(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_DISTINCT__OPERANDS: + getOperands().clear(); + getOperands().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_DISTINCT__OPERANDS: + getOperands().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_DISTINCT__OPERANDS: + return operands != null && !operands.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //SMTDistinctImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDivImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDivImpl.java new file mode 100644 index 00000000..3e2377ea --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDivImpl.java @@ -0,0 +1,42 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTDiv; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'SMT Div'. + * + *

+ *

+ * + * @generated + */ +public class SMTDivImpl extends SMTIntOperationImpl implements SMTDiv +{ + /** + * + * + * @generated + */ + protected SMTDivImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_DIV; + } + +} //SMTDivImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDivisonImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDivisonImpl.java new file mode 100644 index 00000000..85997500 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDivisonImpl.java @@ -0,0 +1,42 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTDivison; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'SMT Divison'. + * + *

+ *

+ * + * @generated + */ +public class SMTDivisonImpl extends SMTIntOperationImpl implements SMTDivison +{ + /** + * + * + * @generated + */ + protected SMTDivisonImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_DIVISON; + } + +} //SMTDivisonImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDocumentImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDocumentImpl.java new file mode 100644 index 00000000..e3b14eaa --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTDocumentImpl.java @@ -0,0 +1,266 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTDocument; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTInput; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTOutput; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMT Document'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTDocumentImpl#getInput Input}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTDocumentImpl#getOutput Output}
  • + *
+ *

+ * + * @generated + */ +public class SMTDocumentImpl extends MinimalEObjectImpl.Container implements SMTDocument +{ + /** + * The cached value of the '{@link #getInput() Input}' containment reference. + * + * + * @see #getInput() + * @generated + * @ordered + */ + protected SMTInput input; + + /** + * The cached value of the '{@link #getOutput() Output}' containment reference. + * + * + * @see #getOutput() + * @generated + * @ordered + */ + protected SMTOutput output; + + /** + * + * + * @generated + */ + protected SMTDocumentImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_DOCUMENT; + } + + /** + * + * + * @generated + */ + public SMTInput getInput() + { + return input; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetInput(SMTInput newInput, NotificationChain msgs) + { + SMTInput oldInput = input; + input = newInput; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_DOCUMENT__INPUT, oldInput, newInput); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setInput(SMTInput newInput) + { + if (newInput != input) + { + NotificationChain msgs = null; + if (input != null) + msgs = ((InternalEObject)input).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_DOCUMENT__INPUT, null, msgs); + if (newInput != null) + msgs = ((InternalEObject)newInput).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_DOCUMENT__INPUT, null, msgs); + msgs = basicSetInput(newInput, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_DOCUMENT__INPUT, newInput, newInput)); + } + + /** + * + * + * @generated + */ + public SMTOutput getOutput() + { + return output; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetOutput(SMTOutput newOutput, NotificationChain msgs) + { + SMTOutput oldOutput = output; + output = newOutput; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_DOCUMENT__OUTPUT, oldOutput, newOutput); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setOutput(SMTOutput newOutput) + { + if (newOutput != output) + { + NotificationChain msgs = null; + if (output != null) + msgs = ((InternalEObject)output).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_DOCUMENT__OUTPUT, null, msgs); + if (newOutput != null) + msgs = ((InternalEObject)newOutput).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_DOCUMENT__OUTPUT, null, msgs); + msgs = basicSetOutput(newOutput, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_DOCUMENT__OUTPUT, newOutput, newOutput)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_DOCUMENT__INPUT: + return basicSetInput(null, msgs); + case SmtLanguagePackage.SMT_DOCUMENT__OUTPUT: + return basicSetOutput(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_DOCUMENT__INPUT: + return getInput(); + case SmtLanguagePackage.SMT_DOCUMENT__OUTPUT: + return getOutput(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_DOCUMENT__INPUT: + setInput((SMTInput)newValue); + return; + case SmtLanguagePackage.SMT_DOCUMENT__OUTPUT: + setOutput((SMTOutput)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_DOCUMENT__INPUT: + setInput((SMTInput)null); + return; + case SmtLanguagePackage.SMT_DOCUMENT__OUTPUT: + setOutput((SMTOutput)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_DOCUMENT__INPUT: + return input != null; + case SmtLanguagePackage.SMT_DOCUMENT__OUTPUT: + return output != null; + } + return super.eIsSet(featureID); + } + +} //SMTDocumentImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTEnumLiteralImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTEnumLiteralImpl.java new file mode 100644 index 00000000..3dce83fb --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTEnumLiteralImpl.java @@ -0,0 +1,42 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTEnumLiteral; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'SMT Enum Literal'. + * + *

+ *

+ * + * @generated + */ +public class SMTEnumLiteralImpl extends SMTSymbolicDeclarationImpl implements SMTEnumLiteral +{ + /** + * + * + * @generated + */ + protected SMTEnumLiteralImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_ENUM_LITERAL; + } + +} //SMTEnumLiteralImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTEnumeratedTypeDeclarationImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTEnumeratedTypeDeclarationImpl.java new file mode 100644 index 00000000..1a85c485 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTEnumeratedTypeDeclarationImpl.java @@ -0,0 +1,165 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTEnumLiteral; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTEnumeratedTypeDeclaration; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'SMT Enumerated Type Declaration'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTEnumeratedTypeDeclarationImpl#getElements Elements}
  • + *
+ *

+ * + * @generated + */ +public class SMTEnumeratedTypeDeclarationImpl extends SMTTypeImpl implements SMTEnumeratedTypeDeclaration +{ + /** + * The cached value of the '{@link #getElements() Elements}' containment reference list. + * + * + * @see #getElements() + * @generated + * @ordered + */ + protected EList elements; + + /** + * + * + * @generated + */ + protected SMTEnumeratedTypeDeclarationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_ENUMERATED_TYPE_DECLARATION; + } + + /** + * + * + * @generated + */ + public EList getElements() + { + if (elements == null) + { + elements = new EObjectContainmentEList(SMTEnumLiteral.class, this, SmtLanguagePackage.SMT_ENUMERATED_TYPE_DECLARATION__ELEMENTS); + } + return elements; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_ENUMERATED_TYPE_DECLARATION__ELEMENTS: + return ((InternalEList)getElements()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_ENUMERATED_TYPE_DECLARATION__ELEMENTS: + return getElements(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_ENUMERATED_TYPE_DECLARATION__ELEMENTS: + getElements().clear(); + getElements().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_ENUMERATED_TYPE_DECLARATION__ELEMENTS: + getElements().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_ENUMERATED_TYPE_DECLARATION__ELEMENTS: + return elements != null && !elements.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //SMTEnumeratedTypeDeclarationImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTEqualsImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTEqualsImpl.java new file mode 100644 index 00000000..55896853 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTEqualsImpl.java @@ -0,0 +1,264 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTEquals; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMT Equals'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTEqualsImpl#getLeftOperand Left Operand}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTEqualsImpl#getRightOperand Right Operand}
  • + *
+ *

+ * + * @generated + */ +public class SMTEqualsImpl extends SMTRelationImpl implements SMTEquals +{ + /** + * The cached value of the '{@link #getLeftOperand() Left Operand}' containment reference. + * + * + * @see #getLeftOperand() + * @generated + * @ordered + */ + protected SMTTerm leftOperand; + + /** + * The cached value of the '{@link #getRightOperand() Right Operand}' containment reference. + * + * + * @see #getRightOperand() + * @generated + * @ordered + */ + protected SMTTerm rightOperand; + + /** + * + * + * @generated + */ + protected SMTEqualsImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_EQUALS; + } + + /** + * + * + * @generated + */ + public SMTTerm getLeftOperand() + { + return leftOperand; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetLeftOperand(SMTTerm newLeftOperand, NotificationChain msgs) + { + SMTTerm oldLeftOperand = leftOperand; + leftOperand = newLeftOperand; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_EQUALS__LEFT_OPERAND, oldLeftOperand, newLeftOperand); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setLeftOperand(SMTTerm newLeftOperand) + { + if (newLeftOperand != leftOperand) + { + NotificationChain msgs = null; + if (leftOperand != null) + msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_EQUALS__LEFT_OPERAND, null, msgs); + if (newLeftOperand != null) + msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_EQUALS__LEFT_OPERAND, null, msgs); + msgs = basicSetLeftOperand(newLeftOperand, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_EQUALS__LEFT_OPERAND, newLeftOperand, newLeftOperand)); + } + + /** + * + * + * @generated + */ + public SMTTerm getRightOperand() + { + return rightOperand; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetRightOperand(SMTTerm newRightOperand, NotificationChain msgs) + { + SMTTerm oldRightOperand = rightOperand; + rightOperand = newRightOperand; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_EQUALS__RIGHT_OPERAND, oldRightOperand, newRightOperand); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setRightOperand(SMTTerm newRightOperand) + { + if (newRightOperand != rightOperand) + { + NotificationChain msgs = null; + if (rightOperand != null) + msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_EQUALS__RIGHT_OPERAND, null, msgs); + if (newRightOperand != null) + msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_EQUALS__RIGHT_OPERAND, null, msgs); + msgs = basicSetRightOperand(newRightOperand, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_EQUALS__RIGHT_OPERAND, newRightOperand, newRightOperand)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_EQUALS__LEFT_OPERAND: + return basicSetLeftOperand(null, msgs); + case SmtLanguagePackage.SMT_EQUALS__RIGHT_OPERAND: + return basicSetRightOperand(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_EQUALS__LEFT_OPERAND: + return getLeftOperand(); + case SmtLanguagePackage.SMT_EQUALS__RIGHT_OPERAND: + return getRightOperand(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_EQUALS__LEFT_OPERAND: + setLeftOperand((SMTTerm)newValue); + return; + case SmtLanguagePackage.SMT_EQUALS__RIGHT_OPERAND: + setRightOperand((SMTTerm)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_EQUALS__LEFT_OPERAND: + setLeftOperand((SMTTerm)null); + return; + case SmtLanguagePackage.SMT_EQUALS__RIGHT_OPERAND: + setRightOperand((SMTTerm)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_EQUALS__LEFT_OPERAND: + return leftOperand != null; + case SmtLanguagePackage.SMT_EQUALS__RIGHT_OPERAND: + return rightOperand != null; + } + return super.eIsSet(featureID); + } + +} //SMTEqualsImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTErrorResultImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTErrorResultImpl.java new file mode 100644 index 00000000..52654821 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTErrorResultImpl.java @@ -0,0 +1,176 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTErrorResult; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'SMT Error Result'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTErrorResultImpl#getMessage Message}
  • + *
+ *

+ * + * @generated + */ +public class SMTErrorResultImpl extends SMTResultImpl implements SMTErrorResult +{ + /** + * The default value of the '{@link #getMessage() Message}' attribute. + * + * + * @see #getMessage() + * @generated + * @ordered + */ + protected static final String MESSAGE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMessage() Message}' attribute. + * + * + * @see #getMessage() + * @generated + * @ordered + */ + protected String message = MESSAGE_EDEFAULT; + + /** + * + * + * @generated + */ + protected SMTErrorResultImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_ERROR_RESULT; + } + + /** + * + * + * @generated + */ + public String getMessage() + { + return message; + } + + /** + * + * + * @generated + */ + public void setMessage(String newMessage) + { + String oldMessage = message; + message = newMessage; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_ERROR_RESULT__MESSAGE, oldMessage, message)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_ERROR_RESULT__MESSAGE: + return getMessage(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_ERROR_RESULT__MESSAGE: + setMessage((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_ERROR_RESULT__MESSAGE: + setMessage(MESSAGE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_ERROR_RESULT__MESSAGE: + return MESSAGE_EDEFAULT == null ? message != null : !MESSAGE_EDEFAULT.equals(message); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (message: "); + result.append(message); + result.append(')'); + return result.toString(); + } + +} //SMTErrorResultImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTExistsImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTExistsImpl.java new file mode 100644 index 00000000..b33a8b4f --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTExistsImpl.java @@ -0,0 +1,42 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTExists; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'SMT Exists'. + * + *

+ *

+ * + * @generated + */ +public class SMTExistsImpl extends SMTQuantifiedExpressionImpl implements SMTExists +{ + /** + * + * + * @generated + */ + protected SMTExistsImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_EXISTS; + } + +} //SMTExistsImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTFailIfCombinatorImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTFailIfCombinatorImpl.java new file mode 100644 index 00000000..e600faca --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTFailIfCombinatorImpl.java @@ -0,0 +1,193 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.ReasoningProbe; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTFailIfCombinator; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMT Fail If Combinator'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTFailIfCombinatorImpl#getProbe Probe}
  • + *
+ *

+ * + * @generated + */ +public class SMTFailIfCombinatorImpl extends SMTReasoningCombinatorImpl implements SMTFailIfCombinator +{ + /** + * The cached value of the '{@link #getProbe() Probe}' containment reference. + * + * + * @see #getProbe() + * @generated + * @ordered + */ + protected ReasoningProbe probe; + + /** + * + * + * @generated + */ + protected SMTFailIfCombinatorImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_FAIL_IF_COMBINATOR; + } + + /** + * + * + * @generated + */ + public ReasoningProbe getProbe() + { + return probe; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetProbe(ReasoningProbe newProbe, NotificationChain msgs) + { + ReasoningProbe oldProbe = probe; + probe = newProbe; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_FAIL_IF_COMBINATOR__PROBE, oldProbe, newProbe); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setProbe(ReasoningProbe newProbe) + { + if (newProbe != probe) + { + NotificationChain msgs = null; + if (probe != null) + msgs = ((InternalEObject)probe).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_FAIL_IF_COMBINATOR__PROBE, null, msgs); + if (newProbe != null) + msgs = ((InternalEObject)newProbe).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_FAIL_IF_COMBINATOR__PROBE, null, msgs); + msgs = basicSetProbe(newProbe, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_FAIL_IF_COMBINATOR__PROBE, newProbe, newProbe)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_FAIL_IF_COMBINATOR__PROBE: + return basicSetProbe(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_FAIL_IF_COMBINATOR__PROBE: + return getProbe(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_FAIL_IF_COMBINATOR__PROBE: + setProbe((ReasoningProbe)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_FAIL_IF_COMBINATOR__PROBE: + setProbe((ReasoningProbe)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_FAIL_IF_COMBINATOR__PROBE: + return probe != null; + } + return super.eIsSet(featureID); + } + +} //SMTFailIfCombinatorImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTForallImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTForallImpl.java new file mode 100644 index 00000000..184b2cf0 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTForallImpl.java @@ -0,0 +1,42 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTForall; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'SMT Forall'. + * + *

+ *

+ * + * @generated + */ +public class SMTForallImpl extends SMTQuantifiedExpressionImpl implements SMTForall +{ + /** + * + * + * @generated + */ + protected SMTForallImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_FORALL; + } + +} //SMTForallImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTFunctionDeclarationImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTFunctionDeclarationImpl.java new file mode 100644 index 00000000..dae096ac --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTFunctionDeclarationImpl.java @@ -0,0 +1,239 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTFunctionDeclaration; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTypeReference; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'SMT Function Declaration'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTFunctionDeclarationImpl#getParameters Parameters}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTFunctionDeclarationImpl#getRange Range}
  • + *
+ *

+ * + * @generated + */ +public class SMTFunctionDeclarationImpl extends SMTSymbolicDeclarationImpl implements SMTFunctionDeclaration +{ + /** + * The cached value of the '{@link #getParameters() Parameters}' containment reference list. + * + * + * @see #getParameters() + * @generated + * @ordered + */ + protected EList parameters; + + /** + * The cached value of the '{@link #getRange() Range}' containment reference. + * + * + * @see #getRange() + * @generated + * @ordered + */ + protected SMTTypeReference range; + + /** + * + * + * @generated + */ + protected SMTFunctionDeclarationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_FUNCTION_DECLARATION; + } + + /** + * + * + * @generated + */ + public EList getParameters() + { + if (parameters == null) + { + parameters = new EObjectContainmentEList(SMTTypeReference.class, this, SmtLanguagePackage.SMT_FUNCTION_DECLARATION__PARAMETERS); + } + return parameters; + } + + /** + * + * + * @generated + */ + public SMTTypeReference getRange() + { + return range; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetRange(SMTTypeReference newRange, NotificationChain msgs) + { + SMTTypeReference oldRange = range; + range = newRange; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_FUNCTION_DECLARATION__RANGE, oldRange, newRange); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setRange(SMTTypeReference newRange) + { + if (newRange != range) + { + NotificationChain msgs = null; + if (range != null) + msgs = ((InternalEObject)range).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_FUNCTION_DECLARATION__RANGE, null, msgs); + if (newRange != null) + msgs = ((InternalEObject)newRange).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_FUNCTION_DECLARATION__RANGE, null, msgs); + msgs = basicSetRange(newRange, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_FUNCTION_DECLARATION__RANGE, newRange, newRange)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_FUNCTION_DECLARATION__PARAMETERS: + return ((InternalEList)getParameters()).basicRemove(otherEnd, msgs); + case SmtLanguagePackage.SMT_FUNCTION_DECLARATION__RANGE: + return basicSetRange(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_FUNCTION_DECLARATION__PARAMETERS: + return getParameters(); + case SmtLanguagePackage.SMT_FUNCTION_DECLARATION__RANGE: + return getRange(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_FUNCTION_DECLARATION__PARAMETERS: + getParameters().clear(); + getParameters().addAll((Collection)newValue); + return; + case SmtLanguagePackage.SMT_FUNCTION_DECLARATION__RANGE: + setRange((SMTTypeReference)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_FUNCTION_DECLARATION__PARAMETERS: + getParameters().clear(); + return; + case SmtLanguagePackage.SMT_FUNCTION_DECLARATION__RANGE: + setRange((SMTTypeReference)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_FUNCTION_DECLARATION__PARAMETERS: + return parameters != null && !parameters.isEmpty(); + case SmtLanguagePackage.SMT_FUNCTION_DECLARATION__RANGE: + return range != null; + } + return super.eIsSet(featureID); + } + +} //SMTFunctionDeclarationImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTFunctionDefinitionImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTFunctionDefinitionImpl.java new file mode 100644 index 00000000..df4a9cfb --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTFunctionDefinitionImpl.java @@ -0,0 +1,312 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTFunctionDefinition; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTSortedVariable; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTypeReference; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'SMT Function Definition'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTFunctionDefinitionImpl#getParameters Parameters}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTFunctionDefinitionImpl#getRange Range}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTFunctionDefinitionImpl#getValue Value}
  • + *
+ *

+ * + * @generated + */ +public class SMTFunctionDefinitionImpl extends SMTSymbolicDeclarationImpl implements SMTFunctionDefinition +{ + /** + * The cached value of the '{@link #getParameters() Parameters}' containment reference list. + * + * + * @see #getParameters() + * @generated + * @ordered + */ + protected EList parameters; + + /** + * The cached value of the '{@link #getRange() Range}' containment reference. + * + * + * @see #getRange() + * @generated + * @ordered + */ + protected SMTTypeReference range; + + /** + * The cached value of the '{@link #getValue() Value}' containment reference. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected SMTTerm value; + + /** + * + * + * @generated + */ + protected SMTFunctionDefinitionImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_FUNCTION_DEFINITION; + } + + /** + * + * + * @generated + */ + public EList getParameters() + { + if (parameters == null) + { + parameters = new EObjectContainmentEList(SMTSortedVariable.class, this, SmtLanguagePackage.SMT_FUNCTION_DEFINITION__PARAMETERS); + } + return parameters; + } + + /** + * + * + * @generated + */ + public SMTTypeReference getRange() + { + return range; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetRange(SMTTypeReference newRange, NotificationChain msgs) + { + SMTTypeReference oldRange = range; + range = newRange; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_FUNCTION_DEFINITION__RANGE, oldRange, newRange); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setRange(SMTTypeReference newRange) + { + if (newRange != range) + { + NotificationChain msgs = null; + if (range != null) + msgs = ((InternalEObject)range).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_FUNCTION_DEFINITION__RANGE, null, msgs); + if (newRange != null) + msgs = ((InternalEObject)newRange).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_FUNCTION_DEFINITION__RANGE, null, msgs); + msgs = basicSetRange(newRange, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_FUNCTION_DEFINITION__RANGE, newRange, newRange)); + } + + /** + * + * + * @generated + */ + public SMTTerm getValue() + { + return value; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetValue(SMTTerm newValue, NotificationChain msgs) + { + SMTTerm oldValue = value; + value = newValue; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_FUNCTION_DEFINITION__VALUE, oldValue, newValue); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setValue(SMTTerm newValue) + { + if (newValue != value) + { + NotificationChain msgs = null; + if (value != null) + msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_FUNCTION_DEFINITION__VALUE, null, msgs); + if (newValue != null) + msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_FUNCTION_DEFINITION__VALUE, null, msgs); + msgs = basicSetValue(newValue, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_FUNCTION_DEFINITION__VALUE, newValue, newValue)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_FUNCTION_DEFINITION__PARAMETERS: + return ((InternalEList)getParameters()).basicRemove(otherEnd, msgs); + case SmtLanguagePackage.SMT_FUNCTION_DEFINITION__RANGE: + return basicSetRange(null, msgs); + case SmtLanguagePackage.SMT_FUNCTION_DEFINITION__VALUE: + return basicSetValue(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_FUNCTION_DEFINITION__PARAMETERS: + return getParameters(); + case SmtLanguagePackage.SMT_FUNCTION_DEFINITION__RANGE: + return getRange(); + case SmtLanguagePackage.SMT_FUNCTION_DEFINITION__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_FUNCTION_DEFINITION__PARAMETERS: + getParameters().clear(); + getParameters().addAll((Collection)newValue); + return; + case SmtLanguagePackage.SMT_FUNCTION_DEFINITION__RANGE: + setRange((SMTTypeReference)newValue); + return; + case SmtLanguagePackage.SMT_FUNCTION_DEFINITION__VALUE: + setValue((SMTTerm)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_FUNCTION_DEFINITION__PARAMETERS: + getParameters().clear(); + return; + case SmtLanguagePackage.SMT_FUNCTION_DEFINITION__RANGE: + setRange((SMTTypeReference)null); + return; + case SmtLanguagePackage.SMT_FUNCTION_DEFINITION__VALUE: + setValue((SMTTerm)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_FUNCTION_DEFINITION__PARAMETERS: + return parameters != null && !parameters.isEmpty(); + case SmtLanguagePackage.SMT_FUNCTION_DEFINITION__RANGE: + return range != null; + case SmtLanguagePackage.SMT_FUNCTION_DEFINITION__VALUE: + return value != null; + } + return super.eIsSet(featureID); + } + +} //SMTFunctionDefinitionImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTGetModelCommandImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTGetModelCommandImpl.java new file mode 100644 index 00000000..dee08f0a --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTGetModelCommandImpl.java @@ -0,0 +1,44 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTGetModelCommand; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'SMT Get Model Command'. + * + *

+ *

+ * + * @generated + */ +public class SMTGetModelCommandImpl extends MinimalEObjectImpl.Container implements SMTGetModelCommand +{ + /** + * + * + * @generated + */ + protected SMTGetModelCommandImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_GET_MODEL_COMMAND; + } + +} //SMTGetModelCommandImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTITEImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTITEImpl.java new file mode 100644 index 00000000..760721d6 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTITEImpl.java @@ -0,0 +1,335 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTITE; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMTITE'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTITEImpl#getCondition Condition}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTITEImpl#getIf If}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTITEImpl#getElse Else}
  • + *
+ *

+ * + * @generated + */ +public class SMTITEImpl extends SMTTermImpl implements SMTITE +{ + /** + * The cached value of the '{@link #getCondition() Condition}' containment reference. + * + * + * @see #getCondition() + * @generated + * @ordered + */ + protected SMTTerm condition; + + /** + * The cached value of the '{@link #getIf() If}' containment reference. + * + * + * @see #getIf() + * @generated + * @ordered + */ + protected SMTTerm if_; + + /** + * The cached value of the '{@link #getElse() Else}' containment reference. + * + * + * @see #getElse() + * @generated + * @ordered + */ + protected SMTTerm else_; + + /** + * + * + * @generated + */ + protected SMTITEImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMTITE; + } + + /** + * + * + * @generated + */ + public SMTTerm getCondition() + { + return condition; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetCondition(SMTTerm newCondition, NotificationChain msgs) + { + SMTTerm oldCondition = condition; + condition = newCondition; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTITE__CONDITION, oldCondition, newCondition); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setCondition(SMTTerm newCondition) + { + if (newCondition != condition) + { + NotificationChain msgs = null; + if (condition != null) + msgs = ((InternalEObject)condition).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTITE__CONDITION, null, msgs); + if (newCondition != null) + msgs = ((InternalEObject)newCondition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTITE__CONDITION, null, msgs); + msgs = basicSetCondition(newCondition, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTITE__CONDITION, newCondition, newCondition)); + } + + /** + * + * + * @generated + */ + public SMTTerm getIf() + { + return if_; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetIf(SMTTerm newIf, NotificationChain msgs) + { + SMTTerm oldIf = if_; + if_ = newIf; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTITE__IF, oldIf, newIf); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setIf(SMTTerm newIf) + { + if (newIf != if_) + { + NotificationChain msgs = null; + if (if_ != null) + msgs = ((InternalEObject)if_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTITE__IF, null, msgs); + if (newIf != null) + msgs = ((InternalEObject)newIf).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTITE__IF, null, msgs); + msgs = basicSetIf(newIf, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTITE__IF, newIf, newIf)); + } + + /** + * + * + * @generated + */ + public SMTTerm getElse() + { + return else_; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetElse(SMTTerm newElse, NotificationChain msgs) + { + SMTTerm oldElse = else_; + else_ = newElse; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTITE__ELSE, oldElse, newElse); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setElse(SMTTerm newElse) + { + if (newElse != else_) + { + NotificationChain msgs = null; + if (else_ != null) + msgs = ((InternalEObject)else_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTITE__ELSE, null, msgs); + if (newElse != null) + msgs = ((InternalEObject)newElse).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTITE__ELSE, null, msgs); + msgs = basicSetElse(newElse, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTITE__ELSE, newElse, newElse)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMTITE__CONDITION: + return basicSetCondition(null, msgs); + case SmtLanguagePackage.SMTITE__IF: + return basicSetIf(null, msgs); + case SmtLanguagePackage.SMTITE__ELSE: + return basicSetElse(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMTITE__CONDITION: + return getCondition(); + case SmtLanguagePackage.SMTITE__IF: + return getIf(); + case SmtLanguagePackage.SMTITE__ELSE: + return getElse(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMTITE__CONDITION: + setCondition((SMTTerm)newValue); + return; + case SmtLanguagePackage.SMTITE__IF: + setIf((SMTTerm)newValue); + return; + case SmtLanguagePackage.SMTITE__ELSE: + setElse((SMTTerm)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMTITE__CONDITION: + setCondition((SMTTerm)null); + return; + case SmtLanguagePackage.SMTITE__IF: + setIf((SMTTerm)null); + return; + case SmtLanguagePackage.SMTITE__ELSE: + setElse((SMTTerm)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMTITE__CONDITION: + return condition != null; + case SmtLanguagePackage.SMTITE__IF: + return if_ != null; + case SmtLanguagePackage.SMTITE__ELSE: + return else_ != null; + } + return super.eIsSet(featureID); + } + +} //SMTITEImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTIfCombinatorImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTIfCombinatorImpl.java new file mode 100644 index 00000000..fb8de467 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTIfCombinatorImpl.java @@ -0,0 +1,336 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.ReasoningProbe; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTIfCombinator; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTReasoningTactic; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMT If Combinator'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTIfCombinatorImpl#getProbe Probe}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTIfCombinatorImpl#getIfTactic If Tactic}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTIfCombinatorImpl#getElseTactic Else Tactic}
  • + *
+ *

+ * + * @generated + */ +public class SMTIfCombinatorImpl extends SMTReasoningCombinatorImpl implements SMTIfCombinator +{ + /** + * The cached value of the '{@link #getProbe() Probe}' containment reference. + * + * + * @see #getProbe() + * @generated + * @ordered + */ + protected ReasoningProbe probe; + + /** + * The cached value of the '{@link #getIfTactic() If Tactic}' containment reference. + * + * + * @see #getIfTactic() + * @generated + * @ordered + */ + protected SMTReasoningTactic ifTactic; + + /** + * The cached value of the '{@link #getElseTactic() Else Tactic}' containment reference. + * + * + * @see #getElseTactic() + * @generated + * @ordered + */ + protected SMTReasoningTactic elseTactic; + + /** + * + * + * @generated + */ + protected SMTIfCombinatorImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_IF_COMBINATOR; + } + + /** + * + * + * @generated + */ + public ReasoningProbe getProbe() + { + return probe; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetProbe(ReasoningProbe newProbe, NotificationChain msgs) + { + ReasoningProbe oldProbe = probe; + probe = newProbe; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_IF_COMBINATOR__PROBE, oldProbe, newProbe); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setProbe(ReasoningProbe newProbe) + { + if (newProbe != probe) + { + NotificationChain msgs = null; + if (probe != null) + msgs = ((InternalEObject)probe).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_IF_COMBINATOR__PROBE, null, msgs); + if (newProbe != null) + msgs = ((InternalEObject)newProbe).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_IF_COMBINATOR__PROBE, null, msgs); + msgs = basicSetProbe(newProbe, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_IF_COMBINATOR__PROBE, newProbe, newProbe)); + } + + /** + * + * + * @generated + */ + public SMTReasoningTactic getIfTactic() + { + return ifTactic; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetIfTactic(SMTReasoningTactic newIfTactic, NotificationChain msgs) + { + SMTReasoningTactic oldIfTactic = ifTactic; + ifTactic = newIfTactic; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_IF_COMBINATOR__IF_TACTIC, oldIfTactic, newIfTactic); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setIfTactic(SMTReasoningTactic newIfTactic) + { + if (newIfTactic != ifTactic) + { + NotificationChain msgs = null; + if (ifTactic != null) + msgs = ((InternalEObject)ifTactic).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_IF_COMBINATOR__IF_TACTIC, null, msgs); + if (newIfTactic != null) + msgs = ((InternalEObject)newIfTactic).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_IF_COMBINATOR__IF_TACTIC, null, msgs); + msgs = basicSetIfTactic(newIfTactic, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_IF_COMBINATOR__IF_TACTIC, newIfTactic, newIfTactic)); + } + + /** + * + * + * @generated + */ + public SMTReasoningTactic getElseTactic() + { + return elseTactic; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetElseTactic(SMTReasoningTactic newElseTactic, NotificationChain msgs) + { + SMTReasoningTactic oldElseTactic = elseTactic; + elseTactic = newElseTactic; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_IF_COMBINATOR__ELSE_TACTIC, oldElseTactic, newElseTactic); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setElseTactic(SMTReasoningTactic newElseTactic) + { + if (newElseTactic != elseTactic) + { + NotificationChain msgs = null; + if (elseTactic != null) + msgs = ((InternalEObject)elseTactic).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_IF_COMBINATOR__ELSE_TACTIC, null, msgs); + if (newElseTactic != null) + msgs = ((InternalEObject)newElseTactic).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_IF_COMBINATOR__ELSE_TACTIC, null, msgs); + msgs = basicSetElseTactic(newElseTactic, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_IF_COMBINATOR__ELSE_TACTIC, newElseTactic, newElseTactic)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_IF_COMBINATOR__PROBE: + return basicSetProbe(null, msgs); + case SmtLanguagePackage.SMT_IF_COMBINATOR__IF_TACTIC: + return basicSetIfTactic(null, msgs); + case SmtLanguagePackage.SMT_IF_COMBINATOR__ELSE_TACTIC: + return basicSetElseTactic(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_IF_COMBINATOR__PROBE: + return getProbe(); + case SmtLanguagePackage.SMT_IF_COMBINATOR__IF_TACTIC: + return getIfTactic(); + case SmtLanguagePackage.SMT_IF_COMBINATOR__ELSE_TACTIC: + return getElseTactic(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_IF_COMBINATOR__PROBE: + setProbe((ReasoningProbe)newValue); + return; + case SmtLanguagePackage.SMT_IF_COMBINATOR__IF_TACTIC: + setIfTactic((SMTReasoningTactic)newValue); + return; + case SmtLanguagePackage.SMT_IF_COMBINATOR__ELSE_TACTIC: + setElseTactic((SMTReasoningTactic)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_IF_COMBINATOR__PROBE: + setProbe((ReasoningProbe)null); + return; + case SmtLanguagePackage.SMT_IF_COMBINATOR__IF_TACTIC: + setIfTactic((SMTReasoningTactic)null); + return; + case SmtLanguagePackage.SMT_IF_COMBINATOR__ELSE_TACTIC: + setElseTactic((SMTReasoningTactic)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_IF_COMBINATOR__PROBE: + return probe != null; + case SmtLanguagePackage.SMT_IF_COMBINATOR__IF_TACTIC: + return ifTactic != null; + case SmtLanguagePackage.SMT_IF_COMBINATOR__ELSE_TACTIC: + return elseTactic != null; + } + return super.eIsSet(featureID); + } + +} //SMTIfCombinatorImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTIffImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTIffImpl.java new file mode 100644 index 00000000..c0a70021 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTIffImpl.java @@ -0,0 +1,264 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTIff; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMT Iff'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTIffImpl#getLeftOperand Left Operand}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTIffImpl#getRightOperand Right Operand}
  • + *
+ *

+ * + * @generated + */ +public class SMTIffImpl extends SMTBoolOperationImpl implements SMTIff +{ + /** + * The cached value of the '{@link #getLeftOperand() Left Operand}' containment reference. + * + * + * @see #getLeftOperand() + * @generated + * @ordered + */ + protected SMTTerm leftOperand; + + /** + * The cached value of the '{@link #getRightOperand() Right Operand}' containment reference. + * + * + * @see #getRightOperand() + * @generated + * @ordered + */ + protected SMTTerm rightOperand; + + /** + * + * + * @generated + */ + protected SMTIffImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_IFF; + } + + /** + * + * + * @generated + */ + public SMTTerm getLeftOperand() + { + return leftOperand; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetLeftOperand(SMTTerm newLeftOperand, NotificationChain msgs) + { + SMTTerm oldLeftOperand = leftOperand; + leftOperand = newLeftOperand; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_IFF__LEFT_OPERAND, oldLeftOperand, newLeftOperand); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setLeftOperand(SMTTerm newLeftOperand) + { + if (newLeftOperand != leftOperand) + { + NotificationChain msgs = null; + if (leftOperand != null) + msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_IFF__LEFT_OPERAND, null, msgs); + if (newLeftOperand != null) + msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_IFF__LEFT_OPERAND, null, msgs); + msgs = basicSetLeftOperand(newLeftOperand, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_IFF__LEFT_OPERAND, newLeftOperand, newLeftOperand)); + } + + /** + * + * + * @generated + */ + public SMTTerm getRightOperand() + { + return rightOperand; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetRightOperand(SMTTerm newRightOperand, NotificationChain msgs) + { + SMTTerm oldRightOperand = rightOperand; + rightOperand = newRightOperand; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_IFF__RIGHT_OPERAND, oldRightOperand, newRightOperand); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setRightOperand(SMTTerm newRightOperand) + { + if (newRightOperand != rightOperand) + { + NotificationChain msgs = null; + if (rightOperand != null) + msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_IFF__RIGHT_OPERAND, null, msgs); + if (newRightOperand != null) + msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_IFF__RIGHT_OPERAND, null, msgs); + msgs = basicSetRightOperand(newRightOperand, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_IFF__RIGHT_OPERAND, newRightOperand, newRightOperand)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_IFF__LEFT_OPERAND: + return basicSetLeftOperand(null, msgs); + case SmtLanguagePackage.SMT_IFF__RIGHT_OPERAND: + return basicSetRightOperand(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_IFF__LEFT_OPERAND: + return getLeftOperand(); + case SmtLanguagePackage.SMT_IFF__RIGHT_OPERAND: + return getRightOperand(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_IFF__LEFT_OPERAND: + setLeftOperand((SMTTerm)newValue); + return; + case SmtLanguagePackage.SMT_IFF__RIGHT_OPERAND: + setRightOperand((SMTTerm)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_IFF__LEFT_OPERAND: + setLeftOperand((SMTTerm)null); + return; + case SmtLanguagePackage.SMT_IFF__RIGHT_OPERAND: + setRightOperand((SMTTerm)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_IFF__LEFT_OPERAND: + return leftOperand != null; + case SmtLanguagePackage.SMT_IFF__RIGHT_OPERAND: + return rightOperand != null; + } + return super.eIsSet(featureID); + } + +} //SMTIffImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTImplImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTImplImpl.java new file mode 100644 index 00000000..42f1a6e1 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTImplImpl.java @@ -0,0 +1,264 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTImpl; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMT Impl'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTImplImpl#getLeftOperand Left Operand}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTImplImpl#getRightOperand Right Operand}
  • + *
+ *

+ * + * @generated + */ +public class SMTImplImpl extends SMTBoolOperationImpl implements SMTImpl +{ + /** + * The cached value of the '{@link #getLeftOperand() Left Operand}' containment reference. + * + * + * @see #getLeftOperand() + * @generated + * @ordered + */ + protected SMTTerm leftOperand; + + /** + * The cached value of the '{@link #getRightOperand() Right Operand}' containment reference. + * + * + * @see #getRightOperand() + * @generated + * @ordered + */ + protected SMTTerm rightOperand; + + /** + * + * + * @generated + */ + protected SMTImplImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_IMPL; + } + + /** + * + * + * @generated + */ + public SMTTerm getLeftOperand() + { + return leftOperand; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetLeftOperand(SMTTerm newLeftOperand, NotificationChain msgs) + { + SMTTerm oldLeftOperand = leftOperand; + leftOperand = newLeftOperand; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_IMPL__LEFT_OPERAND, oldLeftOperand, newLeftOperand); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setLeftOperand(SMTTerm newLeftOperand) + { + if (newLeftOperand != leftOperand) + { + NotificationChain msgs = null; + if (leftOperand != null) + msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_IMPL__LEFT_OPERAND, null, msgs); + if (newLeftOperand != null) + msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_IMPL__LEFT_OPERAND, null, msgs); + msgs = basicSetLeftOperand(newLeftOperand, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_IMPL__LEFT_OPERAND, newLeftOperand, newLeftOperand)); + } + + /** + * + * + * @generated + */ + public SMTTerm getRightOperand() + { + return rightOperand; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetRightOperand(SMTTerm newRightOperand, NotificationChain msgs) + { + SMTTerm oldRightOperand = rightOperand; + rightOperand = newRightOperand; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_IMPL__RIGHT_OPERAND, oldRightOperand, newRightOperand); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setRightOperand(SMTTerm newRightOperand) + { + if (newRightOperand != rightOperand) + { + NotificationChain msgs = null; + if (rightOperand != null) + msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_IMPL__RIGHT_OPERAND, null, msgs); + if (newRightOperand != null) + msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_IMPL__RIGHT_OPERAND, null, msgs); + msgs = basicSetRightOperand(newRightOperand, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_IMPL__RIGHT_OPERAND, newRightOperand, newRightOperand)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_IMPL__LEFT_OPERAND: + return basicSetLeftOperand(null, msgs); + case SmtLanguagePackage.SMT_IMPL__RIGHT_OPERAND: + return basicSetRightOperand(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_IMPL__LEFT_OPERAND: + return getLeftOperand(); + case SmtLanguagePackage.SMT_IMPL__RIGHT_OPERAND: + return getRightOperand(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_IMPL__LEFT_OPERAND: + setLeftOperand((SMTTerm)newValue); + return; + case SmtLanguagePackage.SMT_IMPL__RIGHT_OPERAND: + setRightOperand((SMTTerm)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_IMPL__LEFT_OPERAND: + setLeftOperand((SMTTerm)null); + return; + case SmtLanguagePackage.SMT_IMPL__RIGHT_OPERAND: + setRightOperand((SMTTerm)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_IMPL__LEFT_OPERAND: + return leftOperand != null; + case SmtLanguagePackage.SMT_IMPL__RIGHT_OPERAND: + return rightOperand != null; + } + return super.eIsSet(featureID); + } + +} //SMTImplImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTInlineConstantDefinitionImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTInlineConstantDefinitionImpl.java new file mode 100644 index 00000000..9ffa7e12 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTInlineConstantDefinitionImpl.java @@ -0,0 +1,193 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTInlineConstantDefinition; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMT Inline Constant Definition'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTInlineConstantDefinitionImpl#getDefinition Definition}
  • + *
+ *

+ * + * @generated + */ +public class SMTInlineConstantDefinitionImpl extends SMTSymbolicDeclarationImpl implements SMTInlineConstantDefinition +{ + /** + * The cached value of the '{@link #getDefinition() Definition}' containment reference. + * + * + * @see #getDefinition() + * @generated + * @ordered + */ + protected SMTTerm definition; + + /** + * + * + * @generated + */ + protected SMTInlineConstantDefinitionImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_INLINE_CONSTANT_DEFINITION; + } + + /** + * + * + * @generated + */ + public SMTTerm getDefinition() + { + return definition; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetDefinition(SMTTerm newDefinition, NotificationChain msgs) + { + SMTTerm oldDefinition = definition; + definition = newDefinition; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_INLINE_CONSTANT_DEFINITION__DEFINITION, oldDefinition, newDefinition); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setDefinition(SMTTerm newDefinition) + { + if (newDefinition != definition) + { + NotificationChain msgs = null; + if (definition != null) + msgs = ((InternalEObject)definition).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_INLINE_CONSTANT_DEFINITION__DEFINITION, null, msgs); + if (newDefinition != null) + msgs = ((InternalEObject)newDefinition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_INLINE_CONSTANT_DEFINITION__DEFINITION, null, msgs); + msgs = basicSetDefinition(newDefinition, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_INLINE_CONSTANT_DEFINITION__DEFINITION, newDefinition, newDefinition)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_INLINE_CONSTANT_DEFINITION__DEFINITION: + return basicSetDefinition(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_INLINE_CONSTANT_DEFINITION__DEFINITION: + return getDefinition(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_INLINE_CONSTANT_DEFINITION__DEFINITION: + setDefinition((SMTTerm)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_INLINE_CONSTANT_DEFINITION__DEFINITION: + setDefinition((SMTTerm)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_INLINE_CONSTANT_DEFINITION__DEFINITION: + return definition != null; + } + return super.eIsSet(featureID); + } + +} //SMTInlineConstantDefinitionImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTInputImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTInputImpl.java new file mode 100644 index 00000000..c336f8e6 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTInputImpl.java @@ -0,0 +1,469 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTAssertion; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTFunctionDeclaration; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTFunctionDefinition; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTGetModelCommand; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTInput; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTOption; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTSatCommand; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTType; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'SMT Input'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTInputImpl#getOptions Options}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTInputImpl#getTypeDeclarations Type Declarations}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTInputImpl#getFunctionDeclarations Function Declarations}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTInputImpl#getFunctionDefinition Function Definition}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTInputImpl#getAssertions Assertions}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTInputImpl#getSatCommand Sat Command}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTInputImpl#getGetModelCommand Get Model Command}
  • + *
+ *

+ * + * @generated + */ +public class SMTInputImpl extends MinimalEObjectImpl.Container implements SMTInput +{ + /** + * The cached value of the '{@link #getOptions() Options}' containment reference list. + * + * + * @see #getOptions() + * @generated + * @ordered + */ + protected EList options; + + /** + * The cached value of the '{@link #getTypeDeclarations() Type Declarations}' containment reference list. + * + * + * @see #getTypeDeclarations() + * @generated + * @ordered + */ + protected EList typeDeclarations; + + /** + * The cached value of the '{@link #getFunctionDeclarations() Function Declarations}' containment reference list. + * + * + * @see #getFunctionDeclarations() + * @generated + * @ordered + */ + protected EList functionDeclarations; + + /** + * The cached value of the '{@link #getFunctionDefinition() Function Definition}' containment reference list. + * + * + * @see #getFunctionDefinition() + * @generated + * @ordered + */ + protected EList functionDefinition; + + /** + * The cached value of the '{@link #getAssertions() Assertions}' containment reference list. + * + * + * @see #getAssertions() + * @generated + * @ordered + */ + protected EList assertions; + + /** + * The cached value of the '{@link #getSatCommand() Sat Command}' containment reference. + * + * + * @see #getSatCommand() + * @generated + * @ordered + */ + protected SMTSatCommand satCommand; + + /** + * The cached value of the '{@link #getGetModelCommand() Get Model Command}' containment reference. + * + * + * @see #getGetModelCommand() + * @generated + * @ordered + */ + protected SMTGetModelCommand getModelCommand; + + /** + * + * + * @generated + */ + protected SMTInputImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_INPUT; + } + + /** + * + * + * @generated + */ + public EList getOptions() + { + if (options == null) + { + options = new EObjectContainmentEList(SMTOption.class, this, SmtLanguagePackage.SMT_INPUT__OPTIONS); + } + return options; + } + + /** + * + * + * @generated + */ + public EList getTypeDeclarations() + { + if (typeDeclarations == null) + { + typeDeclarations = new EObjectContainmentEList(SMTType.class, this, SmtLanguagePackage.SMT_INPUT__TYPE_DECLARATIONS); + } + return typeDeclarations; + } + + /** + * + * + * @generated + */ + public EList getFunctionDeclarations() + { + if (functionDeclarations == null) + { + functionDeclarations = new EObjectContainmentEList(SMTFunctionDeclaration.class, this, SmtLanguagePackage.SMT_INPUT__FUNCTION_DECLARATIONS); + } + return functionDeclarations; + } + + /** + * + * + * @generated + */ + public EList getFunctionDefinition() + { + if (functionDefinition == null) + { + functionDefinition = new EObjectContainmentEList(SMTFunctionDefinition.class, this, SmtLanguagePackage.SMT_INPUT__FUNCTION_DEFINITION); + } + return functionDefinition; + } + + /** + * + * + * @generated + */ + public EList getAssertions() + { + if (assertions == null) + { + assertions = new EObjectContainmentEList(SMTAssertion.class, this, SmtLanguagePackage.SMT_INPUT__ASSERTIONS); + } + return assertions; + } + + /** + * + * + * @generated + */ + public SMTSatCommand getSatCommand() + { + return satCommand; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetSatCommand(SMTSatCommand newSatCommand, NotificationChain msgs) + { + SMTSatCommand oldSatCommand = satCommand; + satCommand = newSatCommand; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_INPUT__SAT_COMMAND, oldSatCommand, newSatCommand); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setSatCommand(SMTSatCommand newSatCommand) + { + if (newSatCommand != satCommand) + { + NotificationChain msgs = null; + if (satCommand != null) + msgs = ((InternalEObject)satCommand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_INPUT__SAT_COMMAND, null, msgs); + if (newSatCommand != null) + msgs = ((InternalEObject)newSatCommand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_INPUT__SAT_COMMAND, null, msgs); + msgs = basicSetSatCommand(newSatCommand, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_INPUT__SAT_COMMAND, newSatCommand, newSatCommand)); + } + + /** + * + * + * @generated + */ + public SMTGetModelCommand getGetModelCommand() + { + return getModelCommand; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetGetModelCommand(SMTGetModelCommand newGetModelCommand, NotificationChain msgs) + { + SMTGetModelCommand oldGetModelCommand = getModelCommand; + getModelCommand = newGetModelCommand; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_INPUT__GET_MODEL_COMMAND, oldGetModelCommand, newGetModelCommand); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setGetModelCommand(SMTGetModelCommand newGetModelCommand) + { + if (newGetModelCommand != getModelCommand) + { + NotificationChain msgs = null; + if (getModelCommand != null) + msgs = ((InternalEObject)getModelCommand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_INPUT__GET_MODEL_COMMAND, null, msgs); + if (newGetModelCommand != null) + msgs = ((InternalEObject)newGetModelCommand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_INPUT__GET_MODEL_COMMAND, null, msgs); + msgs = basicSetGetModelCommand(newGetModelCommand, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_INPUT__GET_MODEL_COMMAND, newGetModelCommand, newGetModelCommand)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_INPUT__OPTIONS: + return ((InternalEList)getOptions()).basicRemove(otherEnd, msgs); + case SmtLanguagePackage.SMT_INPUT__TYPE_DECLARATIONS: + return ((InternalEList)getTypeDeclarations()).basicRemove(otherEnd, msgs); + case SmtLanguagePackage.SMT_INPUT__FUNCTION_DECLARATIONS: + return ((InternalEList)getFunctionDeclarations()).basicRemove(otherEnd, msgs); + case SmtLanguagePackage.SMT_INPUT__FUNCTION_DEFINITION: + return ((InternalEList)getFunctionDefinition()).basicRemove(otherEnd, msgs); + case SmtLanguagePackage.SMT_INPUT__ASSERTIONS: + return ((InternalEList)getAssertions()).basicRemove(otherEnd, msgs); + case SmtLanguagePackage.SMT_INPUT__SAT_COMMAND: + return basicSetSatCommand(null, msgs); + case SmtLanguagePackage.SMT_INPUT__GET_MODEL_COMMAND: + return basicSetGetModelCommand(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_INPUT__OPTIONS: + return getOptions(); + case SmtLanguagePackage.SMT_INPUT__TYPE_DECLARATIONS: + return getTypeDeclarations(); + case SmtLanguagePackage.SMT_INPUT__FUNCTION_DECLARATIONS: + return getFunctionDeclarations(); + case SmtLanguagePackage.SMT_INPUT__FUNCTION_DEFINITION: + return getFunctionDefinition(); + case SmtLanguagePackage.SMT_INPUT__ASSERTIONS: + return getAssertions(); + case SmtLanguagePackage.SMT_INPUT__SAT_COMMAND: + return getSatCommand(); + case SmtLanguagePackage.SMT_INPUT__GET_MODEL_COMMAND: + return getGetModelCommand(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_INPUT__OPTIONS: + getOptions().clear(); + getOptions().addAll((Collection)newValue); + return; + case SmtLanguagePackage.SMT_INPUT__TYPE_DECLARATIONS: + getTypeDeclarations().clear(); + getTypeDeclarations().addAll((Collection)newValue); + return; + case SmtLanguagePackage.SMT_INPUT__FUNCTION_DECLARATIONS: + getFunctionDeclarations().clear(); + getFunctionDeclarations().addAll((Collection)newValue); + return; + case SmtLanguagePackage.SMT_INPUT__FUNCTION_DEFINITION: + getFunctionDefinition().clear(); + getFunctionDefinition().addAll((Collection)newValue); + return; + case SmtLanguagePackage.SMT_INPUT__ASSERTIONS: + getAssertions().clear(); + getAssertions().addAll((Collection)newValue); + return; + case SmtLanguagePackage.SMT_INPUT__SAT_COMMAND: + setSatCommand((SMTSatCommand)newValue); + return; + case SmtLanguagePackage.SMT_INPUT__GET_MODEL_COMMAND: + setGetModelCommand((SMTGetModelCommand)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_INPUT__OPTIONS: + getOptions().clear(); + return; + case SmtLanguagePackage.SMT_INPUT__TYPE_DECLARATIONS: + getTypeDeclarations().clear(); + return; + case SmtLanguagePackage.SMT_INPUT__FUNCTION_DECLARATIONS: + getFunctionDeclarations().clear(); + return; + case SmtLanguagePackage.SMT_INPUT__FUNCTION_DEFINITION: + getFunctionDefinition().clear(); + return; + case SmtLanguagePackage.SMT_INPUT__ASSERTIONS: + getAssertions().clear(); + return; + case SmtLanguagePackage.SMT_INPUT__SAT_COMMAND: + setSatCommand((SMTSatCommand)null); + return; + case SmtLanguagePackage.SMT_INPUT__GET_MODEL_COMMAND: + setGetModelCommand((SMTGetModelCommand)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_INPUT__OPTIONS: + return options != null && !options.isEmpty(); + case SmtLanguagePackage.SMT_INPUT__TYPE_DECLARATIONS: + return typeDeclarations != null && !typeDeclarations.isEmpty(); + case SmtLanguagePackage.SMT_INPUT__FUNCTION_DECLARATIONS: + return functionDeclarations != null && !functionDeclarations.isEmpty(); + case SmtLanguagePackage.SMT_INPUT__FUNCTION_DEFINITION: + return functionDefinition != null && !functionDefinition.isEmpty(); + case SmtLanguagePackage.SMT_INPUT__ASSERTIONS: + return assertions != null && !assertions.isEmpty(); + case SmtLanguagePackage.SMT_INPUT__SAT_COMMAND: + return satCommand != null; + case SmtLanguagePackage.SMT_INPUT__GET_MODEL_COMMAND: + return getModelCommand != null; + } + return super.eIsSet(featureID); + } + +} //SMTInputImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTIntLiteralImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTIntLiteralImpl.java new file mode 100644 index 00000000..c6458060 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTIntLiteralImpl.java @@ -0,0 +1,176 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTIntLiteral; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'SMT Int Literal'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTIntLiteralImpl#getValue Value}
  • + *
+ *

+ * + * @generated + */ +public class SMTIntLiteralImpl extends SMTAtomicTermImpl implements SMTIntLiteral +{ + /** + * The default value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final int VALUE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected int value = VALUE_EDEFAULT; + + /** + * + * + * @generated + */ + protected SMTIntLiteralImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_INT_LITERAL; + } + + /** + * + * + * @generated + */ + public int getValue() + { + return value; + } + + /** + * + * + * @generated + */ + public void setValue(int newValue) + { + int oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_INT_LITERAL__VALUE, oldValue, value)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_INT_LITERAL__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_INT_LITERAL__VALUE: + setValue((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_INT_LITERAL__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_INT_LITERAL__VALUE: + return value != VALUE_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + +} //SMTIntLiteralImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTIntOperationImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTIntOperationImpl.java new file mode 100644 index 00000000..f4ec56fe --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTIntOperationImpl.java @@ -0,0 +1,264 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTIntOperation; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMT Int Operation'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTIntOperationImpl#getLeftOperand Left Operand}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTIntOperationImpl#getRightOperand Right Operand}
  • + *
+ *

+ * + * @generated + */ +public class SMTIntOperationImpl extends SMTTermImpl implements SMTIntOperation +{ + /** + * The cached value of the '{@link #getLeftOperand() Left Operand}' containment reference. + * + * + * @see #getLeftOperand() + * @generated + * @ordered + */ + protected SMTTerm leftOperand; + + /** + * The cached value of the '{@link #getRightOperand() Right Operand}' containment reference. + * + * + * @see #getRightOperand() + * @generated + * @ordered + */ + protected SMTTerm rightOperand; + + /** + * + * + * @generated + */ + protected SMTIntOperationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_INT_OPERATION; + } + + /** + * + * + * @generated + */ + public SMTTerm getLeftOperand() + { + return leftOperand; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetLeftOperand(SMTTerm newLeftOperand, NotificationChain msgs) + { + SMTTerm oldLeftOperand = leftOperand; + leftOperand = newLeftOperand; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_INT_OPERATION__LEFT_OPERAND, oldLeftOperand, newLeftOperand); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setLeftOperand(SMTTerm newLeftOperand) + { + if (newLeftOperand != leftOperand) + { + NotificationChain msgs = null; + if (leftOperand != null) + msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_INT_OPERATION__LEFT_OPERAND, null, msgs); + if (newLeftOperand != null) + msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_INT_OPERATION__LEFT_OPERAND, null, msgs); + msgs = basicSetLeftOperand(newLeftOperand, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_INT_OPERATION__LEFT_OPERAND, newLeftOperand, newLeftOperand)); + } + + /** + * + * + * @generated + */ + public SMTTerm getRightOperand() + { + return rightOperand; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetRightOperand(SMTTerm newRightOperand, NotificationChain msgs) + { + SMTTerm oldRightOperand = rightOperand; + rightOperand = newRightOperand; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_INT_OPERATION__RIGHT_OPERAND, oldRightOperand, newRightOperand); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setRightOperand(SMTTerm newRightOperand) + { + if (newRightOperand != rightOperand) + { + NotificationChain msgs = null; + if (rightOperand != null) + msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_INT_OPERATION__RIGHT_OPERAND, null, msgs); + if (newRightOperand != null) + msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_INT_OPERATION__RIGHT_OPERAND, null, msgs); + msgs = basicSetRightOperand(newRightOperand, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_INT_OPERATION__RIGHT_OPERAND, newRightOperand, newRightOperand)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_INT_OPERATION__LEFT_OPERAND: + return basicSetLeftOperand(null, msgs); + case SmtLanguagePackage.SMT_INT_OPERATION__RIGHT_OPERAND: + return basicSetRightOperand(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_INT_OPERATION__LEFT_OPERAND: + return getLeftOperand(); + case SmtLanguagePackage.SMT_INT_OPERATION__RIGHT_OPERAND: + return getRightOperand(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_INT_OPERATION__LEFT_OPERAND: + setLeftOperand((SMTTerm)newValue); + return; + case SmtLanguagePackage.SMT_INT_OPERATION__RIGHT_OPERAND: + setRightOperand((SMTTerm)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_INT_OPERATION__LEFT_OPERAND: + setLeftOperand((SMTTerm)null); + return; + case SmtLanguagePackage.SMT_INT_OPERATION__RIGHT_OPERAND: + setRightOperand((SMTTerm)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_INT_OPERATION__LEFT_OPERAND: + return leftOperand != null; + case SmtLanguagePackage.SMT_INT_OPERATION__RIGHT_OPERAND: + return rightOperand != null; + } + return super.eIsSet(featureID); + } + +} //SMTIntOperationImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTIntTypeReferenceImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTIntTypeReferenceImpl.java new file mode 100644 index 00000000..b6ba7340 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTIntTypeReferenceImpl.java @@ -0,0 +1,42 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTIntTypeReference; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'SMT Int Type Reference'. + * + *

+ *

+ * + * @generated + */ +public class SMTIntTypeReferenceImpl extends SMTPrimitiveTypeReferenceImpl implements SMTIntTypeReference +{ + /** + * + * + * @generated + */ + protected SMTIntTypeReferenceImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_INT_TYPE_REFERENCE; + } + +} //SMTIntTypeReferenceImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTLEQImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTLEQImpl.java new file mode 100644 index 00000000..0becd5f2 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTLEQImpl.java @@ -0,0 +1,264 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTLEQ; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMTLEQ'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTLEQImpl#getLeftOperand Left Operand}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTLEQImpl#getRightOperand Right Operand}
  • + *
+ *

+ * + * @generated + */ +public class SMTLEQImpl extends SMTRelationImpl implements SMTLEQ +{ + /** + * The cached value of the '{@link #getLeftOperand() Left Operand}' containment reference. + * + * + * @see #getLeftOperand() + * @generated + * @ordered + */ + protected SMTTerm leftOperand; + + /** + * The cached value of the '{@link #getRightOperand() Right Operand}' containment reference. + * + * + * @see #getRightOperand() + * @generated + * @ordered + */ + protected SMTTerm rightOperand; + + /** + * + * + * @generated + */ + protected SMTLEQImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMTLEQ; + } + + /** + * + * + * @generated + */ + public SMTTerm getLeftOperand() + { + return leftOperand; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetLeftOperand(SMTTerm newLeftOperand, NotificationChain msgs) + { + SMTTerm oldLeftOperand = leftOperand; + leftOperand = newLeftOperand; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTLEQ__LEFT_OPERAND, oldLeftOperand, newLeftOperand); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setLeftOperand(SMTTerm newLeftOperand) + { + if (newLeftOperand != leftOperand) + { + NotificationChain msgs = null; + if (leftOperand != null) + msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTLEQ__LEFT_OPERAND, null, msgs); + if (newLeftOperand != null) + msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTLEQ__LEFT_OPERAND, null, msgs); + msgs = basicSetLeftOperand(newLeftOperand, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTLEQ__LEFT_OPERAND, newLeftOperand, newLeftOperand)); + } + + /** + * + * + * @generated + */ + public SMTTerm getRightOperand() + { + return rightOperand; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetRightOperand(SMTTerm newRightOperand, NotificationChain msgs) + { + SMTTerm oldRightOperand = rightOperand; + rightOperand = newRightOperand; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTLEQ__RIGHT_OPERAND, oldRightOperand, newRightOperand); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setRightOperand(SMTTerm newRightOperand) + { + if (newRightOperand != rightOperand) + { + NotificationChain msgs = null; + if (rightOperand != null) + msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTLEQ__RIGHT_OPERAND, null, msgs); + if (newRightOperand != null) + msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTLEQ__RIGHT_OPERAND, null, msgs); + msgs = basicSetRightOperand(newRightOperand, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTLEQ__RIGHT_OPERAND, newRightOperand, newRightOperand)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMTLEQ__LEFT_OPERAND: + return basicSetLeftOperand(null, msgs); + case SmtLanguagePackage.SMTLEQ__RIGHT_OPERAND: + return basicSetRightOperand(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMTLEQ__LEFT_OPERAND: + return getLeftOperand(); + case SmtLanguagePackage.SMTLEQ__RIGHT_OPERAND: + return getRightOperand(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMTLEQ__LEFT_OPERAND: + setLeftOperand((SMTTerm)newValue); + return; + case SmtLanguagePackage.SMTLEQ__RIGHT_OPERAND: + setRightOperand((SMTTerm)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMTLEQ__LEFT_OPERAND: + setLeftOperand((SMTTerm)null); + return; + case SmtLanguagePackage.SMTLEQ__RIGHT_OPERAND: + setRightOperand((SMTTerm)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMTLEQ__LEFT_OPERAND: + return leftOperand != null; + case SmtLanguagePackage.SMTLEQ__RIGHT_OPERAND: + return rightOperand != null; + } + return super.eIsSet(featureID); + } + +} //SMTLEQImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTLTImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTLTImpl.java new file mode 100644 index 00000000..a6d58929 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTLTImpl.java @@ -0,0 +1,264 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTLT; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMTLT'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTLTImpl#getLeftOperand Left Operand}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTLTImpl#getRightOperand Right Operand}
  • + *
+ *

+ * + * @generated + */ +public class SMTLTImpl extends SMTRelationImpl implements SMTLT +{ + /** + * The cached value of the '{@link #getLeftOperand() Left Operand}' containment reference. + * + * + * @see #getLeftOperand() + * @generated + * @ordered + */ + protected SMTTerm leftOperand; + + /** + * The cached value of the '{@link #getRightOperand() Right Operand}' containment reference. + * + * + * @see #getRightOperand() + * @generated + * @ordered + */ + protected SMTTerm rightOperand; + + /** + * + * + * @generated + */ + protected SMTLTImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMTLT; + } + + /** + * + * + * @generated + */ + public SMTTerm getLeftOperand() + { + return leftOperand; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetLeftOperand(SMTTerm newLeftOperand, NotificationChain msgs) + { + SMTTerm oldLeftOperand = leftOperand; + leftOperand = newLeftOperand; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTLT__LEFT_OPERAND, oldLeftOperand, newLeftOperand); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setLeftOperand(SMTTerm newLeftOperand) + { + if (newLeftOperand != leftOperand) + { + NotificationChain msgs = null; + if (leftOperand != null) + msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTLT__LEFT_OPERAND, null, msgs); + if (newLeftOperand != null) + msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTLT__LEFT_OPERAND, null, msgs); + msgs = basicSetLeftOperand(newLeftOperand, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTLT__LEFT_OPERAND, newLeftOperand, newLeftOperand)); + } + + /** + * + * + * @generated + */ + public SMTTerm getRightOperand() + { + return rightOperand; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetRightOperand(SMTTerm newRightOperand, NotificationChain msgs) + { + SMTTerm oldRightOperand = rightOperand; + rightOperand = newRightOperand; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTLT__RIGHT_OPERAND, oldRightOperand, newRightOperand); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setRightOperand(SMTTerm newRightOperand) + { + if (newRightOperand != rightOperand) + { + NotificationChain msgs = null; + if (rightOperand != null) + msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTLT__RIGHT_OPERAND, null, msgs); + if (newRightOperand != null) + msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTLT__RIGHT_OPERAND, null, msgs); + msgs = basicSetRightOperand(newRightOperand, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTLT__RIGHT_OPERAND, newRightOperand, newRightOperand)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMTLT__LEFT_OPERAND: + return basicSetLeftOperand(null, msgs); + case SmtLanguagePackage.SMTLT__RIGHT_OPERAND: + return basicSetRightOperand(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMTLT__LEFT_OPERAND: + return getLeftOperand(); + case SmtLanguagePackage.SMTLT__RIGHT_OPERAND: + return getRightOperand(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMTLT__LEFT_OPERAND: + setLeftOperand((SMTTerm)newValue); + return; + case SmtLanguagePackage.SMTLT__RIGHT_OPERAND: + setRightOperand((SMTTerm)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMTLT__LEFT_OPERAND: + setLeftOperand((SMTTerm)null); + return; + case SmtLanguagePackage.SMTLT__RIGHT_OPERAND: + setRightOperand((SMTTerm)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMTLT__LEFT_OPERAND: + return leftOperand != null; + case SmtLanguagePackage.SMTLT__RIGHT_OPERAND: + return rightOperand != null; + } + return super.eIsSet(featureID); + } + +} //SMTLTImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTLetImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTLetImpl.java new file mode 100644 index 00000000..4278c635 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTLetImpl.java @@ -0,0 +1,240 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTInlineConstantDefinition; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTLet; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'SMT Let'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTLetImpl#getInlineConstantDefinitions Inline Constant Definitions}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTLetImpl#getTerm Term}
  • + *
+ *

+ * + * @generated + */ +public class SMTLetImpl extends SMTTermImpl implements SMTLet +{ + /** + * The cached value of the '{@link #getInlineConstantDefinitions() Inline Constant Definitions}' containment reference list. + * + * + * @see #getInlineConstantDefinitions() + * @generated + * @ordered + */ + protected EList inlineConstantDefinitions; + + /** + * The cached value of the '{@link #getTerm() Term}' containment reference. + * + * + * @see #getTerm() + * @generated + * @ordered + */ + protected SMTTerm term; + + /** + * + * + * @generated + */ + protected SMTLetImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_LET; + } + + /** + * + * + * @generated + */ + public EList getInlineConstantDefinitions() + { + if (inlineConstantDefinitions == null) + { + inlineConstantDefinitions = new EObjectContainmentEList(SMTInlineConstantDefinition.class, this, SmtLanguagePackage.SMT_LET__INLINE_CONSTANT_DEFINITIONS); + } + return inlineConstantDefinitions; + } + + /** + * + * + * @generated + */ + public SMTTerm getTerm() + { + return term; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetTerm(SMTTerm newTerm, NotificationChain msgs) + { + SMTTerm oldTerm = term; + term = newTerm; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_LET__TERM, oldTerm, newTerm); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setTerm(SMTTerm newTerm) + { + if (newTerm != term) + { + NotificationChain msgs = null; + if (term != null) + msgs = ((InternalEObject)term).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_LET__TERM, null, msgs); + if (newTerm != null) + msgs = ((InternalEObject)newTerm).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_LET__TERM, null, msgs); + msgs = basicSetTerm(newTerm, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_LET__TERM, newTerm, newTerm)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_LET__INLINE_CONSTANT_DEFINITIONS: + return ((InternalEList)getInlineConstantDefinitions()).basicRemove(otherEnd, msgs); + case SmtLanguagePackage.SMT_LET__TERM: + return basicSetTerm(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_LET__INLINE_CONSTANT_DEFINITIONS: + return getInlineConstantDefinitions(); + case SmtLanguagePackage.SMT_LET__TERM: + return getTerm(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_LET__INLINE_CONSTANT_DEFINITIONS: + getInlineConstantDefinitions().clear(); + getInlineConstantDefinitions().addAll((Collection)newValue); + return; + case SmtLanguagePackage.SMT_LET__TERM: + setTerm((SMTTerm)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_LET__INLINE_CONSTANT_DEFINITIONS: + getInlineConstantDefinitions().clear(); + return; + case SmtLanguagePackage.SMT_LET__TERM: + setTerm((SMTTerm)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_LET__INLINE_CONSTANT_DEFINITIONS: + return inlineConstantDefinitions != null && !inlineConstantDefinitions.isEmpty(); + case SmtLanguagePackage.SMT_LET__TERM: + return term != null; + } + return super.eIsSet(featureID); + } + +} //SMTLetImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTMEQImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTMEQImpl.java new file mode 100644 index 00000000..878bc84b --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTMEQImpl.java @@ -0,0 +1,264 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTMEQ; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMTMEQ'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTMEQImpl#getLeftOperand Left Operand}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTMEQImpl#getRightOperand Right Operand}
  • + *
+ *

+ * + * @generated + */ +public class SMTMEQImpl extends SMTRelationImpl implements SMTMEQ +{ + /** + * The cached value of the '{@link #getLeftOperand() Left Operand}' containment reference. + * + * + * @see #getLeftOperand() + * @generated + * @ordered + */ + protected SMTTerm leftOperand; + + /** + * The cached value of the '{@link #getRightOperand() Right Operand}' containment reference. + * + * + * @see #getRightOperand() + * @generated + * @ordered + */ + protected SMTTerm rightOperand; + + /** + * + * + * @generated + */ + protected SMTMEQImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMTMEQ; + } + + /** + * + * + * @generated + */ + public SMTTerm getLeftOperand() + { + return leftOperand; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetLeftOperand(SMTTerm newLeftOperand, NotificationChain msgs) + { + SMTTerm oldLeftOperand = leftOperand; + leftOperand = newLeftOperand; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTMEQ__LEFT_OPERAND, oldLeftOperand, newLeftOperand); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setLeftOperand(SMTTerm newLeftOperand) + { + if (newLeftOperand != leftOperand) + { + NotificationChain msgs = null; + if (leftOperand != null) + msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTMEQ__LEFT_OPERAND, null, msgs); + if (newLeftOperand != null) + msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTMEQ__LEFT_OPERAND, null, msgs); + msgs = basicSetLeftOperand(newLeftOperand, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTMEQ__LEFT_OPERAND, newLeftOperand, newLeftOperand)); + } + + /** + * + * + * @generated + */ + public SMTTerm getRightOperand() + { + return rightOperand; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetRightOperand(SMTTerm newRightOperand, NotificationChain msgs) + { + SMTTerm oldRightOperand = rightOperand; + rightOperand = newRightOperand; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTMEQ__RIGHT_OPERAND, oldRightOperand, newRightOperand); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setRightOperand(SMTTerm newRightOperand) + { + if (newRightOperand != rightOperand) + { + NotificationChain msgs = null; + if (rightOperand != null) + msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTMEQ__RIGHT_OPERAND, null, msgs); + if (newRightOperand != null) + msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTMEQ__RIGHT_OPERAND, null, msgs); + msgs = basicSetRightOperand(newRightOperand, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTMEQ__RIGHT_OPERAND, newRightOperand, newRightOperand)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMTMEQ__LEFT_OPERAND: + return basicSetLeftOperand(null, msgs); + case SmtLanguagePackage.SMTMEQ__RIGHT_OPERAND: + return basicSetRightOperand(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMTMEQ__LEFT_OPERAND: + return getLeftOperand(); + case SmtLanguagePackage.SMTMEQ__RIGHT_OPERAND: + return getRightOperand(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMTMEQ__LEFT_OPERAND: + setLeftOperand((SMTTerm)newValue); + return; + case SmtLanguagePackage.SMTMEQ__RIGHT_OPERAND: + setRightOperand((SMTTerm)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMTMEQ__LEFT_OPERAND: + setLeftOperand((SMTTerm)null); + return; + case SmtLanguagePackage.SMTMEQ__RIGHT_OPERAND: + setRightOperand((SMTTerm)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMTMEQ__LEFT_OPERAND: + return leftOperand != null; + case SmtLanguagePackage.SMTMEQ__RIGHT_OPERAND: + return rightOperand != null; + } + return super.eIsSet(featureID); + } + +} //SMTMEQImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTMTImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTMTImpl.java new file mode 100644 index 00000000..934ddd59 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTMTImpl.java @@ -0,0 +1,264 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTMT; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMTMT'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTMTImpl#getLeftOperand Left Operand}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTMTImpl#getRightOperand Right Operand}
  • + *
+ *

+ * + * @generated + */ +public class SMTMTImpl extends SMTRelationImpl implements SMTMT +{ + /** + * The cached value of the '{@link #getLeftOperand() Left Operand}' containment reference. + * + * + * @see #getLeftOperand() + * @generated + * @ordered + */ + protected SMTTerm leftOperand; + + /** + * The cached value of the '{@link #getRightOperand() Right Operand}' containment reference. + * + * + * @see #getRightOperand() + * @generated + * @ordered + */ + protected SMTTerm rightOperand; + + /** + * + * + * @generated + */ + protected SMTMTImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMTMT; + } + + /** + * + * + * @generated + */ + public SMTTerm getLeftOperand() + { + return leftOperand; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetLeftOperand(SMTTerm newLeftOperand, NotificationChain msgs) + { + SMTTerm oldLeftOperand = leftOperand; + leftOperand = newLeftOperand; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTMT__LEFT_OPERAND, oldLeftOperand, newLeftOperand); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setLeftOperand(SMTTerm newLeftOperand) + { + if (newLeftOperand != leftOperand) + { + NotificationChain msgs = null; + if (leftOperand != null) + msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTMT__LEFT_OPERAND, null, msgs); + if (newLeftOperand != null) + msgs = ((InternalEObject)newLeftOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTMT__LEFT_OPERAND, null, msgs); + msgs = basicSetLeftOperand(newLeftOperand, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTMT__LEFT_OPERAND, newLeftOperand, newLeftOperand)); + } + + /** + * + * + * @generated + */ + public SMTTerm getRightOperand() + { + return rightOperand; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetRightOperand(SMTTerm newRightOperand, NotificationChain msgs) + { + SMTTerm oldRightOperand = rightOperand; + rightOperand = newRightOperand; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTMT__RIGHT_OPERAND, oldRightOperand, newRightOperand); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setRightOperand(SMTTerm newRightOperand) + { + if (newRightOperand != rightOperand) + { + NotificationChain msgs = null; + if (rightOperand != null) + msgs = ((InternalEObject)rightOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTMT__RIGHT_OPERAND, null, msgs); + if (newRightOperand != null) + msgs = ((InternalEObject)newRightOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMTMT__RIGHT_OPERAND, null, msgs); + msgs = basicSetRightOperand(newRightOperand, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMTMT__RIGHT_OPERAND, newRightOperand, newRightOperand)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMTMT__LEFT_OPERAND: + return basicSetLeftOperand(null, msgs); + case SmtLanguagePackage.SMTMT__RIGHT_OPERAND: + return basicSetRightOperand(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMTMT__LEFT_OPERAND: + return getLeftOperand(); + case SmtLanguagePackage.SMTMT__RIGHT_OPERAND: + return getRightOperand(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMTMT__LEFT_OPERAND: + setLeftOperand((SMTTerm)newValue); + return; + case SmtLanguagePackage.SMTMT__RIGHT_OPERAND: + setRightOperand((SMTTerm)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMTMT__LEFT_OPERAND: + setLeftOperand((SMTTerm)null); + return; + case SmtLanguagePackage.SMTMT__RIGHT_OPERAND: + setRightOperand((SMTTerm)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMTMT__LEFT_OPERAND: + return leftOperand != null; + case SmtLanguagePackage.SMTMT__RIGHT_OPERAND: + return rightOperand != null; + } + return super.eIsSet(featureID); + } + +} //SMTMTImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTMinusImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTMinusImpl.java new file mode 100644 index 00000000..877b8551 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTMinusImpl.java @@ -0,0 +1,42 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTMinus; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'SMT Minus'. + * + *

+ *

+ * + * @generated + */ +public class SMTMinusImpl extends SMTIntOperationImpl implements SMTMinus +{ + /** + * + * + * @generated + */ + protected SMTMinusImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_MINUS; + } + +} //SMTMinusImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTModImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTModImpl.java new file mode 100644 index 00000000..9ff8d7b2 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTModImpl.java @@ -0,0 +1,42 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTMod; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'SMT Mod'. + * + *

+ *

+ * + * @generated + */ +public class SMTModImpl extends SMTIntOperationImpl implements SMTMod +{ + /** + * + * + * @generated + */ + protected SMTModImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_MOD; + } + +} //SMTModImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTModelResultImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTModelResultImpl.java new file mode 100644 index 00000000..1756a74e --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTModelResultImpl.java @@ -0,0 +1,243 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTCardinalityConstraint; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTFunctionDeclaration; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTFunctionDefinition; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTModelResult; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'SMT Model Result'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTModelResultImpl#getNewFunctionDeclarations New Function Declarations}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTModelResultImpl#getTypeDefinitions Type Definitions}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTModelResultImpl#getNewFunctionDefinitions New Function Definitions}
  • + *
+ *

+ * + * @generated + */ +public class SMTModelResultImpl extends SMTResultImpl implements SMTModelResult +{ + /** + * The cached value of the '{@link #getNewFunctionDeclarations() New Function Declarations}' containment reference list. + * + * + * @see #getNewFunctionDeclarations() + * @generated + * @ordered + */ + protected EList newFunctionDeclarations; + + /** + * The cached value of the '{@link #getTypeDefinitions() Type Definitions}' containment reference list. + * + * + * @see #getTypeDefinitions() + * @generated + * @ordered + */ + protected EList typeDefinitions; + + /** + * The cached value of the '{@link #getNewFunctionDefinitions() New Function Definitions}' containment reference list. + * + * + * @see #getNewFunctionDefinitions() + * @generated + * @ordered + */ + protected EList newFunctionDefinitions; + + /** + * + * + * @generated + */ + protected SMTModelResultImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_MODEL_RESULT; + } + + /** + * + * + * @generated + */ + public EList getNewFunctionDeclarations() + { + if (newFunctionDeclarations == null) + { + newFunctionDeclarations = new EObjectContainmentEList(SMTFunctionDeclaration.class, this, SmtLanguagePackage.SMT_MODEL_RESULT__NEW_FUNCTION_DECLARATIONS); + } + return newFunctionDeclarations; + } + + /** + * + * + * @generated + */ + public EList getTypeDefinitions() + { + if (typeDefinitions == null) + { + typeDefinitions = new EObjectContainmentEList(SMTCardinalityConstraint.class, this, SmtLanguagePackage.SMT_MODEL_RESULT__TYPE_DEFINITIONS); + } + return typeDefinitions; + } + + /** + * + * + * @generated + */ + public EList getNewFunctionDefinitions() + { + if (newFunctionDefinitions == null) + { + newFunctionDefinitions = new EObjectContainmentEList(SMTFunctionDefinition.class, this, SmtLanguagePackage.SMT_MODEL_RESULT__NEW_FUNCTION_DEFINITIONS); + } + return newFunctionDefinitions; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_MODEL_RESULT__NEW_FUNCTION_DECLARATIONS: + return ((InternalEList)getNewFunctionDeclarations()).basicRemove(otherEnd, msgs); + case SmtLanguagePackage.SMT_MODEL_RESULT__TYPE_DEFINITIONS: + return ((InternalEList)getTypeDefinitions()).basicRemove(otherEnd, msgs); + case SmtLanguagePackage.SMT_MODEL_RESULT__NEW_FUNCTION_DEFINITIONS: + return ((InternalEList)getNewFunctionDefinitions()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_MODEL_RESULT__NEW_FUNCTION_DECLARATIONS: + return getNewFunctionDeclarations(); + case SmtLanguagePackage.SMT_MODEL_RESULT__TYPE_DEFINITIONS: + return getTypeDefinitions(); + case SmtLanguagePackage.SMT_MODEL_RESULT__NEW_FUNCTION_DEFINITIONS: + return getNewFunctionDefinitions(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_MODEL_RESULT__NEW_FUNCTION_DECLARATIONS: + getNewFunctionDeclarations().clear(); + getNewFunctionDeclarations().addAll((Collection)newValue); + return; + case SmtLanguagePackage.SMT_MODEL_RESULT__TYPE_DEFINITIONS: + getTypeDefinitions().clear(); + getTypeDefinitions().addAll((Collection)newValue); + return; + case SmtLanguagePackage.SMT_MODEL_RESULT__NEW_FUNCTION_DEFINITIONS: + getNewFunctionDefinitions().clear(); + getNewFunctionDefinitions().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_MODEL_RESULT__NEW_FUNCTION_DECLARATIONS: + getNewFunctionDeclarations().clear(); + return; + case SmtLanguagePackage.SMT_MODEL_RESULT__TYPE_DEFINITIONS: + getTypeDefinitions().clear(); + return; + case SmtLanguagePackage.SMT_MODEL_RESULT__NEW_FUNCTION_DEFINITIONS: + getNewFunctionDefinitions().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_MODEL_RESULT__NEW_FUNCTION_DECLARATIONS: + return newFunctionDeclarations != null && !newFunctionDeclarations.isEmpty(); + case SmtLanguagePackage.SMT_MODEL_RESULT__TYPE_DEFINITIONS: + return typeDefinitions != null && !typeDefinitions.isEmpty(); + case SmtLanguagePackage.SMT_MODEL_RESULT__NEW_FUNCTION_DEFINITIONS: + return newFunctionDefinitions != null && !newFunctionDefinitions.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //SMTModelResultImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTMultiplyImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTMultiplyImpl.java new file mode 100644 index 00000000..6e4d5a94 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTMultiplyImpl.java @@ -0,0 +1,42 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTMultiply; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'SMT Multiply'. + * + *

+ *

+ * + * @generated + */ +public class SMTMultiplyImpl extends SMTIntOperationImpl implements SMTMultiply +{ + /** + * + * + * @generated + */ + protected SMTMultiplyImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_MULTIPLY; + } + +} //SMTMultiplyImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTNotImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTNotImpl.java new file mode 100644 index 00000000..14bdfcc6 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTNotImpl.java @@ -0,0 +1,193 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTNot; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMT Not'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTNotImpl#getOperand Operand}
  • + *
+ *

+ * + * @generated + */ +public class SMTNotImpl extends SMTBoolOperationImpl implements SMTNot +{ + /** + * The cached value of the '{@link #getOperand() Operand}' containment reference. + * + * + * @see #getOperand() + * @generated + * @ordered + */ + protected SMTTerm operand; + + /** + * + * + * @generated + */ + protected SMTNotImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_NOT; + } + + /** + * + * + * @generated + */ + public SMTTerm getOperand() + { + return operand; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetOperand(SMTTerm newOperand, NotificationChain msgs) + { + SMTTerm oldOperand = operand; + operand = newOperand; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_NOT__OPERAND, oldOperand, newOperand); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setOperand(SMTTerm newOperand) + { + if (newOperand != operand) + { + NotificationChain msgs = null; + if (operand != null) + msgs = ((InternalEObject)operand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_NOT__OPERAND, null, msgs); + if (newOperand != null) + msgs = ((InternalEObject)newOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_NOT__OPERAND, null, msgs); + msgs = basicSetOperand(newOperand, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_NOT__OPERAND, newOperand, newOperand)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_NOT__OPERAND: + return basicSetOperand(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_NOT__OPERAND: + return getOperand(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_NOT__OPERAND: + setOperand((SMTTerm)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_NOT__OPERAND: + setOperand((SMTTerm)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_NOT__OPERAND: + return operand != null; + } + return super.eIsSet(featureID); + } + +} //SMTNotImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTOptionImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTOptionImpl.java new file mode 100644 index 00000000..d3d51c5b --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTOptionImpl.java @@ -0,0 +1,265 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTAtomicTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTOption; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMT Option'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTOptionImpl#getName Name}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTOptionImpl#getValue Value}
  • + *
+ *

+ * + * @generated + */ +public class SMTOptionImpl extends MinimalEObjectImpl.Container implements SMTOption +{ + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getValue() Value}' containment reference. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected SMTAtomicTerm value; + + /** + * + * + * @generated + */ + protected SMTOptionImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_OPTION; + } + + /** + * + * + * @generated + */ + public String getName() + { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_OPTION__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public SMTAtomicTerm getValue() + { + return value; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetValue(SMTAtomicTerm newValue, NotificationChain msgs) + { + SMTAtomicTerm oldValue = value; + value = newValue; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_OPTION__VALUE, oldValue, newValue); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setValue(SMTAtomicTerm newValue) + { + if (newValue != value) + { + NotificationChain msgs = null; + if (value != null) + msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_OPTION__VALUE, null, msgs); + if (newValue != null) + msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_OPTION__VALUE, null, msgs); + msgs = basicSetValue(newValue, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_OPTION__VALUE, newValue, newValue)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_OPTION__VALUE: + return basicSetValue(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_OPTION__NAME: + return getName(); + case SmtLanguagePackage.SMT_OPTION__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_OPTION__NAME: + setName((String)newValue); + return; + case SmtLanguagePackage.SMT_OPTION__VALUE: + setValue((SMTAtomicTerm)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_OPTION__NAME: + setName(NAME_EDEFAULT); + return; + case SmtLanguagePackage.SMT_OPTION__VALUE: + setValue((SMTAtomicTerm)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_OPTION__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case SmtLanguagePackage.SMT_OPTION__VALUE: + return value != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //SMTOptionImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTOrElseCombinatorImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTOrElseCombinatorImpl.java new file mode 100644 index 00000000..738ac83e --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTOrElseCombinatorImpl.java @@ -0,0 +1,165 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTOrElseCombinator; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTReasoningTactic; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'SMT Or Else Combinator'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTOrElseCombinatorImpl#getTactics Tactics}
  • + *
+ *

+ * + * @generated + */ +public class SMTOrElseCombinatorImpl extends SMTReasoningCombinatorImpl implements SMTOrElseCombinator +{ + /** + * The cached value of the '{@link #getTactics() Tactics}' containment reference list. + * + * + * @see #getTactics() + * @generated + * @ordered + */ + protected EList tactics; + + /** + * + * + * @generated + */ + protected SMTOrElseCombinatorImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_OR_ELSE_COMBINATOR; + } + + /** + * + * + * @generated + */ + public EList getTactics() + { + if (tactics == null) + { + tactics = new EObjectContainmentEList(SMTReasoningTactic.class, this, SmtLanguagePackage.SMT_OR_ELSE_COMBINATOR__TACTICS); + } + return tactics; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_OR_ELSE_COMBINATOR__TACTICS: + return ((InternalEList)getTactics()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_OR_ELSE_COMBINATOR__TACTICS: + return getTactics(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_OR_ELSE_COMBINATOR__TACTICS: + getTactics().clear(); + getTactics().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_OR_ELSE_COMBINATOR__TACTICS: + getTactics().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_OR_ELSE_COMBINATOR__TACTICS: + return tactics != null && !tactics.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //SMTOrElseCombinatorImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTOrImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTOrImpl.java new file mode 100644 index 00000000..950d0895 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTOrImpl.java @@ -0,0 +1,165 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTOr; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'SMT Or'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTOrImpl#getOperands Operands}
  • + *
+ *

+ * + * @generated + */ +public class SMTOrImpl extends SMTBoolOperationImpl implements SMTOr +{ + /** + * The cached value of the '{@link #getOperands() Operands}' containment reference list. + * + * + * @see #getOperands() + * @generated + * @ordered + */ + protected EList operands; + + /** + * + * + * @generated + */ + protected SMTOrImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_OR; + } + + /** + * + * + * @generated + */ + public EList getOperands() + { + if (operands == null) + { + operands = new EObjectContainmentEList(SMTTerm.class, this, SmtLanguagePackage.SMT_OR__OPERANDS); + } + return operands; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_OR__OPERANDS: + return ((InternalEList)getOperands()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_OR__OPERANDS: + return getOperands(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_OR__OPERANDS: + getOperands().clear(); + getOperands().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_OR__OPERANDS: + getOperands().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_OR__OPERANDS: + return operands != null && !operands.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //SMTOrImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTOutputImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTOutputImpl.java new file mode 100644 index 00000000..7a67447d --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTOutputImpl.java @@ -0,0 +1,337 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTOutput; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTResult; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTStatisticsSection; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMT Output'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTOutputImpl#getSatResult Sat Result}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTOutputImpl#getGetModelResult Get Model Result}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTOutputImpl#getStatistics Statistics}
  • + *
+ *

+ * + * @generated + */ +public class SMTOutputImpl extends MinimalEObjectImpl.Container implements SMTOutput +{ + /** + * The cached value of the '{@link #getSatResult() Sat Result}' containment reference. + * + * + * @see #getSatResult() + * @generated + * @ordered + */ + protected SMTResult satResult; + + /** + * The cached value of the '{@link #getGetModelResult() Get Model Result}' containment reference. + * + * + * @see #getGetModelResult() + * @generated + * @ordered + */ + protected SMTResult getModelResult; + + /** + * The cached value of the '{@link #getStatistics() Statistics}' containment reference. + * + * + * @see #getStatistics() + * @generated + * @ordered + */ + protected SMTStatisticsSection statistics; + + /** + * + * + * @generated + */ + protected SMTOutputImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_OUTPUT; + } + + /** + * + * + * @generated + */ + public SMTResult getSatResult() + { + return satResult; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetSatResult(SMTResult newSatResult, NotificationChain msgs) + { + SMTResult oldSatResult = satResult; + satResult = newSatResult; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_OUTPUT__SAT_RESULT, oldSatResult, newSatResult); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setSatResult(SMTResult newSatResult) + { + if (newSatResult != satResult) + { + NotificationChain msgs = null; + if (satResult != null) + msgs = ((InternalEObject)satResult).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_OUTPUT__SAT_RESULT, null, msgs); + if (newSatResult != null) + msgs = ((InternalEObject)newSatResult).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_OUTPUT__SAT_RESULT, null, msgs); + msgs = basicSetSatResult(newSatResult, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_OUTPUT__SAT_RESULT, newSatResult, newSatResult)); + } + + /** + * + * + * @generated + */ + public SMTResult getGetModelResult() + { + return getModelResult; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetGetModelResult(SMTResult newGetModelResult, NotificationChain msgs) + { + SMTResult oldGetModelResult = getModelResult; + getModelResult = newGetModelResult; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_OUTPUT__GET_MODEL_RESULT, oldGetModelResult, newGetModelResult); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setGetModelResult(SMTResult newGetModelResult) + { + if (newGetModelResult != getModelResult) + { + NotificationChain msgs = null; + if (getModelResult != null) + msgs = ((InternalEObject)getModelResult).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_OUTPUT__GET_MODEL_RESULT, null, msgs); + if (newGetModelResult != null) + msgs = ((InternalEObject)newGetModelResult).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_OUTPUT__GET_MODEL_RESULT, null, msgs); + msgs = basicSetGetModelResult(newGetModelResult, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_OUTPUT__GET_MODEL_RESULT, newGetModelResult, newGetModelResult)); + } + + /** + * + * + * @generated + */ + public SMTStatisticsSection getStatistics() + { + return statistics; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetStatistics(SMTStatisticsSection newStatistics, NotificationChain msgs) + { + SMTStatisticsSection oldStatistics = statistics; + statistics = newStatistics; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_OUTPUT__STATISTICS, oldStatistics, newStatistics); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setStatistics(SMTStatisticsSection newStatistics) + { + if (newStatistics != statistics) + { + NotificationChain msgs = null; + if (statistics != null) + msgs = ((InternalEObject)statistics).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_OUTPUT__STATISTICS, null, msgs); + if (newStatistics != null) + msgs = ((InternalEObject)newStatistics).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_OUTPUT__STATISTICS, null, msgs); + msgs = basicSetStatistics(newStatistics, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_OUTPUT__STATISTICS, newStatistics, newStatistics)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_OUTPUT__SAT_RESULT: + return basicSetSatResult(null, msgs); + case SmtLanguagePackage.SMT_OUTPUT__GET_MODEL_RESULT: + return basicSetGetModelResult(null, msgs); + case SmtLanguagePackage.SMT_OUTPUT__STATISTICS: + return basicSetStatistics(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_OUTPUT__SAT_RESULT: + return getSatResult(); + case SmtLanguagePackage.SMT_OUTPUT__GET_MODEL_RESULT: + return getGetModelResult(); + case SmtLanguagePackage.SMT_OUTPUT__STATISTICS: + return getStatistics(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_OUTPUT__SAT_RESULT: + setSatResult((SMTResult)newValue); + return; + case SmtLanguagePackage.SMT_OUTPUT__GET_MODEL_RESULT: + setGetModelResult((SMTResult)newValue); + return; + case SmtLanguagePackage.SMT_OUTPUT__STATISTICS: + setStatistics((SMTStatisticsSection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_OUTPUT__SAT_RESULT: + setSatResult((SMTResult)null); + return; + case SmtLanguagePackage.SMT_OUTPUT__GET_MODEL_RESULT: + setGetModelResult((SMTResult)null); + return; + case SmtLanguagePackage.SMT_OUTPUT__STATISTICS: + setStatistics((SMTStatisticsSection)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_OUTPUT__SAT_RESULT: + return satResult != null; + case SmtLanguagePackage.SMT_OUTPUT__GET_MODEL_RESULT: + return getModelResult != null; + case SmtLanguagePackage.SMT_OUTPUT__STATISTICS: + return statistics != null; + } + return super.eIsSet(featureID); + } + +} //SMTOutputImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTParOrCombinatorImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTParOrCombinatorImpl.java new file mode 100644 index 00000000..4227e886 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTParOrCombinatorImpl.java @@ -0,0 +1,165 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTParOrCombinator; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTReasoningTactic; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'SMT Par Or Combinator'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTParOrCombinatorImpl#getTactics Tactics}
  • + *
+ *

+ * + * @generated + */ +public class SMTParOrCombinatorImpl extends SMTReasoningCombinatorImpl implements SMTParOrCombinator +{ + /** + * The cached value of the '{@link #getTactics() Tactics}' containment reference list. + * + * + * @see #getTactics() + * @generated + * @ordered + */ + protected EList tactics; + + /** + * + * + * @generated + */ + protected SMTParOrCombinatorImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_PAR_OR_COMBINATOR; + } + + /** + * + * + * @generated + */ + public EList getTactics() + { + if (tactics == null) + { + tactics = new EObjectContainmentEList(SMTReasoningTactic.class, this, SmtLanguagePackage.SMT_PAR_OR_COMBINATOR__TACTICS); + } + return tactics; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_PAR_OR_COMBINATOR__TACTICS: + return ((InternalEList)getTactics()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_PAR_OR_COMBINATOR__TACTICS: + return getTactics(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_PAR_OR_COMBINATOR__TACTICS: + getTactics().clear(); + getTactics().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_PAR_OR_COMBINATOR__TACTICS: + getTactics().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_PAR_OR_COMBINATOR__TACTICS: + return tactics != null && !tactics.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //SMTParOrCombinatorImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTParThenCombinatorImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTParThenCombinatorImpl.java new file mode 100644 index 00000000..6a3c06dd --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTParThenCombinatorImpl.java @@ -0,0 +1,264 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTParThenCombinator; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTReasoningTactic; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMT Par Then Combinator'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTParThenCombinatorImpl#getPreProcessingTactic Pre Processing Tactic}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTParThenCombinatorImpl#getParalellyPostpricessingTactic Paralelly Postpricessing Tactic}
  • + *
+ *

+ * + * @generated + */ +public class SMTParThenCombinatorImpl extends SMTReasoningCombinatorImpl implements SMTParThenCombinator +{ + /** + * The cached value of the '{@link #getPreProcessingTactic() Pre Processing Tactic}' containment reference. + * + * + * @see #getPreProcessingTactic() + * @generated + * @ordered + */ + protected SMTReasoningTactic preProcessingTactic; + + /** + * The cached value of the '{@link #getParalellyPostpricessingTactic() Paralelly Postpricessing Tactic}' containment reference. + * + * + * @see #getParalellyPostpricessingTactic() + * @generated + * @ordered + */ + protected SMTReasoningTactic paralellyPostpricessingTactic; + + /** + * + * + * @generated + */ + protected SMTParThenCombinatorImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_PAR_THEN_COMBINATOR; + } + + /** + * + * + * @generated + */ + public SMTReasoningTactic getPreProcessingTactic() + { + return preProcessingTactic; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetPreProcessingTactic(SMTReasoningTactic newPreProcessingTactic, NotificationChain msgs) + { + SMTReasoningTactic oldPreProcessingTactic = preProcessingTactic; + preProcessingTactic = newPreProcessingTactic; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PRE_PROCESSING_TACTIC, oldPreProcessingTactic, newPreProcessingTactic); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setPreProcessingTactic(SMTReasoningTactic newPreProcessingTactic) + { + if (newPreProcessingTactic != preProcessingTactic) + { + NotificationChain msgs = null; + if (preProcessingTactic != null) + msgs = ((InternalEObject)preProcessingTactic).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PRE_PROCESSING_TACTIC, null, msgs); + if (newPreProcessingTactic != null) + msgs = ((InternalEObject)newPreProcessingTactic).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PRE_PROCESSING_TACTIC, null, msgs); + msgs = basicSetPreProcessingTactic(newPreProcessingTactic, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PRE_PROCESSING_TACTIC, newPreProcessingTactic, newPreProcessingTactic)); + } + + /** + * + * + * @generated + */ + public SMTReasoningTactic getParalellyPostpricessingTactic() + { + return paralellyPostpricessingTactic; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetParalellyPostpricessingTactic(SMTReasoningTactic newParalellyPostpricessingTactic, NotificationChain msgs) + { + SMTReasoningTactic oldParalellyPostpricessingTactic = paralellyPostpricessingTactic; + paralellyPostpricessingTactic = newParalellyPostpricessingTactic; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PARALELLY_POSTPRICESSING_TACTIC, oldParalellyPostpricessingTactic, newParalellyPostpricessingTactic); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setParalellyPostpricessingTactic(SMTReasoningTactic newParalellyPostpricessingTactic) + { + if (newParalellyPostpricessingTactic != paralellyPostpricessingTactic) + { + NotificationChain msgs = null; + if (paralellyPostpricessingTactic != null) + msgs = ((InternalEObject)paralellyPostpricessingTactic).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PARALELLY_POSTPRICESSING_TACTIC, null, msgs); + if (newParalellyPostpricessingTactic != null) + msgs = ((InternalEObject)newParalellyPostpricessingTactic).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PARALELLY_POSTPRICESSING_TACTIC, null, msgs); + msgs = basicSetParalellyPostpricessingTactic(newParalellyPostpricessingTactic, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PARALELLY_POSTPRICESSING_TACTIC, newParalellyPostpricessingTactic, newParalellyPostpricessingTactic)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PRE_PROCESSING_TACTIC: + return basicSetPreProcessingTactic(null, msgs); + case SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PARALELLY_POSTPRICESSING_TACTIC: + return basicSetParalellyPostpricessingTactic(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PRE_PROCESSING_TACTIC: + return getPreProcessingTactic(); + case SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PARALELLY_POSTPRICESSING_TACTIC: + return getParalellyPostpricessingTactic(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PRE_PROCESSING_TACTIC: + setPreProcessingTactic((SMTReasoningTactic)newValue); + return; + case SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PARALELLY_POSTPRICESSING_TACTIC: + setParalellyPostpricessingTactic((SMTReasoningTactic)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PRE_PROCESSING_TACTIC: + setPreProcessingTactic((SMTReasoningTactic)null); + return; + case SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PARALELLY_POSTPRICESSING_TACTIC: + setParalellyPostpricessingTactic((SMTReasoningTactic)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PRE_PROCESSING_TACTIC: + return preProcessingTactic != null; + case SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR__PARALELLY_POSTPRICESSING_TACTIC: + return paralellyPostpricessingTactic != null; + } + return super.eIsSet(featureID); + } + +} //SMTParThenCombinatorImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTPlusImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTPlusImpl.java new file mode 100644 index 00000000..87ec6ff4 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTPlusImpl.java @@ -0,0 +1,42 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTPlus; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'SMT Plus'. + * + *

+ *

+ * + * @generated + */ +public class SMTPlusImpl extends SMTIntOperationImpl implements SMTPlus +{ + /** + * + * + * @generated + */ + protected SMTPlusImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_PLUS; + } + +} //SMTPlusImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTPrimitiveTypeReferenceImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTPrimitiveTypeReferenceImpl.java new file mode 100644 index 00000000..b3df7751 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTPrimitiveTypeReferenceImpl.java @@ -0,0 +1,42 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTPrimitiveTypeReference; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'SMT Primitive Type Reference'. + * + *

+ *

+ * + * @generated + */ +public class SMTPrimitiveTypeReferenceImpl extends SMTTypeReferenceImpl implements SMTPrimitiveTypeReference +{ + /** + * + * + * @generated + */ + protected SMTPrimitiveTypeReferenceImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_PRIMITIVE_TYPE_REFERENCE; + } + +} //SMTPrimitiveTypeReferenceImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTQuantifiedExpressionImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTQuantifiedExpressionImpl.java new file mode 100644 index 00000000..1d9d594e --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTQuantifiedExpressionImpl.java @@ -0,0 +1,311 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTQuantifiedExpression; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTSortedVariable; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'SMT Quantified Expression'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTQuantifiedExpressionImpl#getQuantifiedVariables Quantified Variables}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTQuantifiedExpressionImpl#getExpression Expression}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTQuantifiedExpressionImpl#getPattern Pattern}
  • + *
+ *

+ * + * @generated + */ +public class SMTQuantifiedExpressionImpl extends SMTTermImpl implements SMTQuantifiedExpression +{ + /** + * The cached value of the '{@link #getQuantifiedVariables() Quantified Variables}' containment reference list. + * + * + * @see #getQuantifiedVariables() + * @generated + * @ordered + */ + protected EList quantifiedVariables; + + /** + * The cached value of the '{@link #getExpression() Expression}' containment reference. + * + * + * @see #getExpression() + * @generated + * @ordered + */ + protected SMTTerm expression; + + /** + * The cached value of the '{@link #getPattern() Pattern}' containment reference. + * + * + * @see #getPattern() + * @generated + * @ordered + */ + protected SMTTerm pattern; + + /** + * + * + * @generated + */ + protected SMTQuantifiedExpressionImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_QUANTIFIED_EXPRESSION; + } + + /** + * + * + * @generated + */ + public EList getQuantifiedVariables() + { + if (quantifiedVariables == null) + { + quantifiedVariables = new EObjectContainmentEList(SMTSortedVariable.class, this, SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__QUANTIFIED_VARIABLES); + } + return quantifiedVariables; + } + + /** + * + * + * @generated + */ + public SMTTerm getExpression() + { + return expression; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetExpression(SMTTerm newExpression, NotificationChain msgs) + { + SMTTerm oldExpression = expression; + expression = newExpression; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__EXPRESSION, oldExpression, newExpression); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setExpression(SMTTerm newExpression) + { + if (newExpression != expression) + { + NotificationChain msgs = null; + if (expression != null) + msgs = ((InternalEObject)expression).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__EXPRESSION, null, msgs); + if (newExpression != null) + msgs = ((InternalEObject)newExpression).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__EXPRESSION, null, msgs); + msgs = basicSetExpression(newExpression, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__EXPRESSION, newExpression, newExpression)); + } + + /** + * + * + * @generated + */ + public SMTTerm getPattern() + { + return pattern; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetPattern(SMTTerm newPattern, NotificationChain msgs) + { + SMTTerm oldPattern = pattern; + pattern = newPattern; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__PATTERN, oldPattern, newPattern); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setPattern(SMTTerm newPattern) + { + if (newPattern != pattern) + { + NotificationChain msgs = null; + if (pattern != null) + msgs = ((InternalEObject)pattern).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__PATTERN, null, msgs); + if (newPattern != null) + msgs = ((InternalEObject)newPattern).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__PATTERN, null, msgs); + msgs = basicSetPattern(newPattern, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__PATTERN, newPattern, newPattern)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__QUANTIFIED_VARIABLES: + return ((InternalEList)getQuantifiedVariables()).basicRemove(otherEnd, msgs); + case SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__EXPRESSION: + return basicSetExpression(null, msgs); + case SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__PATTERN: + return basicSetPattern(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__QUANTIFIED_VARIABLES: + return getQuantifiedVariables(); + case SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__EXPRESSION: + return getExpression(); + case SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__PATTERN: + return getPattern(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__QUANTIFIED_VARIABLES: + getQuantifiedVariables().clear(); + getQuantifiedVariables().addAll((Collection)newValue); + return; + case SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__EXPRESSION: + setExpression((SMTTerm)newValue); + return; + case SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__PATTERN: + setPattern((SMTTerm)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__QUANTIFIED_VARIABLES: + getQuantifiedVariables().clear(); + return; + case SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__EXPRESSION: + setExpression((SMTTerm)null); + return; + case SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__PATTERN: + setPattern((SMTTerm)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__QUANTIFIED_VARIABLES: + return quantifiedVariables != null && !quantifiedVariables.isEmpty(); + case SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__EXPRESSION: + return expression != null; + case SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION__PATTERN: + return pattern != null; + } + return super.eIsSet(featureID); + } + +} //SMTQuantifiedExpressionImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTRealLiteralImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTRealLiteralImpl.java new file mode 100644 index 00000000..e6ac53ff --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTRealLiteralImpl.java @@ -0,0 +1,178 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTRealLiteral; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import java.math.BigDecimal; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'SMT Real Literal'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTRealLiteralImpl#getValue Value}
  • + *
+ *

+ * + * @generated + */ +public class SMTRealLiteralImpl extends SMTAtomicTermImpl implements SMTRealLiteral +{ + /** + * The default value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final BigDecimal VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected BigDecimal value = VALUE_EDEFAULT; + + /** + * + * + * @generated + */ + protected SMTRealLiteralImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_REAL_LITERAL; + } + + /** + * + * + * @generated + */ + public BigDecimal getValue() + { + return value; + } + + /** + * + * + * @generated + */ + public void setValue(BigDecimal newValue) + { + BigDecimal oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_REAL_LITERAL__VALUE, oldValue, value)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_REAL_LITERAL__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_REAL_LITERAL__VALUE: + setValue((BigDecimal)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_REAL_LITERAL__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_REAL_LITERAL__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + +} //SMTRealLiteralImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTRealTypeReferenceImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTRealTypeReferenceImpl.java new file mode 100644 index 00000000..95c19cfd --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTRealTypeReferenceImpl.java @@ -0,0 +1,42 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTRealTypeReference; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'SMT Real Type Reference'. + * + *

+ *

+ * + * @generated + */ +public class SMTRealTypeReferenceImpl extends SMTPrimitiveTypeReferenceImpl implements SMTRealTypeReference +{ + /** + * + * + * @generated + */ + protected SMTRealTypeReferenceImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_REAL_TYPE_REFERENCE; + } + +} //SMTRealTypeReferenceImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTReasoningCombinatorImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTReasoningCombinatorImpl.java new file mode 100644 index 00000000..767ba81e --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTReasoningCombinatorImpl.java @@ -0,0 +1,42 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTReasoningCombinator; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'SMT Reasoning Combinator'. + * + *

+ *

+ * + * @generated + */ +public class SMTReasoningCombinatorImpl extends SMTReasoningTacticImpl implements SMTReasoningCombinator +{ + /** + * + * + * @generated + */ + protected SMTReasoningCombinatorImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_REASONING_COMBINATOR; + } + +} //SMTReasoningCombinatorImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTReasoningTacticImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTReasoningTacticImpl.java new file mode 100644 index 00000000..73bd6390 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTReasoningTacticImpl.java @@ -0,0 +1,44 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTReasoningTactic; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'SMT Reasoning Tactic'. + * + *

+ *

+ * + * @generated + */ +public class SMTReasoningTacticImpl extends MinimalEObjectImpl.Container implements SMTReasoningTactic +{ + /** + * + * + * @generated + */ + protected SMTReasoningTacticImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_REASONING_TACTIC; + } + +} //SMTReasoningTacticImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTRelationImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTRelationImpl.java new file mode 100644 index 00000000..7086f095 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTRelationImpl.java @@ -0,0 +1,42 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTRelation; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'SMT Relation'. + * + *

+ *

+ * + * @generated + */ +public class SMTRelationImpl extends SMTTermImpl implements SMTRelation +{ + /** + * + * + * @generated + */ + protected SMTRelationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_RELATION; + } + +} //SMTRelationImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTResultImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTResultImpl.java new file mode 100644 index 00000000..602dea0c --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTResultImpl.java @@ -0,0 +1,44 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTResult; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'SMT Result'. + * + *

+ *

+ * + * @generated + */ +public class SMTResultImpl extends MinimalEObjectImpl.Container implements SMTResult +{ + /** + * + * + * @generated + */ + protected SMTResultImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_RESULT; + } + +} //SMTResultImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSatCommandImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSatCommandImpl.java new file mode 100644 index 00000000..224fd955 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSatCommandImpl.java @@ -0,0 +1,44 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTSatCommand; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'SMT Sat Command'. + * + *

+ *

+ * + * @generated + */ +public class SMTSatCommandImpl extends MinimalEObjectImpl.Container implements SMTSatCommand +{ + /** + * + * + * @generated + */ + protected SMTSatCommandImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_SAT_COMMAND; + } + +} //SMTSatCommandImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSatResultImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSatResultImpl.java new file mode 100644 index 00000000..0f72153a --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSatResultImpl.java @@ -0,0 +1,288 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTSatResult; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'SMT Sat Result'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTSatResultImpl#isSat Sat}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTSatResultImpl#isUnsat Unsat}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTSatResultImpl#isUnknown Unknown}
  • + *
+ *

+ * + * @generated + */ +public class SMTSatResultImpl extends SMTResultImpl implements SMTSatResult +{ + /** + * The default value of the '{@link #isSat() Sat}' attribute. + * + * + * @see #isSat() + * @generated + * @ordered + */ + protected static final boolean SAT_EDEFAULT = false; + + /** + * The cached value of the '{@link #isSat() Sat}' attribute. + * + * + * @see #isSat() + * @generated + * @ordered + */ + protected boolean sat = SAT_EDEFAULT; + + /** + * The default value of the '{@link #isUnsat() Unsat}' attribute. + * + * + * @see #isUnsat() + * @generated + * @ordered + */ + protected static final boolean UNSAT_EDEFAULT = false; + + /** + * The cached value of the '{@link #isUnsat() Unsat}' attribute. + * + * + * @see #isUnsat() + * @generated + * @ordered + */ + protected boolean unsat = UNSAT_EDEFAULT; + + /** + * The default value of the '{@link #isUnknown() Unknown}' attribute. + * + * + * @see #isUnknown() + * @generated + * @ordered + */ + protected static final boolean UNKNOWN_EDEFAULT = false; + + /** + * The cached value of the '{@link #isUnknown() Unknown}' attribute. + * + * + * @see #isUnknown() + * @generated + * @ordered + */ + protected boolean unknown = UNKNOWN_EDEFAULT; + + /** + * + * + * @generated + */ + protected SMTSatResultImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_SAT_RESULT; + } + + /** + * + * + * @generated + */ + public boolean isSat() + { + return sat; + } + + /** + * + * + * @generated + */ + public void setSat(boolean newSat) + { + boolean oldSat = sat; + sat = newSat; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_SAT_RESULT__SAT, oldSat, sat)); + } + + /** + * + * + * @generated + */ + public boolean isUnsat() + { + return unsat; + } + + /** + * + * + * @generated + */ + public void setUnsat(boolean newUnsat) + { + boolean oldUnsat = unsat; + unsat = newUnsat; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_SAT_RESULT__UNSAT, oldUnsat, unsat)); + } + + /** + * + * + * @generated + */ + public boolean isUnknown() + { + return unknown; + } + + /** + * + * + * @generated + */ + public void setUnknown(boolean newUnknown) + { + boolean oldUnknown = unknown; + unknown = newUnknown; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_SAT_RESULT__UNKNOWN, oldUnknown, unknown)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_SAT_RESULT__SAT: + return isSat(); + case SmtLanguagePackage.SMT_SAT_RESULT__UNSAT: + return isUnsat(); + case SmtLanguagePackage.SMT_SAT_RESULT__UNKNOWN: + return isUnknown(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_SAT_RESULT__SAT: + setSat((Boolean)newValue); + return; + case SmtLanguagePackage.SMT_SAT_RESULT__UNSAT: + setUnsat((Boolean)newValue); + return; + case SmtLanguagePackage.SMT_SAT_RESULT__UNKNOWN: + setUnknown((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_SAT_RESULT__SAT: + setSat(SAT_EDEFAULT); + return; + case SmtLanguagePackage.SMT_SAT_RESULT__UNSAT: + setUnsat(UNSAT_EDEFAULT); + return; + case SmtLanguagePackage.SMT_SAT_RESULT__UNKNOWN: + setUnknown(UNKNOWN_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_SAT_RESULT__SAT: + return sat != SAT_EDEFAULT; + case SmtLanguagePackage.SMT_SAT_RESULT__UNSAT: + return unsat != UNSAT_EDEFAULT; + case SmtLanguagePackage.SMT_SAT_RESULT__UNKNOWN: + return unknown != UNKNOWN_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (sat: "); + result.append(sat); + result.append(", unsat: "); + result.append(unsat); + result.append(", unknown: "); + result.append(unknown); + result.append(')'); + return result.toString(); + } + +} //SMTSatResultImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSetTypeDeclarationImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSetTypeDeclarationImpl.java new file mode 100644 index 00000000..9d77638b --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSetTypeDeclarationImpl.java @@ -0,0 +1,42 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTSetTypeDeclaration; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'SMT Set Type Declaration'. + * + *

+ *

+ * + * @generated + */ +public class SMTSetTypeDeclarationImpl extends SMTTypeImpl implements SMTSetTypeDeclaration +{ + /** + * + * + * @generated + */ + protected SMTSetTypeDeclarationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_SET_TYPE_DECLARATION; + } + +} //SMTSetTypeDeclarationImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSimpleSatCommandImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSimpleSatCommandImpl.java new file mode 100644 index 00000000..2f006469 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSimpleSatCommandImpl.java @@ -0,0 +1,42 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTSimpleSatCommand; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'SMT Simple Sat Command'. + * + *

+ *

+ * + * @generated + */ +public class SMTSimpleSatCommandImpl extends SMTSatCommandImpl implements SMTSimpleSatCommand +{ + /** + * + * + * @generated + */ + protected SMTSimpleSatCommandImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_SIMPLE_SAT_COMMAND; + } + +} //SMTSimpleSatCommandImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSortedVariableImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSortedVariableImpl.java new file mode 100644 index 00000000..71c1d866 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSortedVariableImpl.java @@ -0,0 +1,193 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTSortedVariable; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTypeReference; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMT Sorted Variable'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTSortedVariableImpl#getRange Range}
  • + *
+ *

+ * + * @generated + */ +public class SMTSortedVariableImpl extends SMTSymbolicDeclarationImpl implements SMTSortedVariable +{ + /** + * The cached value of the '{@link #getRange() Range}' containment reference. + * + * + * @see #getRange() + * @generated + * @ordered + */ + protected SMTTypeReference range; + + /** + * + * + * @generated + */ + protected SMTSortedVariableImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_SORTED_VARIABLE; + } + + /** + * + * + * @generated + */ + public SMTTypeReference getRange() + { + return range; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetRange(SMTTypeReference newRange, NotificationChain msgs) + { + SMTTypeReference oldRange = range; + range = newRange; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_SORTED_VARIABLE__RANGE, oldRange, newRange); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setRange(SMTTypeReference newRange) + { + if (newRange != range) + { + NotificationChain msgs = null; + if (range != null) + msgs = ((InternalEObject)range).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_SORTED_VARIABLE__RANGE, null, msgs); + if (newRange != null) + msgs = ((InternalEObject)newRange).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_SORTED_VARIABLE__RANGE, null, msgs); + msgs = basicSetRange(newRange, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_SORTED_VARIABLE__RANGE, newRange, newRange)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_SORTED_VARIABLE__RANGE: + return basicSetRange(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_SORTED_VARIABLE__RANGE: + return getRange(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_SORTED_VARIABLE__RANGE: + setRange((SMTTypeReference)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_SORTED_VARIABLE__RANGE: + setRange((SMTTypeReference)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_SORTED_VARIABLE__RANGE: + return range != null; + } + return super.eIsSet(featureID); + } + +} //SMTSortedVariableImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTStatisticDoubleValueImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTStatisticDoubleValueImpl.java new file mode 100644 index 00000000..91a69998 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTStatisticDoubleValueImpl.java @@ -0,0 +1,178 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTStatisticDoubleValue; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import java.math.BigDecimal; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'SMT Statistic Double Value'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTStatisticDoubleValueImpl#getValue Value}
  • + *
+ *

+ * + * @generated + */ +public class SMTStatisticDoubleValueImpl extends SMTStatisticValueImpl implements SMTStatisticDoubleValue +{ + /** + * The default value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final BigDecimal VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected BigDecimal value = VALUE_EDEFAULT; + + /** + * + * + * @generated + */ + protected SMTStatisticDoubleValueImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_STATISTIC_DOUBLE_VALUE; + } + + /** + * + * + * @generated + */ + public BigDecimal getValue() + { + return value; + } + + /** + * + * + * @generated + */ + public void setValue(BigDecimal newValue) + { + BigDecimal oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_STATISTIC_DOUBLE_VALUE__VALUE, oldValue, value)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_STATISTIC_DOUBLE_VALUE__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_STATISTIC_DOUBLE_VALUE__VALUE: + setValue((BigDecimal)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_STATISTIC_DOUBLE_VALUE__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_STATISTIC_DOUBLE_VALUE__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + +} //SMTStatisticDoubleValueImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTStatisticIntValueImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTStatisticIntValueImpl.java new file mode 100644 index 00000000..7f76d3e9 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTStatisticIntValueImpl.java @@ -0,0 +1,176 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTStatisticIntValue; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'SMT Statistic Int Value'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTStatisticIntValueImpl#getValue Value}
  • + *
+ *

+ * + * @generated + */ +public class SMTStatisticIntValueImpl extends SMTStatisticValueImpl implements SMTStatisticIntValue +{ + /** + * The default value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final int VALUE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected int value = VALUE_EDEFAULT; + + /** + * + * + * @generated + */ + protected SMTStatisticIntValueImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_STATISTIC_INT_VALUE; + } + + /** + * + * + * @generated + */ + public int getValue() + { + return value; + } + + /** + * + * + * @generated + */ + public void setValue(int newValue) + { + int oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_STATISTIC_INT_VALUE__VALUE, oldValue, value)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_STATISTIC_INT_VALUE__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_STATISTIC_INT_VALUE__VALUE: + setValue((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_STATISTIC_INT_VALUE__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_STATISTIC_INT_VALUE__VALUE: + return value != VALUE_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + +} //SMTStatisticIntValueImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTStatisticValueImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTStatisticValueImpl.java new file mode 100644 index 00000000..95844583 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTStatisticValueImpl.java @@ -0,0 +1,177 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTStatisticValue; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMT Statistic Value'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTStatisticValueImpl#getName Name}
  • + *
+ *

+ * + * @generated + */ +public class SMTStatisticValueImpl extends MinimalEObjectImpl.Container implements SMTStatisticValue +{ + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected SMTStatisticValueImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_STATISTIC_VALUE; + } + + /** + * + * + * @generated + */ + public String getName() + { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_STATISTIC_VALUE__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_STATISTIC_VALUE__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_STATISTIC_VALUE__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_STATISTIC_VALUE__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_STATISTIC_VALUE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //SMTStatisticValueImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTStatisticsSectionImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTStatisticsSectionImpl.java new file mode 100644 index 00000000..370c2df5 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTStatisticsSectionImpl.java @@ -0,0 +1,167 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTStatisticValue; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTStatisticsSection; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'SMT Statistics Section'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTStatisticsSectionImpl#getValues Values}
  • + *
+ *

+ * + * @generated + */ +public class SMTStatisticsSectionImpl extends MinimalEObjectImpl.Container implements SMTStatisticsSection +{ + /** + * The cached value of the '{@link #getValues() Values}' containment reference list. + * + * + * @see #getValues() + * @generated + * @ordered + */ + protected EList values; + + /** + * + * + * @generated + */ + protected SMTStatisticsSectionImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_STATISTICS_SECTION; + } + + /** + * + * + * @generated + */ + public EList getValues() + { + if (values == null) + { + values = new EObjectContainmentEList(SMTStatisticValue.class, this, SmtLanguagePackage.SMT_STATISTICS_SECTION__VALUES); + } + return values; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_STATISTICS_SECTION__VALUES: + return ((InternalEList)getValues()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_STATISTICS_SECTION__VALUES: + return getValues(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_STATISTICS_SECTION__VALUES: + getValues().clear(); + getValues().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_STATISTICS_SECTION__VALUES: + getValues().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_STATISTICS_SECTION__VALUES: + return values != null && !values.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //SMTStatisticsSectionImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSymbolicDeclarationImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSymbolicDeclarationImpl.java new file mode 100644 index 00000000..3513feec --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSymbolicDeclarationImpl.java @@ -0,0 +1,177 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTSymbolicDeclaration; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMT Symbolic Declaration'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTSymbolicDeclarationImpl#getName Name}
  • + *
+ *

+ * + * @generated + */ +public class SMTSymbolicDeclarationImpl extends MinimalEObjectImpl.Container implements SMTSymbolicDeclaration +{ + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected SMTSymbolicDeclarationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_SYMBOLIC_DECLARATION; + } + + /** + * + * + * @generated + */ + public String getName() + { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_SYMBOLIC_DECLARATION__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_SYMBOLIC_DECLARATION__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_SYMBOLIC_DECLARATION__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_SYMBOLIC_DECLARATION__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_SYMBOLIC_DECLARATION__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //SMTSymbolicDeclarationImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSymbolicValueImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSymbolicValueImpl.java new file mode 100644 index 00000000..ea0689ef --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTSymbolicValueImpl.java @@ -0,0 +1,234 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTSymbolicDeclaration; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTSymbolicValue; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'SMT Symbolic Value'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTSymbolicValueImpl#getSymbolicReference Symbolic Reference}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTSymbolicValueImpl#getParameterSubstitutions Parameter Substitutions}
  • + *
+ *

+ * + * @generated + */ +public class SMTSymbolicValueImpl extends SMTTermImpl implements SMTSymbolicValue +{ + /** + * The cached value of the '{@link #getSymbolicReference() Symbolic Reference}' reference. + * + * + * @see #getSymbolicReference() + * @generated + * @ordered + */ + protected SMTSymbolicDeclaration symbolicReference; + + /** + * The cached value of the '{@link #getParameterSubstitutions() Parameter Substitutions}' containment reference list. + * + * + * @see #getParameterSubstitutions() + * @generated + * @ordered + */ + protected EList parameterSubstitutions; + + /** + * + * + * @generated + */ + protected SMTSymbolicValueImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_SYMBOLIC_VALUE; + } + + /** + * + * + * @generated + */ + public SMTSymbolicDeclaration getSymbolicReference() + { + if (symbolicReference != null && symbolicReference.eIsProxy()) + { + InternalEObject oldSymbolicReference = (InternalEObject)symbolicReference; + symbolicReference = (SMTSymbolicDeclaration)eResolveProxy(oldSymbolicReference); + if (symbolicReference != oldSymbolicReference) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SmtLanguagePackage.SMT_SYMBOLIC_VALUE__SYMBOLIC_REFERENCE, oldSymbolicReference, symbolicReference)); + } + } + return symbolicReference; + } + + /** + * + * + * @generated + */ + public SMTSymbolicDeclaration basicGetSymbolicReference() + { + return symbolicReference; + } + + /** + * + * + * @generated + */ + public void setSymbolicReference(SMTSymbolicDeclaration newSymbolicReference) + { + SMTSymbolicDeclaration oldSymbolicReference = symbolicReference; + symbolicReference = newSymbolicReference; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_SYMBOLIC_VALUE__SYMBOLIC_REFERENCE, oldSymbolicReference, symbolicReference)); + } + + /** + * + * + * @generated + */ + public EList getParameterSubstitutions() + { + if (parameterSubstitutions == null) + { + parameterSubstitutions = new EObjectContainmentEList(SMTTerm.class, this, SmtLanguagePackage.SMT_SYMBOLIC_VALUE__PARAMETER_SUBSTITUTIONS); + } + return parameterSubstitutions; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_SYMBOLIC_VALUE__PARAMETER_SUBSTITUTIONS: + return ((InternalEList)getParameterSubstitutions()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_SYMBOLIC_VALUE__SYMBOLIC_REFERENCE: + if (resolve) return getSymbolicReference(); + return basicGetSymbolicReference(); + case SmtLanguagePackage.SMT_SYMBOLIC_VALUE__PARAMETER_SUBSTITUTIONS: + return getParameterSubstitutions(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_SYMBOLIC_VALUE__SYMBOLIC_REFERENCE: + setSymbolicReference((SMTSymbolicDeclaration)newValue); + return; + case SmtLanguagePackage.SMT_SYMBOLIC_VALUE__PARAMETER_SUBSTITUTIONS: + getParameterSubstitutions().clear(); + getParameterSubstitutions().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_SYMBOLIC_VALUE__SYMBOLIC_REFERENCE: + setSymbolicReference((SMTSymbolicDeclaration)null); + return; + case SmtLanguagePackage.SMT_SYMBOLIC_VALUE__PARAMETER_SUBSTITUTIONS: + getParameterSubstitutions().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_SYMBOLIC_VALUE__SYMBOLIC_REFERENCE: + return symbolicReference != null; + case SmtLanguagePackage.SMT_SYMBOLIC_VALUE__PARAMETER_SUBSTITUTIONS: + return parameterSubstitutions != null && !parameterSubstitutions.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //SMTSymbolicValueImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTTermImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTTermImpl.java new file mode 100644 index 00000000..69c66871 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTTermImpl.java @@ -0,0 +1,44 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'SMT Term'. + * + *

+ *

+ * + * @generated + */ +public class SMTTermImpl extends MinimalEObjectImpl.Container implements SMTTerm +{ + /** + * + * + * @generated + */ + protected SMTTermImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_TERM; + } + +} //SMTTermImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTTryForCombinatorImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTTryForCombinatorImpl.java new file mode 100644 index 00000000..31b18931 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTTryForCombinatorImpl.java @@ -0,0 +1,264 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTReasoningTactic; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTryForCombinator; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMT Try For Combinator'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTTryForCombinatorImpl#getTactic Tactic}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTTryForCombinatorImpl#getTime Time}
  • + *
+ *

+ * + * @generated + */ +public class SMTTryForCombinatorImpl extends SMTReasoningCombinatorImpl implements SMTTryForCombinator +{ + /** + * The cached value of the '{@link #getTactic() Tactic}' containment reference. + * + * + * @see #getTactic() + * @generated + * @ordered + */ + protected SMTReasoningTactic tactic; + + /** + * The default value of the '{@link #getTime() Time}' attribute. + * + * + * @see #getTime() + * @generated + * @ordered + */ + protected static final int TIME_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getTime() Time}' attribute. + * + * + * @see #getTime() + * @generated + * @ordered + */ + protected int time = TIME_EDEFAULT; + + /** + * + * + * @generated + */ + protected SMTTryForCombinatorImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_TRY_FOR_COMBINATOR; + } + + /** + * + * + * @generated + */ + public SMTReasoningTactic getTactic() + { + return tactic; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetTactic(SMTReasoningTactic newTactic, NotificationChain msgs) + { + SMTReasoningTactic oldTactic = tactic; + tactic = newTactic; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_TRY_FOR_COMBINATOR__TACTIC, oldTactic, newTactic); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setTactic(SMTReasoningTactic newTactic) + { + if (newTactic != tactic) + { + NotificationChain msgs = null; + if (tactic != null) + msgs = ((InternalEObject)tactic).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_TRY_FOR_COMBINATOR__TACTIC, null, msgs); + if (newTactic != null) + msgs = ((InternalEObject)newTactic).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_TRY_FOR_COMBINATOR__TACTIC, null, msgs); + msgs = basicSetTactic(newTactic, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_TRY_FOR_COMBINATOR__TACTIC, newTactic, newTactic)); + } + + /** + * + * + * @generated + */ + public int getTime() + { + return time; + } + + /** + * + * + * @generated + */ + public void setTime(int newTime) + { + int oldTime = time; + time = newTime; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_TRY_FOR_COMBINATOR__TIME, oldTime, time)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_TRY_FOR_COMBINATOR__TACTIC: + return basicSetTactic(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_TRY_FOR_COMBINATOR__TACTIC: + return getTactic(); + case SmtLanguagePackage.SMT_TRY_FOR_COMBINATOR__TIME: + return getTime(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_TRY_FOR_COMBINATOR__TACTIC: + setTactic((SMTReasoningTactic)newValue); + return; + case SmtLanguagePackage.SMT_TRY_FOR_COMBINATOR__TIME: + setTime((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_TRY_FOR_COMBINATOR__TACTIC: + setTactic((SMTReasoningTactic)null); + return; + case SmtLanguagePackage.SMT_TRY_FOR_COMBINATOR__TIME: + setTime(TIME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_TRY_FOR_COMBINATOR__TACTIC: + return tactic != null; + case SmtLanguagePackage.SMT_TRY_FOR_COMBINATOR__TIME: + return time != TIME_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (time: "); + result.append(time); + result.append(')'); + return result.toString(); + } + +} //SMTTryForCombinatorImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTTypeImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTTypeImpl.java new file mode 100644 index 00000000..883ece7e --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTTypeImpl.java @@ -0,0 +1,177 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTType; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMT Type'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTTypeImpl#getName Name}
  • + *
+ *

+ * + * @generated + */ +public class SMTTypeImpl extends MinimalEObjectImpl.Container implements SMTType +{ + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected SMTTypeImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_TYPE; + } + + /** + * + * + * @generated + */ + public String getName() + { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_TYPE__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_TYPE__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_TYPE__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_TYPE__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_TYPE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //SMTTypeImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTTypeReferenceImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTTypeReferenceImpl.java new file mode 100644 index 00000000..b87bb1aa --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTTypeReferenceImpl.java @@ -0,0 +1,44 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTypeReference; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'SMT Type Reference'. + * + *

+ *

+ * + * @generated + */ +public class SMTTypeReferenceImpl extends MinimalEObjectImpl.Container implements SMTTypeReference +{ + /** + * + * + * @generated + */ + protected SMTTypeReferenceImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_TYPE_REFERENCE; + } + +} //SMTTypeReferenceImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTUnsupportedResultImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTUnsupportedResultImpl.java new file mode 100644 index 00000000..d8fb9d80 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTUnsupportedResultImpl.java @@ -0,0 +1,176 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTUnsupportedResult; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'SMT Unsupported Result'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTUnsupportedResultImpl#getCommand Command}
  • + *
+ *

+ * + * @generated + */ +public class SMTUnsupportedResultImpl extends SMTResultImpl implements SMTUnsupportedResult +{ + /** + * The default value of the '{@link #getCommand() Command}' attribute. + * + * + * @see #getCommand() + * @generated + * @ordered + */ + protected static final String COMMAND_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCommand() Command}' attribute. + * + * + * @see #getCommand() + * @generated + * @ordered + */ + protected String command = COMMAND_EDEFAULT; + + /** + * + * + * @generated + */ + protected SMTUnsupportedResultImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_UNSUPPORTED_RESULT; + } + + /** + * + * + * @generated + */ + public String getCommand() + { + return command; + } + + /** + * + * + * @generated + */ + public void setCommand(String newCommand) + { + String oldCommand = command; + command = newCommand; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_UNSUPPORTED_RESULT__COMMAND, oldCommand, command)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_UNSUPPORTED_RESULT__COMMAND: + return getCommand(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_UNSUPPORTED_RESULT__COMMAND: + setCommand((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_UNSUPPORTED_RESULT__COMMAND: + setCommand(COMMAND_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_UNSUPPORTED_RESULT__COMMAND: + return COMMAND_EDEFAULT == null ? command != null : !COMMAND_EDEFAULT.equals(command); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (command: "); + result.append(command); + result.append(')'); + return result.toString(); + } + +} //SMTUnsupportedResultImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTUsingParamCombinatorImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTUsingParamCombinatorImpl.java new file mode 100644 index 00000000..4eaff2d4 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTUsingParamCombinatorImpl.java @@ -0,0 +1,240 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.ReasoningTacticParameter; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTReasoningTactic; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTUsingParamCombinator; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'SMT Using Param Combinator'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTUsingParamCombinatorImpl#getTactic Tactic}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTUsingParamCombinatorImpl#getParameters Parameters}
  • + *
+ *

+ * + * @generated + */ +public class SMTUsingParamCombinatorImpl extends SMTReasoningCombinatorImpl implements SMTUsingParamCombinator +{ + /** + * The cached value of the '{@link #getTactic() Tactic}' containment reference. + * + * + * @see #getTactic() + * @generated + * @ordered + */ + protected SMTReasoningTactic tactic; + + /** + * The cached value of the '{@link #getParameters() Parameters}' containment reference list. + * + * + * @see #getParameters() + * @generated + * @ordered + */ + protected EList parameters; + + /** + * + * + * @generated + */ + protected SMTUsingParamCombinatorImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_USING_PARAM_COMBINATOR; + } + + /** + * + * + * @generated + */ + public SMTReasoningTactic getTactic() + { + return tactic; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetTactic(SMTReasoningTactic newTactic, NotificationChain msgs) + { + SMTReasoningTactic oldTactic = tactic; + tactic = newTactic; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_USING_PARAM_COMBINATOR__TACTIC, oldTactic, newTactic); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setTactic(SMTReasoningTactic newTactic) + { + if (newTactic != tactic) + { + NotificationChain msgs = null; + if (tactic != null) + msgs = ((InternalEObject)tactic).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_USING_PARAM_COMBINATOR__TACTIC, null, msgs); + if (newTactic != null) + msgs = ((InternalEObject)newTactic).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_USING_PARAM_COMBINATOR__TACTIC, null, msgs); + msgs = basicSetTactic(newTactic, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_USING_PARAM_COMBINATOR__TACTIC, newTactic, newTactic)); + } + + /** + * + * + * @generated + */ + public EList getParameters() + { + if (parameters == null) + { + parameters = new EObjectContainmentEList(ReasoningTacticParameter.class, this, SmtLanguagePackage.SMT_USING_PARAM_COMBINATOR__PARAMETERS); + } + return parameters; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_USING_PARAM_COMBINATOR__TACTIC: + return basicSetTactic(null, msgs); + case SmtLanguagePackage.SMT_USING_PARAM_COMBINATOR__PARAMETERS: + return ((InternalEList)getParameters()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_USING_PARAM_COMBINATOR__TACTIC: + return getTactic(); + case SmtLanguagePackage.SMT_USING_PARAM_COMBINATOR__PARAMETERS: + return getParameters(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_USING_PARAM_COMBINATOR__TACTIC: + setTactic((SMTReasoningTactic)newValue); + return; + case SmtLanguagePackage.SMT_USING_PARAM_COMBINATOR__PARAMETERS: + getParameters().clear(); + getParameters().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_USING_PARAM_COMBINATOR__TACTIC: + setTactic((SMTReasoningTactic)null); + return; + case SmtLanguagePackage.SMT_USING_PARAM_COMBINATOR__PARAMETERS: + getParameters().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_USING_PARAM_COMBINATOR__TACTIC: + return tactic != null; + case SmtLanguagePackage.SMT_USING_PARAM_COMBINATOR__PARAMETERS: + return parameters != null && !parameters.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //SMTUsingParamCombinatorImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTWhenCombinatorImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTWhenCombinatorImpl.java new file mode 100644 index 00000000..be9f1846 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SMTWhenCombinatorImpl.java @@ -0,0 +1,265 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.ReasoningProbe; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTReasoningTactic; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTWhenCombinator; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +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; + +/** + * + * An implementation of the model object 'SMT When Combinator'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTWhenCombinatorImpl#getProbe Probe}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.smtLanguage.impl.SMTWhenCombinatorImpl#getTactic Tactic}
  • + *
+ *

+ * + * @generated + */ +public class SMTWhenCombinatorImpl extends SMTReasoningCombinatorImpl implements SMTWhenCombinator +{ + /** + * The cached value of the '{@link #getProbe() Probe}' containment reference. + * + * + * @see #getProbe() + * @generated + * @ordered + */ + protected ReasoningProbe probe; + + /** + * The cached value of the '{@link #getTactic() Tactic}' containment reference. + * + * + * @see #getTactic() + * @generated + * @ordered + */ + protected SMTReasoningTactic tactic; + + /** + * + * + * @generated + */ + protected SMTWhenCombinatorImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return SmtLanguagePackage.Literals.SMT_WHEN_COMBINATOR; + } + + /** + * + * + * @generated + */ + public ReasoningProbe getProbe() + { + return probe; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetProbe(ReasoningProbe newProbe, NotificationChain msgs) + { + ReasoningProbe oldProbe = probe; + probe = newProbe; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_WHEN_COMBINATOR__PROBE, oldProbe, newProbe); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setProbe(ReasoningProbe newProbe) + { + if (newProbe != probe) + { + NotificationChain msgs = null; + if (probe != null) + msgs = ((InternalEObject)probe).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_WHEN_COMBINATOR__PROBE, null, msgs); + if (newProbe != null) + msgs = ((InternalEObject)newProbe).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_WHEN_COMBINATOR__PROBE, null, msgs); + msgs = basicSetProbe(newProbe, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_WHEN_COMBINATOR__PROBE, newProbe, newProbe)); + } + + /** + * + * + * @generated + */ + public SMTReasoningTactic getTactic() + { + return tactic; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetTactic(SMTReasoningTactic newTactic, NotificationChain msgs) + { + SMTReasoningTactic oldTactic = tactic; + tactic = newTactic; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_WHEN_COMBINATOR__TACTIC, oldTactic, newTactic); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setTactic(SMTReasoningTactic newTactic) + { + if (newTactic != tactic) + { + NotificationChain msgs = null; + if (tactic != null) + msgs = ((InternalEObject)tactic).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_WHEN_COMBINATOR__TACTIC, null, msgs); + if (newTactic != null) + msgs = ((InternalEObject)newTactic).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_WHEN_COMBINATOR__TACTIC, null, msgs); + msgs = basicSetTactic(newTactic, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_WHEN_COMBINATOR__TACTIC, newTactic, newTactic)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_WHEN_COMBINATOR__PROBE: + return basicSetProbe(null, msgs); + case SmtLanguagePackage.SMT_WHEN_COMBINATOR__TACTIC: + return basicSetTactic(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_WHEN_COMBINATOR__PROBE: + return getProbe(); + case SmtLanguagePackage.SMT_WHEN_COMBINATOR__TACTIC: + return getTactic(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_WHEN_COMBINATOR__PROBE: + setProbe((ReasoningProbe)newValue); + return; + case SmtLanguagePackage.SMT_WHEN_COMBINATOR__TACTIC: + setTactic((SMTReasoningTactic)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_WHEN_COMBINATOR__PROBE: + setProbe((ReasoningProbe)null); + return; + case SmtLanguagePackage.SMT_WHEN_COMBINATOR__TACTIC: + setTactic((SMTReasoningTactic)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case SmtLanguagePackage.SMT_WHEN_COMBINATOR__PROBE: + return probe != null; + case SmtLanguagePackage.SMT_WHEN_COMBINATOR__TACTIC: + return tactic != null; + } + return super.eIsSet(featureID); + } + +} //SMTWhenCombinatorImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SmtLanguageFactoryImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SmtLanguageFactoryImpl.java new file mode 100644 index 00000000..b284ade3 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SmtLanguageFactoryImpl.java @@ -0,0 +1,1042 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.*; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EFactoryImpl; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class SmtLanguageFactoryImpl extends EFactoryImpl implements SmtLanguageFactory +{ + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static SmtLanguageFactory init() + { + try + { + SmtLanguageFactory theSmtLanguageFactory = (SmtLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(SmtLanguagePackage.eNS_URI); + if (theSmtLanguageFactory != null) + { + return theSmtLanguageFactory; + } + } + catch (Exception exception) + { + EcorePlugin.INSTANCE.log(exception); + } + return new SmtLanguageFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public SmtLanguageFactoryImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) + { + switch (eClass.getClassifierID()) + { + case SmtLanguagePackage.SMT_DOCUMENT: return createSMTDocument(); + case SmtLanguagePackage.SMT_INPUT: return createSMTInput(); + case SmtLanguagePackage.SMT_OUTPUT: return createSMTOutput(); + case SmtLanguagePackage.SMT_OPTION: return createSMTOption(); + case SmtLanguagePackage.SMT_TYPE: return createSMTType(); + case SmtLanguagePackage.SMT_ENUM_LITERAL: return createSMTEnumLiteral(); + case SmtLanguagePackage.SMT_ENUMERATED_TYPE_DECLARATION: return createSMTEnumeratedTypeDeclaration(); + case SmtLanguagePackage.SMT_SET_TYPE_DECLARATION: return createSMTSetTypeDeclaration(); + case SmtLanguagePackage.SMT_TYPE_REFERENCE: return createSMTTypeReference(); + case SmtLanguagePackage.SMT_COMPLEX_TYPE_REFERENCE: return createSMTComplexTypeReference(); + case SmtLanguagePackage.SMT_PRIMITIVE_TYPE_REFERENCE: return createSMTPrimitiveTypeReference(); + case SmtLanguagePackage.SMT_INT_TYPE_REFERENCE: return createSMTIntTypeReference(); + case SmtLanguagePackage.SMT_BOOL_TYPE_REFERENCE: return createSMTBoolTypeReference(); + case SmtLanguagePackage.SMT_REAL_TYPE_REFERENCE: return createSMTRealTypeReference(); + case SmtLanguagePackage.SMT_FUNCTION_DECLARATION: return createSMTFunctionDeclaration(); + case SmtLanguagePackage.SMT_FUNCTION_DEFINITION: return createSMTFunctionDefinition(); + case SmtLanguagePackage.SMT_TERM: return createSMTTerm(); + case SmtLanguagePackage.SMT_SYMBOLIC_DECLARATION: return createSMTSymbolicDeclaration(); + case SmtLanguagePackage.SMT_SYMBOLIC_VALUE: return createSMTSymbolicValue(); + case SmtLanguagePackage.SMT_ATOMIC_TERM: return createSMTAtomicTerm(); + case SmtLanguagePackage.SMT_INT_LITERAL: return createSMTIntLiteral(); + case SmtLanguagePackage.SMT_BOOL_LITERAL: return createSMTBoolLiteral(); + case SmtLanguagePackage.SMT_REAL_LITERAL: return createSMTRealLiteral(); + case SmtLanguagePackage.SMT_SORTED_VARIABLE: return createSMTSortedVariable(); + case SmtLanguagePackage.SMT_QUANTIFIED_EXPRESSION: return createSMTQuantifiedExpression(); + case SmtLanguagePackage.SMT_EXISTS: return createSMTExists(); + case SmtLanguagePackage.SMT_FORALL: return createSMTForall(); + case SmtLanguagePackage.SMT_BOOL_OPERATION: return createSMTBoolOperation(); + case SmtLanguagePackage.SMT_AND: return createSMTAnd(); + case SmtLanguagePackage.SMT_OR: return createSMTOr(); + case SmtLanguagePackage.SMT_IMPL: return createSMTImpl(); + case SmtLanguagePackage.SMT_NOT: return createSMTNot(); + case SmtLanguagePackage.SMT_IFF: return createSMTIff(); + case SmtLanguagePackage.SMTITE: return createSMTITE(); + case SmtLanguagePackage.SMT_LET: return createSMTLet(); + case SmtLanguagePackage.SMT_INLINE_CONSTANT_DEFINITION: return createSMTInlineConstantDefinition(); + case SmtLanguagePackage.SMT_RELATION: return createSMTRelation(); + case SmtLanguagePackage.SMT_EQUALS: return createSMTEquals(); + case SmtLanguagePackage.SMT_DISTINCT: return createSMTDistinct(); + case SmtLanguagePackage.SMTLT: return createSMTLT(); + case SmtLanguagePackage.SMTMT: return createSMTMT(); + case SmtLanguagePackage.SMTLEQ: return createSMTLEQ(); + case SmtLanguagePackage.SMTMEQ: return createSMTMEQ(); + case SmtLanguagePackage.SMT_INT_OPERATION: return createSMTIntOperation(); + case SmtLanguagePackage.SMT_PLUS: return createSMTPlus(); + case SmtLanguagePackage.SMT_MINUS: return createSMTMinus(); + case SmtLanguagePackage.SMT_MULTIPLY: return createSMTMultiply(); + case SmtLanguagePackage.SMT_DIVISON: return createSMTDivison(); + case SmtLanguagePackage.SMT_DIV: return createSMTDiv(); + case SmtLanguagePackage.SMT_MOD: return createSMTMod(); + case SmtLanguagePackage.SMT_ASSERTION: return createSMTAssertion(); + case SmtLanguagePackage.SMT_CARDINALITY_CONSTRAINT: return createSMTCardinalityConstraint(); + case SmtLanguagePackage.SMT_SAT_COMMAND: return createSMTSatCommand(); + case SmtLanguagePackage.SMT_SIMPLE_SAT_COMMAND: return createSMTSimpleSatCommand(); + case SmtLanguagePackage.SMT_COMPLEX_SAT_COMMAND: return createSMTComplexSatCommand(); + case SmtLanguagePackage.SMT_GET_MODEL_COMMAND: return createSMTGetModelCommand(); + case SmtLanguagePackage.SMT_REASONING_TACTIC: return createSMTReasoningTactic(); + case SmtLanguagePackage.SMT_BUILTIN_TACTIC: return createSMTBuiltinTactic(); + case SmtLanguagePackage.SMT_REASONING_COMBINATOR: return createSMTReasoningCombinator(); + case SmtLanguagePackage.SMT_AND_THEN_COMBINATOR: return createSMTAndThenCombinator(); + case SmtLanguagePackage.SMT_OR_ELSE_COMBINATOR: return createSMTOrElseCombinator(); + case SmtLanguagePackage.SMT_PAR_OR_COMBINATOR: return createSMTParOrCombinator(); + case SmtLanguagePackage.SMT_PAR_THEN_COMBINATOR: return createSMTParThenCombinator(); + case SmtLanguagePackage.SMT_TRY_FOR_COMBINATOR: return createSMTTryForCombinator(); + case SmtLanguagePackage.SMT_IF_COMBINATOR: return createSMTIfCombinator(); + case SmtLanguagePackage.SMT_WHEN_COMBINATOR: return createSMTWhenCombinator(); + case SmtLanguagePackage.SMT_FAIL_IF_COMBINATOR: return createSMTFailIfCombinator(); + case SmtLanguagePackage.SMT_USING_PARAM_COMBINATOR: return createSMTUsingParamCombinator(); + case SmtLanguagePackage.REASONING_PROBE: return createReasoningProbe(); + case SmtLanguagePackage.REASONING_TACTIC_PARAMETER: return createReasoningTacticParameter(); + case SmtLanguagePackage.SMT_RESULT: return createSMTResult(); + case SmtLanguagePackage.SMT_ERROR_RESULT: return createSMTErrorResult(); + case SmtLanguagePackage.SMT_UNSUPPORTED_RESULT: return createSMTUnsupportedResult(); + case SmtLanguagePackage.SMT_SAT_RESULT: return createSMTSatResult(); + case SmtLanguagePackage.SMT_MODEL_RESULT: return createSMTModelResult(); + case SmtLanguagePackage.SMT_STATISTIC_VALUE: return createSMTStatisticValue(); + case SmtLanguagePackage.SMT_STATISTIC_INT_VALUE: return createSMTStatisticIntValue(); + case SmtLanguagePackage.SMT_STATISTIC_DOUBLE_VALUE: return createSMTStatisticDoubleValue(); + case SmtLanguagePackage.SMT_STATISTICS_SECTION: return createSMTStatisticsSection(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public SMTDocument createSMTDocument() + { + SMTDocumentImpl smtDocument = new SMTDocumentImpl(); + return smtDocument; + } + + /** + * + * + * @generated + */ + public SMTInput createSMTInput() + { + SMTInputImpl smtInput = new SMTInputImpl(); + return smtInput; + } + + /** + * + * + * @generated + */ + public SMTOutput createSMTOutput() + { + SMTOutputImpl smtOutput = new SMTOutputImpl(); + return smtOutput; + } + + /** + * + * + * @generated + */ + public SMTOption createSMTOption() + { + SMTOptionImpl smtOption = new SMTOptionImpl(); + return smtOption; + } + + /** + * + * + * @generated + */ + public SMTType createSMTType() + { + SMTTypeImpl smtType = new SMTTypeImpl(); + return smtType; + } + + /** + * + * + * @generated + */ + public SMTEnumLiteral createSMTEnumLiteral() + { + SMTEnumLiteralImpl smtEnumLiteral = new SMTEnumLiteralImpl(); + return smtEnumLiteral; + } + + /** + * + * + * @generated + */ + public SMTEnumeratedTypeDeclaration createSMTEnumeratedTypeDeclaration() + { + SMTEnumeratedTypeDeclarationImpl smtEnumeratedTypeDeclaration = new SMTEnumeratedTypeDeclarationImpl(); + return smtEnumeratedTypeDeclaration; + } + + /** + * + * + * @generated + */ + public SMTSetTypeDeclaration createSMTSetTypeDeclaration() + { + SMTSetTypeDeclarationImpl smtSetTypeDeclaration = new SMTSetTypeDeclarationImpl(); + return smtSetTypeDeclaration; + } + + /** + * + * + * @generated + */ + public SMTTypeReference createSMTTypeReference() + { + SMTTypeReferenceImpl smtTypeReference = new SMTTypeReferenceImpl(); + return smtTypeReference; + } + + /** + * + * + * @generated + */ + public SMTComplexTypeReference createSMTComplexTypeReference() + { + SMTComplexTypeReferenceImpl smtComplexTypeReference = new SMTComplexTypeReferenceImpl(); + return smtComplexTypeReference; + } + + /** + * + * + * @generated + */ + public SMTPrimitiveTypeReference createSMTPrimitiveTypeReference() + { + SMTPrimitiveTypeReferenceImpl smtPrimitiveTypeReference = new SMTPrimitiveTypeReferenceImpl(); + return smtPrimitiveTypeReference; + } + + /** + * + * + * @generated + */ + public SMTIntTypeReference createSMTIntTypeReference() + { + SMTIntTypeReferenceImpl smtIntTypeReference = new SMTIntTypeReferenceImpl(); + return smtIntTypeReference; + } + + /** + * + * + * @generated + */ + public SMTBoolTypeReference createSMTBoolTypeReference() + { + SMTBoolTypeReferenceImpl smtBoolTypeReference = new SMTBoolTypeReferenceImpl(); + return smtBoolTypeReference; + } + + /** + * + * + * @generated + */ + public SMTRealTypeReference createSMTRealTypeReference() + { + SMTRealTypeReferenceImpl smtRealTypeReference = new SMTRealTypeReferenceImpl(); + return smtRealTypeReference; + } + + /** + * + * + * @generated + */ + public SMTFunctionDeclaration createSMTFunctionDeclaration() + { + SMTFunctionDeclarationImpl smtFunctionDeclaration = new SMTFunctionDeclarationImpl(); + return smtFunctionDeclaration; + } + + /** + * + * + * @generated + */ + public SMTFunctionDefinition createSMTFunctionDefinition() + { + SMTFunctionDefinitionImpl smtFunctionDefinition = new SMTFunctionDefinitionImpl(); + return smtFunctionDefinition; + } + + /** + * + * + * @generated + */ + public SMTTerm createSMTTerm() + { + SMTTermImpl smtTerm = new SMTTermImpl(); + return smtTerm; + } + + /** + * + * + * @generated + */ + public SMTSymbolicDeclaration createSMTSymbolicDeclaration() + { + SMTSymbolicDeclarationImpl smtSymbolicDeclaration = new SMTSymbolicDeclarationImpl(); + return smtSymbolicDeclaration; + } + + /** + * + * + * @generated + */ + public SMTSymbolicValue createSMTSymbolicValue() + { + SMTSymbolicValueImpl smtSymbolicValue = new SMTSymbolicValueImpl(); + return smtSymbolicValue; + } + + /** + * + * + * @generated + */ + public SMTAtomicTerm createSMTAtomicTerm() + { + SMTAtomicTermImpl smtAtomicTerm = new SMTAtomicTermImpl(); + return smtAtomicTerm; + } + + /** + * + * + * @generated + */ + public SMTIntLiteral createSMTIntLiteral() + { + SMTIntLiteralImpl smtIntLiteral = new SMTIntLiteralImpl(); + return smtIntLiteral; + } + + /** + * + * + * @generated + */ + public SMTBoolLiteral createSMTBoolLiteral() + { + SMTBoolLiteralImpl smtBoolLiteral = new SMTBoolLiteralImpl(); + return smtBoolLiteral; + } + + /** + * + * + * @generated + */ + public SMTRealLiteral createSMTRealLiteral() + { + SMTRealLiteralImpl smtRealLiteral = new SMTRealLiteralImpl(); + return smtRealLiteral; + } + + /** + * + * + * @generated + */ + public SMTSortedVariable createSMTSortedVariable() + { + SMTSortedVariableImpl smtSortedVariable = new SMTSortedVariableImpl(); + return smtSortedVariable; + } + + /** + * + * + * @generated + */ + public SMTQuantifiedExpression createSMTQuantifiedExpression() + { + SMTQuantifiedExpressionImpl smtQuantifiedExpression = new SMTQuantifiedExpressionImpl(); + return smtQuantifiedExpression; + } + + /** + * + * + * @generated + */ + public SMTExists createSMTExists() + { + SMTExistsImpl smtExists = new SMTExistsImpl(); + return smtExists; + } + + /** + * + * + * @generated + */ + public SMTForall createSMTForall() + { + SMTForallImpl smtForall = new SMTForallImpl(); + return smtForall; + } + + /** + * + * + * @generated + */ + public SMTBoolOperation createSMTBoolOperation() + { + SMTBoolOperationImpl smtBoolOperation = new SMTBoolOperationImpl(); + return smtBoolOperation; + } + + /** + * + * + * @generated + */ + public SMTAnd createSMTAnd() + { + SMTAndImpl smtAnd = new SMTAndImpl(); + return smtAnd; + } + + /** + * + * + * @generated + */ + public SMTOr createSMTOr() + { + SMTOrImpl smtOr = new SMTOrImpl(); + return smtOr; + } + + /** + * + * + * @generated + */ + public SMTImpl createSMTImpl() + { + SMTImplImpl smtImpl = new SMTImplImpl(); + return smtImpl; + } + + /** + * + * + * @generated + */ + public SMTNot createSMTNot() + { + SMTNotImpl smtNot = new SMTNotImpl(); + return smtNot; + } + + /** + * + * + * @generated + */ + public SMTIff createSMTIff() + { + SMTIffImpl smtIff = new SMTIffImpl(); + return smtIff; + } + + /** + * + * + * @generated + */ + public SMTITE createSMTITE() + { + SMTITEImpl smtite = new SMTITEImpl(); + return smtite; + } + + /** + * + * + * @generated + */ + public SMTLet createSMTLet() + { + SMTLetImpl smtLet = new SMTLetImpl(); + return smtLet; + } + + /** + * + * + * @generated + */ + public SMTInlineConstantDefinition createSMTInlineConstantDefinition() + { + SMTInlineConstantDefinitionImpl smtInlineConstantDefinition = new SMTInlineConstantDefinitionImpl(); + return smtInlineConstantDefinition; + } + + /** + * + * + * @generated + */ + public SMTRelation createSMTRelation() + { + SMTRelationImpl smtRelation = new SMTRelationImpl(); + return smtRelation; + } + + /** + * + * + * @generated + */ + public SMTEquals createSMTEquals() + { + SMTEqualsImpl smtEquals = new SMTEqualsImpl(); + return smtEquals; + } + + /** + * + * + * @generated + */ + public SMTDistinct createSMTDistinct() + { + SMTDistinctImpl smtDistinct = new SMTDistinctImpl(); + return smtDistinct; + } + + /** + * + * + * @generated + */ + public SMTLT createSMTLT() + { + SMTLTImpl smtlt = new SMTLTImpl(); + return smtlt; + } + + /** + * + * + * @generated + */ + public SMTMT createSMTMT() + { + SMTMTImpl smtmt = new SMTMTImpl(); + return smtmt; + } + + /** + * + * + * @generated + */ + public SMTLEQ createSMTLEQ() + { + SMTLEQImpl smtleq = new SMTLEQImpl(); + return smtleq; + } + + /** + * + * + * @generated + */ + public SMTMEQ createSMTMEQ() + { + SMTMEQImpl smtmeq = new SMTMEQImpl(); + return smtmeq; + } + + /** + * + * + * @generated + */ + public SMTIntOperation createSMTIntOperation() + { + SMTIntOperationImpl smtIntOperation = new SMTIntOperationImpl(); + return smtIntOperation; + } + + /** + * + * + * @generated + */ + public SMTPlus createSMTPlus() + { + SMTPlusImpl smtPlus = new SMTPlusImpl(); + return smtPlus; + } + + /** + * + * + * @generated + */ + public SMTMinus createSMTMinus() + { + SMTMinusImpl smtMinus = new SMTMinusImpl(); + return smtMinus; + } + + /** + * + * + * @generated + */ + public SMTMultiply createSMTMultiply() + { + SMTMultiplyImpl smtMultiply = new SMTMultiplyImpl(); + return smtMultiply; + } + + /** + * + * + * @generated + */ + public SMTDivison createSMTDivison() + { + SMTDivisonImpl smtDivison = new SMTDivisonImpl(); + return smtDivison; + } + + /** + * + * + * @generated + */ + public SMTDiv createSMTDiv() + { + SMTDivImpl smtDiv = new SMTDivImpl(); + return smtDiv; + } + + /** + * + * + * @generated + */ + public SMTMod createSMTMod() + { + SMTModImpl smtMod = new SMTModImpl(); + return smtMod; + } + + /** + * + * + * @generated + */ + public SMTAssertion createSMTAssertion() + { + SMTAssertionImpl smtAssertion = new SMTAssertionImpl(); + return smtAssertion; + } + + /** + * + * + * @generated + */ + public SMTCardinalityConstraint createSMTCardinalityConstraint() + { + SMTCardinalityConstraintImpl smtCardinalityConstraint = new SMTCardinalityConstraintImpl(); + return smtCardinalityConstraint; + } + + /** + * + * + * @generated + */ + public SMTSatCommand createSMTSatCommand() + { + SMTSatCommandImpl smtSatCommand = new SMTSatCommandImpl(); + return smtSatCommand; + } + + /** + * + * + * @generated + */ + public SMTSimpleSatCommand createSMTSimpleSatCommand() + { + SMTSimpleSatCommandImpl smtSimpleSatCommand = new SMTSimpleSatCommandImpl(); + return smtSimpleSatCommand; + } + + /** + * + * + * @generated + */ + public SMTComplexSatCommand createSMTComplexSatCommand() + { + SMTComplexSatCommandImpl smtComplexSatCommand = new SMTComplexSatCommandImpl(); + return smtComplexSatCommand; + } + + /** + * + * + * @generated + */ + public SMTGetModelCommand createSMTGetModelCommand() + { + SMTGetModelCommandImpl smtGetModelCommand = new SMTGetModelCommandImpl(); + return smtGetModelCommand; + } + + /** + * + * + * @generated + */ + public SMTReasoningTactic createSMTReasoningTactic() + { + SMTReasoningTacticImpl smtReasoningTactic = new SMTReasoningTacticImpl(); + return smtReasoningTactic; + } + + /** + * + * + * @generated + */ + public SMTBuiltinTactic createSMTBuiltinTactic() + { + SMTBuiltinTacticImpl smtBuiltinTactic = new SMTBuiltinTacticImpl(); + return smtBuiltinTactic; + } + + /** + * + * + * @generated + */ + public SMTReasoningCombinator createSMTReasoningCombinator() + { + SMTReasoningCombinatorImpl smtReasoningCombinator = new SMTReasoningCombinatorImpl(); + return smtReasoningCombinator; + } + + /** + * + * + * @generated + */ + public SMTAndThenCombinator createSMTAndThenCombinator() + { + SMTAndThenCombinatorImpl smtAndThenCombinator = new SMTAndThenCombinatorImpl(); + return smtAndThenCombinator; + } + + /** + * + * + * @generated + */ + public SMTOrElseCombinator createSMTOrElseCombinator() + { + SMTOrElseCombinatorImpl smtOrElseCombinator = new SMTOrElseCombinatorImpl(); + return smtOrElseCombinator; + } + + /** + * + * + * @generated + */ + public SMTParOrCombinator createSMTParOrCombinator() + { + SMTParOrCombinatorImpl smtParOrCombinator = new SMTParOrCombinatorImpl(); + return smtParOrCombinator; + } + + /** + * + * + * @generated + */ + public SMTParThenCombinator createSMTParThenCombinator() + { + SMTParThenCombinatorImpl smtParThenCombinator = new SMTParThenCombinatorImpl(); + return smtParThenCombinator; + } + + /** + * + * + * @generated + */ + public SMTTryForCombinator createSMTTryForCombinator() + { + SMTTryForCombinatorImpl smtTryForCombinator = new SMTTryForCombinatorImpl(); + return smtTryForCombinator; + } + + /** + * + * + * @generated + */ + public SMTIfCombinator createSMTIfCombinator() + { + SMTIfCombinatorImpl smtIfCombinator = new SMTIfCombinatorImpl(); + return smtIfCombinator; + } + + /** + * + * + * @generated + */ + public SMTWhenCombinator createSMTWhenCombinator() + { + SMTWhenCombinatorImpl smtWhenCombinator = new SMTWhenCombinatorImpl(); + return smtWhenCombinator; + } + + /** + * + * + * @generated + */ + public SMTFailIfCombinator createSMTFailIfCombinator() + { + SMTFailIfCombinatorImpl smtFailIfCombinator = new SMTFailIfCombinatorImpl(); + return smtFailIfCombinator; + } + + /** + * + * + * @generated + */ + public SMTUsingParamCombinator createSMTUsingParamCombinator() + { + SMTUsingParamCombinatorImpl smtUsingParamCombinator = new SMTUsingParamCombinatorImpl(); + return smtUsingParamCombinator; + } + + /** + * + * + * @generated + */ + public ReasoningProbe createReasoningProbe() + { + ReasoningProbeImpl reasoningProbe = new ReasoningProbeImpl(); + return reasoningProbe; + } + + /** + * + * + * @generated + */ + public ReasoningTacticParameter createReasoningTacticParameter() + { + ReasoningTacticParameterImpl reasoningTacticParameter = new ReasoningTacticParameterImpl(); + return reasoningTacticParameter; + } + + /** + * + * + * @generated + */ + public SMTResult createSMTResult() + { + SMTResultImpl smtResult = new SMTResultImpl(); + return smtResult; + } + + /** + * + * + * @generated + */ + public SMTErrorResult createSMTErrorResult() + { + SMTErrorResultImpl smtErrorResult = new SMTErrorResultImpl(); + return smtErrorResult; + } + + /** + * + * + * @generated + */ + public SMTUnsupportedResult createSMTUnsupportedResult() + { + SMTUnsupportedResultImpl smtUnsupportedResult = new SMTUnsupportedResultImpl(); + return smtUnsupportedResult; + } + + /** + * + * + * @generated + */ + public SMTSatResult createSMTSatResult() + { + SMTSatResultImpl smtSatResult = new SMTSatResultImpl(); + return smtSatResult; + } + + /** + * + * + * @generated + */ + public SMTModelResult createSMTModelResult() + { + SMTModelResultImpl smtModelResult = new SMTModelResultImpl(); + return smtModelResult; + } + + /** + * + * + * @generated + */ + public SMTStatisticValue createSMTStatisticValue() + { + SMTStatisticValueImpl smtStatisticValue = new SMTStatisticValueImpl(); + return smtStatisticValue; + } + + /** + * + * + * @generated + */ + public SMTStatisticIntValue createSMTStatisticIntValue() + { + SMTStatisticIntValueImpl smtStatisticIntValue = new SMTStatisticIntValueImpl(); + return smtStatisticIntValue; + } + + /** + * + * + * @generated + */ + public SMTStatisticDoubleValue createSMTStatisticDoubleValue() + { + SMTStatisticDoubleValueImpl smtStatisticDoubleValue = new SMTStatisticDoubleValueImpl(); + return smtStatisticDoubleValue; + } + + /** + * + * + * @generated + */ + public SMTStatisticsSection createSMTStatisticsSection() + { + SMTStatisticsSectionImpl smtStatisticsSection = new SMTStatisticsSectionImpl(); + return smtStatisticsSection; + } + + /** + * + * + * @generated + */ + public SmtLanguagePackage getSmtLanguagePackage() + { + return (SmtLanguagePackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static SmtLanguagePackage getPackage() + { + return SmtLanguagePackage.eINSTANCE; + } + +} //SmtLanguageFactoryImpl diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SmtLanguagePackageImpl.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SmtLanguagePackageImpl.java new file mode 100644 index 00000000..9f1389ff --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language/src-gen/hu/bme/mit/inf/dslreasoner/smtLanguage/impl/SmtLanguagePackageImpl.java @@ -0,0 +1,3062 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; + +import hu.bme.mit.inf.dslreasoner.smtLanguage.ReasoningProbe; +import hu.bme.mit.inf.dslreasoner.smtLanguage.ReasoningTacticParameter; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTAnd; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTAndThenCombinator; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTAssertion; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTAtomicTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTBoolLiteral; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTBoolOperation; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTBoolTypeReference; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTBuiltinTactic; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTCardinalityConstraint; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTComplexSatCommand; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTComplexTypeReference; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTDistinct; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTDiv; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTDivison; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTDocument; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTEnumLiteral; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTEnumeratedTypeDeclaration; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTEquals; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTErrorResult; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTExists; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTFailIfCombinator; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTForall; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTFunctionDeclaration; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTFunctionDefinition; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTGetModelCommand; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTIfCombinator; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTIff; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTImpl; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTInlineConstantDefinition; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTInput; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTIntLiteral; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTIntOperation; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTIntTypeReference; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTLet; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTMinus; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTMod; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTModelResult; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTMultiply; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTNot; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTOption; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTOr; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTOrElseCombinator; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTOutput; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTParOrCombinator; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTParThenCombinator; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTPlus; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTPrimitiveTypeReference; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTQuantifiedExpression; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTRealLiteral; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTRealTypeReference; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTReasoningCombinator; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTReasoningTactic; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTRelation; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTResult; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTSatCommand; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTSatResult; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTSetTypeDeclaration; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTSimpleSatCommand; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTSortedVariable; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTStatisticDoubleValue; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTStatisticIntValue; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTStatisticValue; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTStatisticsSection; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTSymbolicDeclaration; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTSymbolicValue; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTerm; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTryForCombinator; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTType; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTTypeReference; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTUnsupportedResult; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTUsingParamCombinator; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTWhenCombinator; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguageFactory; +import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class SmtLanguagePackageImpl extends EPackageImpl implements SmtLanguagePackage +{ + /** + * + * + * @generated + */ + private EClass smtDocumentEClass = null; + + /** + * + * + * @generated + */ + private EClass smtInputEClass = null; + + /** + * + * + * @generated + */ + private EClass smtOutputEClass = null; + + /** + * + * + * @generated + */ + private EClass smtOptionEClass = null; + + /** + * + * + * @generated + */ + private EClass smtTypeEClass = null; + + /** + * + * + * @generated + */ + private EClass smtEnumLiteralEClass = null; + + /** + * + * + * @generated + */ + private EClass smtEnumeratedTypeDeclarationEClass = null; + + /** + * + * + * @generated + */ + private EClass smtSetTypeDeclarationEClass = null; + + /** + * + * + * @generated + */ + private EClass smtTypeReferenceEClass = null; + + /** + * + * + * @generated + */ + private EClass smtComplexTypeReferenceEClass = null; + + /** + * + * + * @generated + */ + private EClass smtPrimitiveTypeReferenceEClass = null; + + /** + * + * + * @generated + */ + private EClass smtIntTypeReferenceEClass = null; + + /** + * + * + * @generated + */ + private EClass smtBoolTypeReferenceEClass = null; + + /** + * + * + * @generated + */ + private EClass smtRealTypeReferenceEClass = null; + + /** + * + * + * @generated + */ + private EClass smtFunctionDeclarationEClass = null; + + /** + * + * + * @generated + */ + private EClass smtFunctionDefinitionEClass = null; + + /** + * + * + * @generated + */ + private EClass smtTermEClass = null; + + /** + * + * + * @generated + */ + private EClass smtSymbolicDeclarationEClass = null; + + /** + * + * + * @generated + */ + private EClass smtSymbolicValueEClass = null; + + /** + * + * + * @generated + */ + private EClass smtAtomicTermEClass = null; + + /** + * + * + * @generated + */ + private EClass smtIntLiteralEClass = null; + + /** + * + * + * @generated + */ + private EClass smtBoolLiteralEClass = null; + + /** + * + * + * @generated + */ + private EClass smtRealLiteralEClass = null; + + /** + * + * + * @generated + */ + private EClass smtSortedVariableEClass = null; + + /** + * + * + * @generated + */ + private EClass smtQuantifiedExpressionEClass = null; + + /** + * + * + * @generated + */ + private EClass smtExistsEClass = null; + + /** + * + * + * @generated + */ + private EClass smtForallEClass = null; + + /** + * + * + * @generated + */ + private EClass smtBoolOperationEClass = null; + + /** + * + * + * @generated + */ + private EClass smtAndEClass = null; + + /** + * + * + * @generated + */ + private EClass smtOrEClass = null; + + /** + * + * + * @generated + */ + private EClass smtImplEClass = null; + + /** + * + * + * @generated + */ + private EClass smtNotEClass = null; + + /** + * + * + * @generated + */ + private EClass smtIffEClass = null; + + /** + * + * + * @generated + */ + private EClass smtiteEClass = null; + + /** + * + * + * @generated + */ + private EClass smtLetEClass = null; + + /** + * + * + * @generated + */ + private EClass smtInlineConstantDefinitionEClass = null; + + /** + * + * + * @generated + */ + private EClass smtRelationEClass = null; + + /** + * + * + * @generated + */ + private EClass smtEqualsEClass = null; + + /** + * + * + * @generated + */ + private EClass smtDistinctEClass = null; + + /** + * + * + * @generated + */ + private EClass smtltEClass = null; + + /** + * + * + * @generated + */ + private EClass smtmtEClass = null; + + /** + * + * + * @generated + */ + private EClass smtleqEClass = null; + + /** + * + * + * @generated + */ + private EClass smtmeqEClass = null; + + /** + * + * + * @generated + */ + private EClass smtIntOperationEClass = null; + + /** + * + * + * @generated + */ + private EClass smtPlusEClass = null; + + /** + * + * + * @generated + */ + private EClass smtMinusEClass = null; + + /** + * + * + * @generated + */ + private EClass smtMultiplyEClass = null; + + /** + * + * + * @generated + */ + private EClass smtDivisonEClass = null; + + /** + * + * + * @generated + */ + private EClass smtDivEClass = null; + + /** + * + * + * @generated + */ + private EClass smtModEClass = null; + + /** + * + * + * @generated + */ + private EClass smtAssertionEClass = null; + + /** + * + * + * @generated + */ + private EClass smtCardinalityConstraintEClass = null; + + /** + * + * + * @generated + */ + private EClass smtSatCommandEClass = null; + + /** + * + * + * @generated + */ + private EClass smtSimpleSatCommandEClass = null; + + /** + * + * + * @generated + */ + private EClass smtComplexSatCommandEClass = null; + + /** + * + * + * @generated + */ + private EClass smtGetModelCommandEClass = null; + + /** + * + * + * @generated + */ + private EClass smtReasoningTacticEClass = null; + + /** + * + * + * @generated + */ + private EClass smtBuiltinTacticEClass = null; + + /** + * + * + * @generated + */ + private EClass smtReasoningCombinatorEClass = null; + + /** + * + * + * @generated + */ + private EClass smtAndThenCombinatorEClass = null; + + /** + * + * + * @generated + */ + private EClass smtOrElseCombinatorEClass = null; + + /** + * + * + * @generated + */ + private EClass smtParOrCombinatorEClass = null; + + /** + * + * + * @generated + */ + private EClass smtParThenCombinatorEClass = null; + + /** + * + * + * @generated + */ + private EClass smtTryForCombinatorEClass = null; + + /** + * + * + * @generated + */ + private EClass smtIfCombinatorEClass = null; + + /** + * + * + * @generated + */ + private EClass smtWhenCombinatorEClass = null; + + /** + * + * + * @generated + */ + private EClass smtFailIfCombinatorEClass = null; + + /** + * + * + * @generated + */ + private EClass smtUsingParamCombinatorEClass = null; + + /** + * + * + * @generated + */ + private EClass reasoningProbeEClass = null; + + /** + * + * + * @generated + */ + private EClass reasoningTacticParameterEClass = null; + + /** + * + * + * @generated + */ + private EClass smtResultEClass = null; + + /** + * + * + * @generated + */ + private EClass smtErrorResultEClass = null; + + /** + * + * + * @generated + */ + private EClass smtUnsupportedResultEClass = null; + + /** + * + * + * @generated + */ + private EClass smtSatResultEClass = null; + + /** + * + * + * @generated + */ + private EClass smtModelResultEClass = null; + + /** + * + * + * @generated + */ + private EClass smtStatisticValueEClass = null; + + /** + * + * + * @generated + */ + private EClass smtStatisticIntValueEClass = null; + + /** + * + * + * @generated + */ + private EClass smtStatisticDoubleValueEClass = null; + + /** + * + * + * @generated + */ + private EClass smtStatisticsSectionEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

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. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage#eNS_URI + * @see #init() + * @generated + */ + private SmtLanguagePackageImpl() + { + super(eNS_URI, SmtLanguageFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link SmtLanguagePackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static SmtLanguagePackage init() + { + if (isInited) return (SmtLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(SmtLanguagePackage.eNS_URI); + + // Obtain or create and register package + SmtLanguagePackageImpl theSmtLanguagePackage = (SmtLanguagePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof SmtLanguagePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new SmtLanguagePackageImpl()); + + isInited = true; + + // Create package meta-data objects + theSmtLanguagePackage.createPackageContents(); + + // Initialize created meta-data + theSmtLanguagePackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theSmtLanguagePackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(SmtLanguagePackage.eNS_URI, theSmtLanguagePackage); + return theSmtLanguagePackage; + } + + /** + * + * + * @generated + */ + public EClass getSMTDocument() + { + return smtDocumentEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTDocument_Input() + { + return (EReference)smtDocumentEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTDocument_Output() + { + return (EReference)smtDocumentEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSMTInput() + { + return smtInputEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTInput_Options() + { + return (EReference)smtInputEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTInput_TypeDeclarations() + { + return (EReference)smtInputEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getSMTInput_FunctionDeclarations() + { + return (EReference)smtInputEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getSMTInput_FunctionDefinition() + { + return (EReference)smtInputEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getSMTInput_Assertions() + { + return (EReference)smtInputEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getSMTInput_SatCommand() + { + return (EReference)smtInputEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getSMTInput_GetModelCommand() + { + return (EReference)smtInputEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EClass getSMTOutput() + { + return smtOutputEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTOutput_SatResult() + { + return (EReference)smtOutputEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTOutput_GetModelResult() + { + return (EReference)smtOutputEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getSMTOutput_Statistics() + { + return (EReference)smtOutputEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getSMTOption() + { + return smtOptionEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSMTOption_Name() + { + return (EAttribute)smtOptionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTOption_Value() + { + return (EReference)smtOptionEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSMTType() + { + return smtTypeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSMTType_Name() + { + return (EAttribute)smtTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTEnumLiteral() + { + return smtEnumLiteralEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTEnumeratedTypeDeclaration() + { + return smtEnumeratedTypeDeclarationEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTEnumeratedTypeDeclaration_Elements() + { + return (EReference)smtEnumeratedTypeDeclarationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTSetTypeDeclaration() + { + return smtSetTypeDeclarationEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTTypeReference() + { + return smtTypeReferenceEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTComplexTypeReference() + { + return smtComplexTypeReferenceEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTComplexTypeReference_Referred() + { + return (EReference)smtComplexTypeReferenceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTPrimitiveTypeReference() + { + return smtPrimitiveTypeReferenceEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTIntTypeReference() + { + return smtIntTypeReferenceEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTBoolTypeReference() + { + return smtBoolTypeReferenceEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTRealTypeReference() + { + return smtRealTypeReferenceEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTFunctionDeclaration() + { + return smtFunctionDeclarationEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTFunctionDeclaration_Parameters() + { + return (EReference)smtFunctionDeclarationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTFunctionDeclaration_Range() + { + return (EReference)smtFunctionDeclarationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSMTFunctionDefinition() + { + return smtFunctionDefinitionEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTFunctionDefinition_Parameters() + { + return (EReference)smtFunctionDefinitionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTFunctionDefinition_Range() + { + return (EReference)smtFunctionDefinitionEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getSMTFunctionDefinition_Value() + { + return (EReference)smtFunctionDefinitionEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getSMTTerm() + { + return smtTermEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTSymbolicDeclaration() + { + return smtSymbolicDeclarationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSMTSymbolicDeclaration_Name() + { + return (EAttribute)smtSymbolicDeclarationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTSymbolicValue() + { + return smtSymbolicValueEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTSymbolicValue_SymbolicReference() + { + return (EReference)smtSymbolicValueEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTSymbolicValue_ParameterSubstitutions() + { + return (EReference)smtSymbolicValueEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSMTAtomicTerm() + { + return smtAtomicTermEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTIntLiteral() + { + return smtIntLiteralEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSMTIntLiteral_Value() + { + return (EAttribute)smtIntLiteralEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTBoolLiteral() + { + return smtBoolLiteralEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSMTBoolLiteral_Value() + { + return (EAttribute)smtBoolLiteralEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTRealLiteral() + { + return smtRealLiteralEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSMTRealLiteral_Value() + { + return (EAttribute)smtRealLiteralEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTSortedVariable() + { + return smtSortedVariableEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTSortedVariable_Range() + { + return (EReference)smtSortedVariableEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTQuantifiedExpression() + { + return smtQuantifiedExpressionEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTQuantifiedExpression_QuantifiedVariables() + { + return (EReference)smtQuantifiedExpressionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTQuantifiedExpression_Expression() + { + return (EReference)smtQuantifiedExpressionEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getSMTQuantifiedExpression_Pattern() + { + return (EReference)smtQuantifiedExpressionEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getSMTExists() + { + return smtExistsEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTForall() + { + return smtForallEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTBoolOperation() + { + return smtBoolOperationEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTAnd() + { + return smtAndEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTAnd_Operands() + { + return (EReference)smtAndEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTOr() + { + return smtOrEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTOr_Operands() + { + return (EReference)smtOrEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTImpl() + { + return smtImplEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTImpl_LeftOperand() + { + return (EReference)smtImplEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTImpl_RightOperand() + { + return (EReference)smtImplEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSMTNot() + { + return smtNotEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTNot_Operand() + { + return (EReference)smtNotEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTIff() + { + return smtIffEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTIff_LeftOperand() + { + return (EReference)smtIffEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTIff_RightOperand() + { + return (EReference)smtIffEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSMTITE() + { + return smtiteEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTITE_Condition() + { + return (EReference)smtiteEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTITE_If() + { + return (EReference)smtiteEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getSMTITE_Else() + { + return (EReference)smtiteEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getSMTLet() + { + return smtLetEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTLet_InlineConstantDefinitions() + { + return (EReference)smtLetEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTLet_Term() + { + return (EReference)smtLetEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSMTInlineConstantDefinition() + { + return smtInlineConstantDefinitionEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTInlineConstantDefinition_Definition() + { + return (EReference)smtInlineConstantDefinitionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTRelation() + { + return smtRelationEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTEquals() + { + return smtEqualsEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTEquals_LeftOperand() + { + return (EReference)smtEqualsEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTEquals_RightOperand() + { + return (EReference)smtEqualsEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSMTDistinct() + { + return smtDistinctEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTDistinct_Operands() + { + return (EReference)smtDistinctEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTLT() + { + return smtltEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTLT_LeftOperand() + { + return (EReference)smtltEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTLT_RightOperand() + { + return (EReference)smtltEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSMTMT() + { + return smtmtEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTMT_LeftOperand() + { + return (EReference)smtmtEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTMT_RightOperand() + { + return (EReference)smtmtEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSMTLEQ() + { + return smtleqEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTLEQ_LeftOperand() + { + return (EReference)smtleqEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTLEQ_RightOperand() + { + return (EReference)smtleqEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSMTMEQ() + { + return smtmeqEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTMEQ_LeftOperand() + { + return (EReference)smtmeqEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTMEQ_RightOperand() + { + return (EReference)smtmeqEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSMTIntOperation() + { + return smtIntOperationEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTIntOperation_LeftOperand() + { + return (EReference)smtIntOperationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTIntOperation_RightOperand() + { + return (EReference)smtIntOperationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSMTPlus() + { + return smtPlusEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTMinus() + { + return smtMinusEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTMultiply() + { + return smtMultiplyEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTDivison() + { + return smtDivisonEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTDiv() + { + return smtDivEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTMod() + { + return smtModEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTAssertion() + { + return smtAssertionEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTAssertion_Value() + { + return (EReference)smtAssertionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTCardinalityConstraint() + { + return smtCardinalityConstraintEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTCardinalityConstraint_Type() + { + return (EReference)smtCardinalityConstraintEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTCardinalityConstraint_Elements() + { + return (EReference)smtCardinalityConstraintEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSMTSatCommand() + { + return smtSatCommandEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTSimpleSatCommand() + { + return smtSimpleSatCommandEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTComplexSatCommand() + { + return smtComplexSatCommandEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTComplexSatCommand_Method() + { + return (EReference)smtComplexSatCommandEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTGetModelCommand() + { + return smtGetModelCommandEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTReasoningTactic() + { + return smtReasoningTacticEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTBuiltinTactic() + { + return smtBuiltinTacticEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSMTBuiltinTactic_Name() + { + return (EAttribute)smtBuiltinTacticEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTReasoningCombinator() + { + return smtReasoningCombinatorEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTAndThenCombinator() + { + return smtAndThenCombinatorEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTAndThenCombinator_Tactics() + { + return (EReference)smtAndThenCombinatorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTOrElseCombinator() + { + return smtOrElseCombinatorEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTOrElseCombinator_Tactics() + { + return (EReference)smtOrElseCombinatorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTParOrCombinator() + { + return smtParOrCombinatorEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTParOrCombinator_Tactics() + { + return (EReference)smtParOrCombinatorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTParThenCombinator() + { + return smtParThenCombinatorEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTParThenCombinator_PreProcessingTactic() + { + return (EReference)smtParThenCombinatorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTParThenCombinator_ParalellyPostpricessingTactic() + { + return (EReference)smtParThenCombinatorEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSMTTryForCombinator() + { + return smtTryForCombinatorEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTTryForCombinator_Tactic() + { + return (EReference)smtTryForCombinatorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSMTTryForCombinator_Time() + { + return (EAttribute)smtTryForCombinatorEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSMTIfCombinator() + { + return smtIfCombinatorEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTIfCombinator_Probe() + { + return (EReference)smtIfCombinatorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTIfCombinator_IfTactic() + { + return (EReference)smtIfCombinatorEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getSMTIfCombinator_ElseTactic() + { + return (EReference)smtIfCombinatorEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getSMTWhenCombinator() + { + return smtWhenCombinatorEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTWhenCombinator_Probe() + { + return (EReference)smtWhenCombinatorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTWhenCombinator_Tactic() + { + return (EReference)smtWhenCombinatorEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSMTFailIfCombinator() + { + return smtFailIfCombinatorEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTFailIfCombinator_Probe() + { + return (EReference)smtFailIfCombinatorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTUsingParamCombinator() + { + return smtUsingParamCombinatorEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTUsingParamCombinator_Tactic() + { + return (EReference)smtUsingParamCombinatorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTUsingParamCombinator_Parameters() + { + return (EReference)smtUsingParamCombinatorEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getReasoningProbe() + { + return reasoningProbeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getReasoningProbe_Name() + { + return (EAttribute)reasoningProbeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getReasoningTacticParameter() + { + return reasoningTacticParameterEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getReasoningTacticParameter_Name() + { + return (EAttribute)reasoningTacticParameterEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getReasoningTacticParameter_Value() + { + return (EReference)reasoningTacticParameterEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getSMTResult() + { + return smtResultEClass; + } + + /** + * + * + * @generated + */ + public EClass getSMTErrorResult() + { + return smtErrorResultEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSMTErrorResult_Message() + { + return (EAttribute)smtErrorResultEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTUnsupportedResult() + { + return smtUnsupportedResultEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSMTUnsupportedResult_Command() + { + return (EAttribute)smtUnsupportedResultEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTSatResult() + { + return smtSatResultEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSMTSatResult_Sat() + { + return (EAttribute)smtSatResultEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSMTSatResult_Unsat() + { + return (EAttribute)smtSatResultEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSMTSatResult_Unknown() + { + return (EAttribute)smtSatResultEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getSMTModelResult() + { + return smtModelResultEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTModelResult_NewFunctionDeclarations() + { + return (EReference)smtModelResultEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSMTModelResult_TypeDefinitions() + { + return (EReference)smtModelResultEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getSMTModelResult_NewFunctionDefinitions() + { + return (EReference)smtModelResultEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getSMTStatisticValue() + { + return smtStatisticValueEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSMTStatisticValue_Name() + { + return (EAttribute)smtStatisticValueEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTStatisticIntValue() + { + return smtStatisticIntValueEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSMTStatisticIntValue_Value() + { + return (EAttribute)smtStatisticIntValueEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTStatisticDoubleValue() + { + return smtStatisticDoubleValueEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSMTStatisticDoubleValue_Value() + { + return (EAttribute)smtStatisticDoubleValueEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getSMTStatisticsSection() + { + return smtStatisticsSectionEClass; + } + + /** + * + * + * @generated + */ + public EReference getSMTStatisticsSection_Values() + { + return (EReference)smtStatisticsSectionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public SmtLanguageFactory getSmtLanguageFactory() + { + return (SmtLanguageFactory)getEFactoryInstance(); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void createPackageContents() + { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + smtDocumentEClass = createEClass(SMT_DOCUMENT); + createEReference(smtDocumentEClass, SMT_DOCUMENT__INPUT); + createEReference(smtDocumentEClass, SMT_DOCUMENT__OUTPUT); + + smtInputEClass = createEClass(SMT_INPUT); + createEReference(smtInputEClass, SMT_INPUT__OPTIONS); + createEReference(smtInputEClass, SMT_INPUT__TYPE_DECLARATIONS); + createEReference(smtInputEClass, SMT_INPUT__FUNCTION_DECLARATIONS); + createEReference(smtInputEClass, SMT_INPUT__FUNCTION_DEFINITION); + createEReference(smtInputEClass, SMT_INPUT__ASSERTIONS); + createEReference(smtInputEClass, SMT_INPUT__SAT_COMMAND); + createEReference(smtInputEClass, SMT_INPUT__GET_MODEL_COMMAND); + + smtOutputEClass = createEClass(SMT_OUTPUT); + createEReference(smtOutputEClass, SMT_OUTPUT__SAT_RESULT); + createEReference(smtOutputEClass, SMT_OUTPUT__GET_MODEL_RESULT); + createEReference(smtOutputEClass, SMT_OUTPUT__STATISTICS); + + smtOptionEClass = createEClass(SMT_OPTION); + createEAttribute(smtOptionEClass, SMT_OPTION__NAME); + createEReference(smtOptionEClass, SMT_OPTION__VALUE); + + smtTypeEClass = createEClass(SMT_TYPE); + createEAttribute(smtTypeEClass, SMT_TYPE__NAME); + + smtEnumLiteralEClass = createEClass(SMT_ENUM_LITERAL); + + smtEnumeratedTypeDeclarationEClass = createEClass(SMT_ENUMERATED_TYPE_DECLARATION); + createEReference(smtEnumeratedTypeDeclarationEClass, SMT_ENUMERATED_TYPE_DECLARATION__ELEMENTS); + + smtSetTypeDeclarationEClass = createEClass(SMT_SET_TYPE_DECLARATION); + + smtTypeReferenceEClass = createEClass(SMT_TYPE_REFERENCE); + + smtComplexTypeReferenceEClass = createEClass(SMT_COMPLEX_TYPE_REFERENCE); + createEReference(smtComplexTypeReferenceEClass, SMT_COMPLEX_TYPE_REFERENCE__REFERRED); + + smtPrimitiveTypeReferenceEClass = createEClass(SMT_PRIMITIVE_TYPE_REFERENCE); + + smtIntTypeReferenceEClass = createEClass(SMT_INT_TYPE_REFERENCE); + + smtBoolTypeReferenceEClass = createEClass(SMT_BOOL_TYPE_REFERENCE); + + smtRealTypeReferenceEClass = createEClass(SMT_REAL_TYPE_REFERENCE); + + smtFunctionDeclarationEClass = createEClass(SMT_FUNCTION_DECLARATION); + createEReference(smtFunctionDeclarationEClass, SMT_FUNCTION_DECLARATION__PARAMETERS); + createEReference(smtFunctionDeclarationEClass, SMT_FUNCTION_DECLARATION__RANGE); + + smtFunctionDefinitionEClass = createEClass(SMT_FUNCTION_DEFINITION); + createEReference(smtFunctionDefinitionEClass, SMT_FUNCTION_DEFINITION__PARAMETERS); + createEReference(smtFunctionDefinitionEClass, SMT_FUNCTION_DEFINITION__RANGE); + createEReference(smtFunctionDefinitionEClass, SMT_FUNCTION_DEFINITION__VALUE); + + smtTermEClass = createEClass(SMT_TERM); + + smtSymbolicDeclarationEClass = createEClass(SMT_SYMBOLIC_DECLARATION); + createEAttribute(smtSymbolicDeclarationEClass, SMT_SYMBOLIC_DECLARATION__NAME); + + smtSymbolicValueEClass = createEClass(SMT_SYMBOLIC_VALUE); + createEReference(smtSymbolicValueEClass, SMT_SYMBOLIC_VALUE__SYMBOLIC_REFERENCE); + createEReference(smtSymbolicValueEClass, SMT_SYMBOLIC_VALUE__PARAMETER_SUBSTITUTIONS); + + smtAtomicTermEClass = createEClass(SMT_ATOMIC_TERM); + + smtIntLiteralEClass = createEClass(SMT_INT_LITERAL); + createEAttribute(smtIntLiteralEClass, SMT_INT_LITERAL__VALUE); + + smtBoolLiteralEClass = createEClass(SMT_BOOL_LITERAL); + createEAttribute(smtBoolLiteralEClass, SMT_BOOL_LITERAL__VALUE); + + smtRealLiteralEClass = createEClass(SMT_REAL_LITERAL); + createEAttribute(smtRealLiteralEClass, SMT_REAL_LITERAL__VALUE); + + smtSortedVariableEClass = createEClass(SMT_SORTED_VARIABLE); + createEReference(smtSortedVariableEClass, SMT_SORTED_VARIABLE__RANGE); + + smtQuantifiedExpressionEClass = createEClass(SMT_QUANTIFIED_EXPRESSION); + createEReference(smtQuantifiedExpressionEClass, SMT_QUANTIFIED_EXPRESSION__QUANTIFIED_VARIABLES); + createEReference(smtQuantifiedExpressionEClass, SMT_QUANTIFIED_EXPRESSION__EXPRESSION); + createEReference(smtQuantifiedExpressionEClass, SMT_QUANTIFIED_EXPRESSION__PATTERN); + + smtExistsEClass = createEClass(SMT_EXISTS); + + smtForallEClass = createEClass(SMT_FORALL); + + smtBoolOperationEClass = createEClass(SMT_BOOL_OPERATION); + + smtAndEClass = createEClass(SMT_AND); + createEReference(smtAndEClass, SMT_AND__OPERANDS); + + smtOrEClass = createEClass(SMT_OR); + createEReference(smtOrEClass, SMT_OR__OPERANDS); + + smtImplEClass = createEClass(SMT_IMPL); + createEReference(smtImplEClass, SMT_IMPL__LEFT_OPERAND); + createEReference(smtImplEClass, SMT_IMPL__RIGHT_OPERAND); + + smtNotEClass = createEClass(SMT_NOT); + createEReference(smtNotEClass, SMT_NOT__OPERAND); + + smtIffEClass = createEClass(SMT_IFF); + createEReference(smtIffEClass, SMT_IFF__LEFT_OPERAND); + createEReference(smtIffEClass, SMT_IFF__RIGHT_OPERAND); + + smtiteEClass = createEClass(SMTITE); + createEReference(smtiteEClass, SMTITE__CONDITION); + createEReference(smtiteEClass, SMTITE__IF); + createEReference(smtiteEClass, SMTITE__ELSE); + + smtLetEClass = createEClass(SMT_LET); + createEReference(smtLetEClass, SMT_LET__INLINE_CONSTANT_DEFINITIONS); + createEReference(smtLetEClass, SMT_LET__TERM); + + smtInlineConstantDefinitionEClass = createEClass(SMT_INLINE_CONSTANT_DEFINITION); + createEReference(smtInlineConstantDefinitionEClass, SMT_INLINE_CONSTANT_DEFINITION__DEFINITION); + + smtRelationEClass = createEClass(SMT_RELATION); + + smtEqualsEClass = createEClass(SMT_EQUALS); + createEReference(smtEqualsEClass, SMT_EQUALS__LEFT_OPERAND); + createEReference(smtEqualsEClass, SMT_EQUALS__RIGHT_OPERAND); + + smtDistinctEClass = createEClass(SMT_DISTINCT); + createEReference(smtDistinctEClass, SMT_DISTINCT__OPERANDS); + + smtltEClass = createEClass(SMTLT); + createEReference(smtltEClass, SMTLT__LEFT_OPERAND); + createEReference(smtltEClass, SMTLT__RIGHT_OPERAND); + + smtmtEClass = createEClass(SMTMT); + createEReference(smtmtEClass, SMTMT__LEFT_OPERAND); + createEReference(smtmtEClass, SMTMT__RIGHT_OPERAND); + + smtleqEClass = createEClass(SMTLEQ); + createEReference(smtleqEClass, SMTLEQ__LEFT_OPERAND); + createEReference(smtleqEClass, SMTLEQ__RIGHT_OPERAND); + + smtmeqEClass = createEClass(SMTMEQ); + createEReference(smtmeqEClass, SMTMEQ__LEFT_OPERAND); + createEReference(smtmeqEClass, SMTMEQ__RIGHT_OPERAND); + + smtIntOperationEClass = createEClass(SMT_INT_OPERATION); + createEReference(smtIntOperationEClass, SMT_INT_OPERATION__LEFT_OPERAND); + createEReference(smtIntOperationEClass, SMT_INT_OPERATION__RIGHT_OPERAND); + + smtPlusEClass = createEClass(SMT_PLUS); + + smtMinusEClass = createEClass(SMT_MINUS); + + smtMultiplyEClass = createEClass(SMT_MULTIPLY); + + smtDivisonEClass = createEClass(SMT_DIVISON); + + smtDivEClass = createEClass(SMT_DIV); + + smtModEClass = createEClass(SMT_MOD); + + smtAssertionEClass = createEClass(SMT_ASSERTION); + createEReference(smtAssertionEClass, SMT_ASSERTION__VALUE); + + smtCardinalityConstraintEClass = createEClass(SMT_CARDINALITY_CONSTRAINT); + createEReference(smtCardinalityConstraintEClass, SMT_CARDINALITY_CONSTRAINT__TYPE); + createEReference(smtCardinalityConstraintEClass, SMT_CARDINALITY_CONSTRAINT__ELEMENTS); + + smtSatCommandEClass = createEClass(SMT_SAT_COMMAND); + + smtSimpleSatCommandEClass = createEClass(SMT_SIMPLE_SAT_COMMAND); + + smtComplexSatCommandEClass = createEClass(SMT_COMPLEX_SAT_COMMAND); + createEReference(smtComplexSatCommandEClass, SMT_COMPLEX_SAT_COMMAND__METHOD); + + smtGetModelCommandEClass = createEClass(SMT_GET_MODEL_COMMAND); + + smtReasoningTacticEClass = createEClass(SMT_REASONING_TACTIC); + + smtBuiltinTacticEClass = createEClass(SMT_BUILTIN_TACTIC); + createEAttribute(smtBuiltinTacticEClass, SMT_BUILTIN_TACTIC__NAME); + + smtReasoningCombinatorEClass = createEClass(SMT_REASONING_COMBINATOR); + + smtAndThenCombinatorEClass = createEClass(SMT_AND_THEN_COMBINATOR); + createEReference(smtAndThenCombinatorEClass, SMT_AND_THEN_COMBINATOR__TACTICS); + + smtOrElseCombinatorEClass = createEClass(SMT_OR_ELSE_COMBINATOR); + createEReference(smtOrElseCombinatorEClass, SMT_OR_ELSE_COMBINATOR__TACTICS); + + smtParOrCombinatorEClass = createEClass(SMT_PAR_OR_COMBINATOR); + createEReference(smtParOrCombinatorEClass, SMT_PAR_OR_COMBINATOR__TACTICS); + + smtParThenCombinatorEClass = createEClass(SMT_PAR_THEN_COMBINATOR); + createEReference(smtParThenCombinatorEClass, SMT_PAR_THEN_COMBINATOR__PRE_PROCESSING_TACTIC); + createEReference(smtParThenCombinatorEClass, SMT_PAR_THEN_COMBINATOR__PARALELLY_POSTPRICESSING_TACTIC); + + smtTryForCombinatorEClass = createEClass(SMT_TRY_FOR_COMBINATOR); + createEReference(smtTryForCombinatorEClass, SMT_TRY_FOR_COMBINATOR__TACTIC); + createEAttribute(smtTryForCombinatorEClass, SMT_TRY_FOR_COMBINATOR__TIME); + + smtIfCombinatorEClass = createEClass(SMT_IF_COMBINATOR); + createEReference(smtIfCombinatorEClass, SMT_IF_COMBINATOR__PROBE); + createEReference(smtIfCombinatorEClass, SMT_IF_COMBINATOR__IF_TACTIC); + createEReference(smtIfCombinatorEClass, SMT_IF_COMBINATOR__ELSE_TACTIC); + + smtWhenCombinatorEClass = createEClass(SMT_WHEN_COMBINATOR); + createEReference(smtWhenCombinatorEClass, SMT_WHEN_COMBINATOR__PROBE); + createEReference(smtWhenCombinatorEClass, SMT_WHEN_COMBINATOR__TACTIC); + + smtFailIfCombinatorEClass = createEClass(SMT_FAIL_IF_COMBINATOR); + createEReference(smtFailIfCombinatorEClass, SMT_FAIL_IF_COMBINATOR__PROBE); + + smtUsingParamCombinatorEClass = createEClass(SMT_USING_PARAM_COMBINATOR); + createEReference(smtUsingParamCombinatorEClass, SMT_USING_PARAM_COMBINATOR__TACTIC); + createEReference(smtUsingParamCombinatorEClass, SMT_USING_PARAM_COMBINATOR__PARAMETERS); + + reasoningProbeEClass = createEClass(REASONING_PROBE); + createEAttribute(reasoningProbeEClass, REASONING_PROBE__NAME); + + reasoningTacticParameterEClass = createEClass(REASONING_TACTIC_PARAMETER); + createEAttribute(reasoningTacticParameterEClass, REASONING_TACTIC_PARAMETER__NAME); + createEReference(reasoningTacticParameterEClass, REASONING_TACTIC_PARAMETER__VALUE); + + smtResultEClass = createEClass(SMT_RESULT); + + smtErrorResultEClass = createEClass(SMT_ERROR_RESULT); + createEAttribute(smtErrorResultEClass, SMT_ERROR_RESULT__MESSAGE); + + smtUnsupportedResultEClass = createEClass(SMT_UNSUPPORTED_RESULT); + createEAttribute(smtUnsupportedResultEClass, SMT_UNSUPPORTED_RESULT__COMMAND); + + smtSatResultEClass = createEClass(SMT_SAT_RESULT); + createEAttribute(smtSatResultEClass, SMT_SAT_RESULT__SAT); + createEAttribute(smtSatResultEClass, SMT_SAT_RESULT__UNSAT); + createEAttribute(smtSatResultEClass, SMT_SAT_RESULT__UNKNOWN); + + smtModelResultEClass = createEClass(SMT_MODEL_RESULT); + createEReference(smtModelResultEClass, SMT_MODEL_RESULT__NEW_FUNCTION_DECLARATIONS); + createEReference(smtModelResultEClass, SMT_MODEL_RESULT__TYPE_DEFINITIONS); + createEReference(smtModelResultEClass, SMT_MODEL_RESULT__NEW_FUNCTION_DEFINITIONS); + + smtStatisticValueEClass = createEClass(SMT_STATISTIC_VALUE); + createEAttribute(smtStatisticValueEClass, SMT_STATISTIC_VALUE__NAME); + + smtStatisticIntValueEClass = createEClass(SMT_STATISTIC_INT_VALUE); + createEAttribute(smtStatisticIntValueEClass, SMT_STATISTIC_INT_VALUE__VALUE); + + smtStatisticDoubleValueEClass = createEClass(SMT_STATISTIC_DOUBLE_VALUE); + createEAttribute(smtStatisticDoubleValueEClass, SMT_STATISTIC_DOUBLE_VALUE__VALUE); + + smtStatisticsSectionEClass = createEClass(SMT_STATISTICS_SECTION); + createEReference(smtStatisticsSectionEClass, SMT_STATISTICS_SECTION__VALUES); + } + + /** + * + * + * @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. + * + * + * @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 + smtEnumLiteralEClass.getESuperTypes().add(this.getSMTSymbolicDeclaration()); + smtEnumeratedTypeDeclarationEClass.getESuperTypes().add(this.getSMTType()); + smtSetTypeDeclarationEClass.getESuperTypes().add(this.getSMTType()); + smtComplexTypeReferenceEClass.getESuperTypes().add(this.getSMTTypeReference()); + smtPrimitiveTypeReferenceEClass.getESuperTypes().add(this.getSMTTypeReference()); + smtIntTypeReferenceEClass.getESuperTypes().add(this.getSMTPrimitiveTypeReference()); + smtBoolTypeReferenceEClass.getESuperTypes().add(this.getSMTPrimitiveTypeReference()); + smtRealTypeReferenceEClass.getESuperTypes().add(this.getSMTPrimitiveTypeReference()); + smtFunctionDeclarationEClass.getESuperTypes().add(this.getSMTSymbolicDeclaration()); + smtFunctionDefinitionEClass.getESuperTypes().add(this.getSMTSymbolicDeclaration()); + smtSymbolicValueEClass.getESuperTypes().add(this.getSMTTerm()); + smtAtomicTermEClass.getESuperTypes().add(this.getSMTTerm()); + smtIntLiteralEClass.getESuperTypes().add(this.getSMTAtomicTerm()); + smtBoolLiteralEClass.getESuperTypes().add(this.getSMTAtomicTerm()); + smtRealLiteralEClass.getESuperTypes().add(this.getSMTAtomicTerm()); + smtSortedVariableEClass.getESuperTypes().add(this.getSMTSymbolicDeclaration()); + smtQuantifiedExpressionEClass.getESuperTypes().add(this.getSMTTerm()); + smtExistsEClass.getESuperTypes().add(this.getSMTQuantifiedExpression()); + smtForallEClass.getESuperTypes().add(this.getSMTQuantifiedExpression()); + smtBoolOperationEClass.getESuperTypes().add(this.getSMTTerm()); + smtAndEClass.getESuperTypes().add(this.getSMTBoolOperation()); + smtOrEClass.getESuperTypes().add(this.getSMTBoolOperation()); + smtImplEClass.getESuperTypes().add(this.getSMTBoolOperation()); + smtNotEClass.getESuperTypes().add(this.getSMTBoolOperation()); + smtIffEClass.getESuperTypes().add(this.getSMTBoolOperation()); + smtiteEClass.getESuperTypes().add(this.getSMTTerm()); + smtLetEClass.getESuperTypes().add(this.getSMTTerm()); + smtInlineConstantDefinitionEClass.getESuperTypes().add(this.getSMTSymbolicDeclaration()); + smtRelationEClass.getESuperTypes().add(this.getSMTTerm()); + smtEqualsEClass.getESuperTypes().add(this.getSMTRelation()); + smtDistinctEClass.getESuperTypes().add(this.getSMTRelation()); + smtltEClass.getESuperTypes().add(this.getSMTRelation()); + smtmtEClass.getESuperTypes().add(this.getSMTRelation()); + smtleqEClass.getESuperTypes().add(this.getSMTRelation()); + smtmeqEClass.getESuperTypes().add(this.getSMTRelation()); + smtIntOperationEClass.getESuperTypes().add(this.getSMTTerm()); + smtPlusEClass.getESuperTypes().add(this.getSMTIntOperation()); + smtMinusEClass.getESuperTypes().add(this.getSMTIntOperation()); + smtMultiplyEClass.getESuperTypes().add(this.getSMTIntOperation()); + smtDivisonEClass.getESuperTypes().add(this.getSMTIntOperation()); + smtDivEClass.getESuperTypes().add(this.getSMTIntOperation()); + smtModEClass.getESuperTypes().add(this.getSMTIntOperation()); + smtSimpleSatCommandEClass.getESuperTypes().add(this.getSMTSatCommand()); + smtComplexSatCommandEClass.getESuperTypes().add(this.getSMTSatCommand()); + smtBuiltinTacticEClass.getESuperTypes().add(this.getSMTReasoningTactic()); + smtReasoningCombinatorEClass.getESuperTypes().add(this.getSMTReasoningTactic()); + smtAndThenCombinatorEClass.getESuperTypes().add(this.getSMTReasoningCombinator()); + smtOrElseCombinatorEClass.getESuperTypes().add(this.getSMTReasoningCombinator()); + smtParOrCombinatorEClass.getESuperTypes().add(this.getSMTReasoningCombinator()); + smtParThenCombinatorEClass.getESuperTypes().add(this.getSMTReasoningCombinator()); + smtTryForCombinatorEClass.getESuperTypes().add(this.getSMTReasoningCombinator()); + smtIfCombinatorEClass.getESuperTypes().add(this.getSMTReasoningCombinator()); + smtWhenCombinatorEClass.getESuperTypes().add(this.getSMTReasoningCombinator()); + smtFailIfCombinatorEClass.getESuperTypes().add(this.getSMTReasoningCombinator()); + smtUsingParamCombinatorEClass.getESuperTypes().add(this.getSMTReasoningCombinator()); + smtErrorResultEClass.getESuperTypes().add(this.getSMTResult()); + smtUnsupportedResultEClass.getESuperTypes().add(this.getSMTResult()); + smtSatResultEClass.getESuperTypes().add(this.getSMTResult()); + smtModelResultEClass.getESuperTypes().add(this.getSMTResult()); + smtStatisticIntValueEClass.getESuperTypes().add(this.getSMTStatisticValue()); + smtStatisticDoubleValueEClass.getESuperTypes().add(this.getSMTStatisticValue()); + + // Initialize classes and features; add operations and parameters + initEClass(smtDocumentEClass, SMTDocument.class, "SMTDocument", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTDocument_Input(), this.getSMTInput(), null, "input", null, 0, 1, SMTDocument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTDocument_Output(), this.getSMTOutput(), null, "output", null, 0, 1, SMTDocument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtInputEClass, SMTInput.class, "SMTInput", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTInput_Options(), this.getSMTOption(), null, "options", null, 0, -1, SMTInput.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTInput_TypeDeclarations(), this.getSMTType(), null, "typeDeclarations", null, 0, -1, SMTInput.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTInput_FunctionDeclarations(), this.getSMTFunctionDeclaration(), null, "functionDeclarations", null, 0, -1, SMTInput.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTInput_FunctionDefinition(), this.getSMTFunctionDefinition(), null, "functionDefinition", null, 0, -1, SMTInput.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTInput_Assertions(), this.getSMTAssertion(), null, "assertions", null, 0, -1, SMTInput.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTInput_SatCommand(), this.getSMTSatCommand(), null, "satCommand", null, 0, 1, SMTInput.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTInput_GetModelCommand(), this.getSMTGetModelCommand(), null, "getModelCommand", null, 0, 1, SMTInput.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtOutputEClass, SMTOutput.class, "SMTOutput", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTOutput_SatResult(), this.getSMTResult(), null, "satResult", null, 0, 1, SMTOutput.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTOutput_GetModelResult(), this.getSMTResult(), null, "getModelResult", null, 0, 1, SMTOutput.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTOutput_Statistics(), this.getSMTStatisticsSection(), null, "statistics", null, 0, 1, SMTOutput.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtOptionEClass, SMTOption.class, "SMTOption", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSMTOption_Name(), ecorePackage.getEString(), "name", null, 0, 1, SMTOption.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTOption_Value(), this.getSMTAtomicTerm(), null, "value", null, 0, 1, SMTOption.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtTypeEClass, SMTType.class, "SMTType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSMTType_Name(), ecorePackage.getEString(), "name", null, 0, 1, SMTType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtEnumLiteralEClass, SMTEnumLiteral.class, "SMTEnumLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtEnumeratedTypeDeclarationEClass, SMTEnumeratedTypeDeclaration.class, "SMTEnumeratedTypeDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTEnumeratedTypeDeclaration_Elements(), this.getSMTEnumLiteral(), null, "elements", null, 0, -1, SMTEnumeratedTypeDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtSetTypeDeclarationEClass, SMTSetTypeDeclaration.class, "SMTSetTypeDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtTypeReferenceEClass, SMTTypeReference.class, "SMTTypeReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtComplexTypeReferenceEClass, SMTComplexTypeReference.class, "SMTComplexTypeReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTComplexTypeReference_Referred(), this.getSMTType(), null, "referred", null, 0, 1, SMTComplexTypeReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtPrimitiveTypeReferenceEClass, SMTPrimitiveTypeReference.class, "SMTPrimitiveTypeReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtIntTypeReferenceEClass, SMTIntTypeReference.class, "SMTIntTypeReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtBoolTypeReferenceEClass, SMTBoolTypeReference.class, "SMTBoolTypeReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtRealTypeReferenceEClass, SMTRealTypeReference.class, "SMTRealTypeReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtFunctionDeclarationEClass, SMTFunctionDeclaration.class, "SMTFunctionDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTFunctionDeclaration_Parameters(), this.getSMTTypeReference(), null, "parameters", null, 0, -1, SMTFunctionDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTFunctionDeclaration_Range(), this.getSMTTypeReference(), null, "range", null, 0, 1, SMTFunctionDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtFunctionDefinitionEClass, SMTFunctionDefinition.class, "SMTFunctionDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTFunctionDefinition_Parameters(), this.getSMTSortedVariable(), null, "parameters", null, 0, -1, SMTFunctionDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTFunctionDefinition_Range(), this.getSMTTypeReference(), null, "range", null, 0, 1, SMTFunctionDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTFunctionDefinition_Value(), this.getSMTTerm(), null, "value", null, 0, 1, SMTFunctionDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtTermEClass, SMTTerm.class, "SMTTerm", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtSymbolicDeclarationEClass, SMTSymbolicDeclaration.class, "SMTSymbolicDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSMTSymbolicDeclaration_Name(), ecorePackage.getEString(), "name", null, 0, 1, SMTSymbolicDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtSymbolicValueEClass, SMTSymbolicValue.class, "SMTSymbolicValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTSymbolicValue_SymbolicReference(), this.getSMTSymbolicDeclaration(), null, "symbolicReference", null, 0, 1, SMTSymbolicValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTSymbolicValue_ParameterSubstitutions(), this.getSMTTerm(), null, "parameterSubstitutions", null, 0, -1, SMTSymbolicValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtAtomicTermEClass, SMTAtomicTerm.class, "SMTAtomicTerm", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtIntLiteralEClass, SMTIntLiteral.class, "SMTIntLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSMTIntLiteral_Value(), ecorePackage.getEInt(), "value", null, 0, 1, SMTIntLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtBoolLiteralEClass, SMTBoolLiteral.class, "SMTBoolLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSMTBoolLiteral_Value(), ecorePackage.getEBoolean(), "value", null, 0, 1, SMTBoolLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtRealLiteralEClass, SMTRealLiteral.class, "SMTRealLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSMTRealLiteral_Value(), ecorePackage.getEBigDecimal(), "value", null, 0, 1, SMTRealLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtSortedVariableEClass, SMTSortedVariable.class, "SMTSortedVariable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTSortedVariable_Range(), this.getSMTTypeReference(), null, "range", null, 0, 1, SMTSortedVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtQuantifiedExpressionEClass, SMTQuantifiedExpression.class, "SMTQuantifiedExpression", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTQuantifiedExpression_QuantifiedVariables(), this.getSMTSortedVariable(), null, "quantifiedVariables", null, 0, -1, SMTQuantifiedExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTQuantifiedExpression_Expression(), this.getSMTTerm(), null, "expression", null, 0, 1, SMTQuantifiedExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTQuantifiedExpression_Pattern(), this.getSMTTerm(), null, "pattern", null, 0, 1, SMTQuantifiedExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtExistsEClass, SMTExists.class, "SMTExists", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtForallEClass, SMTForall.class, "SMTForall", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtBoolOperationEClass, SMTBoolOperation.class, "SMTBoolOperation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtAndEClass, SMTAnd.class, "SMTAnd", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTAnd_Operands(), this.getSMTTerm(), null, "operands", null, 0, -1, SMTAnd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtOrEClass, SMTOr.class, "SMTOr", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTOr_Operands(), this.getSMTTerm(), null, "operands", null, 0, -1, SMTOr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtImplEClass, SMTImpl.class, "SMTImpl", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTImpl_LeftOperand(), this.getSMTTerm(), null, "leftOperand", null, 0, 1, SMTImpl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTImpl_RightOperand(), this.getSMTTerm(), null, "rightOperand", null, 0, 1, SMTImpl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtNotEClass, SMTNot.class, "SMTNot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTNot_Operand(), this.getSMTTerm(), null, "operand", null, 0, 1, SMTNot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtIffEClass, SMTIff.class, "SMTIff", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTIff_LeftOperand(), this.getSMTTerm(), null, "leftOperand", null, 0, 1, SMTIff.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTIff_RightOperand(), this.getSMTTerm(), null, "rightOperand", null, 0, 1, SMTIff.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtiteEClass, hu.bme.mit.inf.dslreasoner.smtLanguage.SMTITE.class, "SMTITE", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTITE_Condition(), this.getSMTTerm(), null, "condition", null, 0, 1, hu.bme.mit.inf.dslreasoner.smtLanguage.SMTITE.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTITE_If(), this.getSMTTerm(), null, "if", null, 0, 1, hu.bme.mit.inf.dslreasoner.smtLanguage.SMTITE.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTITE_Else(), this.getSMTTerm(), null, "else", null, 0, 1, hu.bme.mit.inf.dslreasoner.smtLanguage.SMTITE.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtLetEClass, SMTLet.class, "SMTLet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTLet_InlineConstantDefinitions(), this.getSMTInlineConstantDefinition(), null, "inlineConstantDefinitions", null, 0, -1, SMTLet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTLet_Term(), this.getSMTTerm(), null, "term", null, 0, 1, SMTLet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtInlineConstantDefinitionEClass, SMTInlineConstantDefinition.class, "SMTInlineConstantDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTInlineConstantDefinition_Definition(), this.getSMTTerm(), null, "definition", null, 0, 1, SMTInlineConstantDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtRelationEClass, SMTRelation.class, "SMTRelation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtEqualsEClass, SMTEquals.class, "SMTEquals", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTEquals_LeftOperand(), this.getSMTTerm(), null, "leftOperand", null, 0, 1, SMTEquals.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTEquals_RightOperand(), this.getSMTTerm(), null, "rightOperand", null, 0, 1, SMTEquals.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtDistinctEClass, SMTDistinct.class, "SMTDistinct", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTDistinct_Operands(), this.getSMTTerm(), null, "operands", null, 0, -1, SMTDistinct.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtltEClass, hu.bme.mit.inf.dslreasoner.smtLanguage.SMTLT.class, "SMTLT", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTLT_LeftOperand(), this.getSMTTerm(), null, "leftOperand", null, 0, 1, hu.bme.mit.inf.dslreasoner.smtLanguage.SMTLT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTLT_RightOperand(), this.getSMTTerm(), null, "rightOperand", null, 0, 1, hu.bme.mit.inf.dslreasoner.smtLanguage.SMTLT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtmtEClass, hu.bme.mit.inf.dslreasoner.smtLanguage.SMTMT.class, "SMTMT", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTMT_LeftOperand(), this.getSMTTerm(), null, "leftOperand", null, 0, 1, hu.bme.mit.inf.dslreasoner.smtLanguage.SMTMT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTMT_RightOperand(), this.getSMTTerm(), null, "rightOperand", null, 0, 1, hu.bme.mit.inf.dslreasoner.smtLanguage.SMTMT.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtleqEClass, hu.bme.mit.inf.dslreasoner.smtLanguage.SMTLEQ.class, "SMTLEQ", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTLEQ_LeftOperand(), this.getSMTTerm(), null, "leftOperand", null, 0, 1, hu.bme.mit.inf.dslreasoner.smtLanguage.SMTLEQ.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTLEQ_RightOperand(), this.getSMTTerm(), null, "rightOperand", null, 0, 1, hu.bme.mit.inf.dslreasoner.smtLanguage.SMTLEQ.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtmeqEClass, hu.bme.mit.inf.dslreasoner.smtLanguage.SMTMEQ.class, "SMTMEQ", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTMEQ_LeftOperand(), this.getSMTTerm(), null, "leftOperand", null, 0, 1, hu.bme.mit.inf.dslreasoner.smtLanguage.SMTMEQ.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTMEQ_RightOperand(), this.getSMTTerm(), null, "rightOperand", null, 0, 1, hu.bme.mit.inf.dslreasoner.smtLanguage.SMTMEQ.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtIntOperationEClass, SMTIntOperation.class, "SMTIntOperation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTIntOperation_LeftOperand(), this.getSMTTerm(), null, "leftOperand", null, 0, 1, SMTIntOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTIntOperation_RightOperand(), this.getSMTTerm(), null, "rightOperand", null, 0, 1, SMTIntOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtPlusEClass, SMTPlus.class, "SMTPlus", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtMinusEClass, SMTMinus.class, "SMTMinus", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtMultiplyEClass, SMTMultiply.class, "SMTMultiply", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtDivisonEClass, SMTDivison.class, "SMTDivison", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtDivEClass, SMTDiv.class, "SMTDiv", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtModEClass, SMTMod.class, "SMTMod", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtAssertionEClass, SMTAssertion.class, "SMTAssertion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTAssertion_Value(), this.getSMTTerm(), null, "value", null, 0, 1, SMTAssertion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtCardinalityConstraintEClass, SMTCardinalityConstraint.class, "SMTCardinalityConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTCardinalityConstraint_Type(), this.getSMTTypeReference(), null, "type", null, 0, 1, SMTCardinalityConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTCardinalityConstraint_Elements(), this.getSMTSymbolicValue(), null, "elements", null, 0, -1, SMTCardinalityConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtSatCommandEClass, SMTSatCommand.class, "SMTSatCommand", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtSimpleSatCommandEClass, SMTSimpleSatCommand.class, "SMTSimpleSatCommand", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtComplexSatCommandEClass, SMTComplexSatCommand.class, "SMTComplexSatCommand", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTComplexSatCommand_Method(), this.getSMTReasoningTactic(), null, "method", null, 0, 1, SMTComplexSatCommand.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtGetModelCommandEClass, SMTGetModelCommand.class, "SMTGetModelCommand", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtReasoningTacticEClass, SMTReasoningTactic.class, "SMTReasoningTactic", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtBuiltinTacticEClass, SMTBuiltinTactic.class, "SMTBuiltinTactic", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSMTBuiltinTactic_Name(), ecorePackage.getEString(), "name", null, 0, 1, SMTBuiltinTactic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtReasoningCombinatorEClass, SMTReasoningCombinator.class, "SMTReasoningCombinator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtAndThenCombinatorEClass, SMTAndThenCombinator.class, "SMTAndThenCombinator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTAndThenCombinator_Tactics(), this.getSMTReasoningTactic(), null, "tactics", null, 0, -1, SMTAndThenCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtOrElseCombinatorEClass, SMTOrElseCombinator.class, "SMTOrElseCombinator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTOrElseCombinator_Tactics(), this.getSMTReasoningTactic(), null, "tactics", null, 0, -1, SMTOrElseCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtParOrCombinatorEClass, SMTParOrCombinator.class, "SMTParOrCombinator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTParOrCombinator_Tactics(), this.getSMTReasoningTactic(), null, "tactics", null, 0, -1, SMTParOrCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtParThenCombinatorEClass, SMTParThenCombinator.class, "SMTParThenCombinator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTParThenCombinator_PreProcessingTactic(), this.getSMTReasoningTactic(), null, "preProcessingTactic", null, 0, 1, SMTParThenCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTParThenCombinator_ParalellyPostpricessingTactic(), this.getSMTReasoningTactic(), null, "paralellyPostpricessingTactic", null, 0, 1, SMTParThenCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtTryForCombinatorEClass, SMTTryForCombinator.class, "SMTTryForCombinator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTTryForCombinator_Tactic(), this.getSMTReasoningTactic(), null, "tactic", null, 0, 1, SMTTryForCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSMTTryForCombinator_Time(), ecorePackage.getEInt(), "time", null, 0, 1, SMTTryForCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtIfCombinatorEClass, SMTIfCombinator.class, "SMTIfCombinator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTIfCombinator_Probe(), this.getReasoningProbe(), null, "probe", null, 0, 1, SMTIfCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTIfCombinator_IfTactic(), this.getSMTReasoningTactic(), null, "ifTactic", null, 0, 1, SMTIfCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTIfCombinator_ElseTactic(), this.getSMTReasoningTactic(), null, "elseTactic", null, 0, 1, SMTIfCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtWhenCombinatorEClass, SMTWhenCombinator.class, "SMTWhenCombinator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTWhenCombinator_Probe(), this.getReasoningProbe(), null, "probe", null, 0, 1, SMTWhenCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTWhenCombinator_Tactic(), this.getSMTReasoningTactic(), null, "tactic", null, 0, 1, SMTWhenCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtFailIfCombinatorEClass, SMTFailIfCombinator.class, "SMTFailIfCombinator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTFailIfCombinator_Probe(), this.getReasoningProbe(), null, "probe", null, 0, 1, SMTFailIfCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtUsingParamCombinatorEClass, SMTUsingParamCombinator.class, "SMTUsingParamCombinator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTUsingParamCombinator_Tactic(), this.getSMTReasoningTactic(), null, "tactic", null, 0, 1, SMTUsingParamCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTUsingParamCombinator_Parameters(), this.getReasoningTacticParameter(), null, "parameters", null, 0, -1, SMTUsingParamCombinator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(reasoningProbeEClass, ReasoningProbe.class, "ReasoningProbe", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getReasoningProbe_Name(), ecorePackage.getEString(), "name", null, 0, 1, ReasoningProbe.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(reasoningTacticParameterEClass, ReasoningTacticParameter.class, "ReasoningTacticParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getReasoningTacticParameter_Name(), ecorePackage.getEString(), "name", null, 0, 1, ReasoningTacticParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getReasoningTacticParameter_Value(), this.getSMTAtomicTerm(), null, "value", null, 0, 1, ReasoningTacticParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtResultEClass, SMTResult.class, "SMTResult", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(smtErrorResultEClass, SMTErrorResult.class, "SMTErrorResult", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSMTErrorResult_Message(), ecorePackage.getEString(), "message", null, 0, 1, SMTErrorResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtUnsupportedResultEClass, SMTUnsupportedResult.class, "SMTUnsupportedResult", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSMTUnsupportedResult_Command(), ecorePackage.getEString(), "command", null, 0, 1, SMTUnsupportedResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtSatResultEClass, SMTSatResult.class, "SMTSatResult", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSMTSatResult_Sat(), ecorePackage.getEBoolean(), "sat", null, 0, 1, SMTSatResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSMTSatResult_Unsat(), ecorePackage.getEBoolean(), "unsat", null, 0, 1, SMTSatResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSMTSatResult_Unknown(), ecorePackage.getEBoolean(), "unknown", null, 0, 1, SMTSatResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtModelResultEClass, SMTModelResult.class, "SMTModelResult", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTModelResult_NewFunctionDeclarations(), this.getSMTFunctionDeclaration(), null, "newFunctionDeclarations", null, 0, -1, SMTModelResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTModelResult_TypeDefinitions(), this.getSMTCardinalityConstraint(), null, "typeDefinitions", null, 0, -1, SMTModelResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSMTModelResult_NewFunctionDefinitions(), this.getSMTFunctionDefinition(), null, "newFunctionDefinitions", null, 0, -1, SMTModelResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtStatisticValueEClass, SMTStatisticValue.class, "SMTStatisticValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSMTStatisticValue_Name(), ecorePackage.getEString(), "name", null, 0, 1, SMTStatisticValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtStatisticIntValueEClass, SMTStatisticIntValue.class, "SMTStatisticIntValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSMTStatisticIntValue_Value(), ecorePackage.getEInt(), "value", null, 0, 1, SMTStatisticIntValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtStatisticDoubleValueEClass, SMTStatisticDoubleValue.class, "SMTStatisticDoubleValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSMTStatisticDoubleValue_Value(), ecorePackage.getEBigDecimal(), "value", null, 0, 1, SMTStatisticDoubleValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(smtStatisticsSectionEClass, SMTStatisticsSection.class, "SMTStatisticsSection", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSMTStatisticsSection_Values(), this.getSMTStatisticValue(), null, "values", null, 0, -1, SMTStatisticsSection.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); + } + +} //SmtLanguagePackageImpl -- cgit v1.2.3-54-g00ecf