diff options
author | 2020-04-17 00:17:19 +0200 | |
---|---|---|
committer | 2020-04-17 00:17:19 +0200 | |
commit | 67bd5449706f722a0c98c510b3c47e2af41ba487 (patch) | |
tree | 5601b65d9cdcc7a754fe285f7b8dc8de59d94725 /Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/viatra2logic/viatra2logicannotations/impl/TransfomedViatraQueryImpl.java | |
parent | Variable trace added to Viatra2Logic mapping (diff) | |
download | VIATRA-Generator-67bd5449706f722a0c98c510b3c47e2af41ba487.tar.gz VIATRA-Generator-67bd5449706f722a0c98c510b3c47e2af41ba487.tar.zst VIATRA-Generator-67bd5449706f722a0c98c510b3c47e2af41ba487.zip |
variable mapping trace is created after mapping
Diffstat (limited to 'Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/viatra2logic/viatra2logicannotations/impl/TransfomedViatraQueryImpl.java')
-rw-r--r-- | Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/viatra2logic/viatra2logicannotations/impl/TransfomedViatraQueryImpl.java | 62 |
1 files changed, 61 insertions, 1 deletions
diff --git a/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/viatra2logic/viatra2logicannotations/impl/TransfomedViatraQueryImpl.java b/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/viatra2logic/viatra2logicannotations/impl/TransfomedViatraQueryImpl.java index d7f9ff68..469ba336 100644 --- a/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/viatra2logic/viatra2logicannotations/impl/TransfomedViatraQueryImpl.java +++ b/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/ecore-gen/hu/bme/mit/inf/dslreasoner/viatra2logic/viatra2logicannotations/impl/TransfomedViatraQueryImpl.java | |||
@@ -5,11 +5,18 @@ package hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.impl; | |||
5 | import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.impl.RelationAnnotationImpl; | 5 | import hu.bme.mit.inf.dslreasoner.logic.model.logicproblem.impl.RelationAnnotationImpl; |
6 | 6 | ||
7 | import hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.TransfomedViatraQuery; | 7 | import hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.TransfomedViatraQuery; |
8 | import hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.VariableMapping; | ||
8 | import hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.Viatra2LogicAnnotationsPackage; | 9 | import hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.Viatra2LogicAnnotationsPackage; |
9 | 10 | ||
11 | import java.util.Collection; | ||
10 | import org.eclipse.emf.common.notify.Notification; | 12 | import org.eclipse.emf.common.notify.Notification; |
13 | import org.eclipse.emf.common.notify.NotificationChain; | ||
14 | import org.eclipse.emf.common.util.EList; | ||
11 | import org.eclipse.emf.ecore.EClass; | 15 | import org.eclipse.emf.ecore.EClass; |
16 | import org.eclipse.emf.ecore.InternalEObject; | ||
12 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | 17 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
18 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
19 | import org.eclipse.emf.ecore.util.InternalEList; | ||
13 | 20 | ||
14 | /** | 21 | /** |
15 | * <!-- begin-user-doc --> | 22 | * <!-- begin-user-doc --> |
@@ -21,6 +28,7 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; | |||
21 | * <ul> | 28 | * <ul> |
22 | * <li>{@link hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.impl.TransfomedViatraQueryImpl#getPatternFullyQualifiedName <em>Pattern Fully Qualified Name</em>}</li> | 29 | * <li>{@link hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.impl.TransfomedViatraQueryImpl#getPatternFullyQualifiedName <em>Pattern Fully Qualified Name</em>}</li> |
23 | * <li>{@link hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.impl.TransfomedViatraQueryImpl#getPatternPQuery <em>Pattern PQuery</em>}</li> | 30 | * <li>{@link hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.impl.TransfomedViatraQueryImpl#getPatternPQuery <em>Pattern PQuery</em>}</li> |
31 | * <li>{@link hu.bme.mit.inf.dslreasoner.viatra2logic.viatra2logicannotations.impl.TransfomedViatraQueryImpl#getVariableTrace <em>Variable Trace</em>}</li> | ||
24 | * </ul> | 32 | * </ul> |
25 | * | 33 | * |
26 | * @generated | 34 | * @generated |
@@ -64,6 +72,15 @@ public class TransfomedViatraQueryImpl extends RelationAnnotationImpl implements | |||
64 | */ | 72 | */ |
65 | protected Object patternPQuery = PATTERN_PQUERY_EDEFAULT; | 73 | protected Object patternPQuery = PATTERN_PQUERY_EDEFAULT; |
66 | /** | 74 | /** |
75 | * The cached value of the '{@link #getVariableTrace() <em>Variable Trace</em>}' containment reference list. | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @see #getVariableTrace() | ||
79 | * @generated | ||
80 | * @ordered | ||
81 | */ | ||
82 | protected EList<VariableMapping> variableTrace; | ||
83 | /** | ||
67 | * <!-- begin-user-doc --> | 84 | * <!-- begin-user-doc --> |
68 | * <!-- end-user-doc --> | 85 | * <!-- end-user-doc --> |
69 | * @generated | 86 | * @generated |
@@ -87,6 +104,7 @@ public class TransfomedViatraQueryImpl extends RelationAnnotationImpl implements | |||
87 | * <!-- end-user-doc --> | 104 | * <!-- end-user-doc --> |
88 | * @generated | 105 | * @generated |
89 | */ | 106 | */ |
107 | @Override | ||
90 | public String getPatternFullyQualifiedName() { | 108 | public String getPatternFullyQualifiedName() { |
91 | return patternFullyQualifiedName; | 109 | return patternFullyQualifiedName; |
92 | } | 110 | } |
@@ -96,6 +114,7 @@ public class TransfomedViatraQueryImpl extends RelationAnnotationImpl implements | |||
96 | * <!-- end-user-doc --> | 114 | * <!-- end-user-doc --> |
97 | * @generated | 115 | * @generated |
98 | */ | 116 | */ |
117 | @Override | ||
99 | public void setPatternFullyQualifiedName(String newPatternFullyQualifiedName) { | 118 | public void setPatternFullyQualifiedName(String newPatternFullyQualifiedName) { |
100 | String oldPatternFullyQualifiedName = patternFullyQualifiedName; | 119 | String oldPatternFullyQualifiedName = patternFullyQualifiedName; |
101 | patternFullyQualifiedName = newPatternFullyQualifiedName; | 120 | patternFullyQualifiedName = newPatternFullyQualifiedName; |
@@ -108,6 +127,7 @@ public class TransfomedViatraQueryImpl extends RelationAnnotationImpl implements | |||
108 | * <!-- end-user-doc --> | 127 | * <!-- end-user-doc --> |
109 | * @generated | 128 | * @generated |
110 | */ | 129 | */ |
130 | @Override | ||
111 | public Object getPatternPQuery() { | 131 | public Object getPatternPQuery() { |
112 | return patternPQuery; | 132 | return patternPQuery; |
113 | } | 133 | } |
@@ -117,6 +137,7 @@ public class TransfomedViatraQueryImpl extends RelationAnnotationImpl implements | |||
117 | * <!-- end-user-doc --> | 137 | * <!-- end-user-doc --> |
118 | * @generated | 138 | * @generated |
119 | */ | 139 | */ |
140 | @Override | ||
120 | public void setPatternPQuery(Object newPatternPQuery) { | 141 | public void setPatternPQuery(Object newPatternPQuery) { |
121 | Object oldPatternPQuery = patternPQuery; | 142 | Object oldPatternPQuery = patternPQuery; |
122 | patternPQuery = newPatternPQuery; | 143 | patternPQuery = newPatternPQuery; |
@@ -130,12 +151,41 @@ public class TransfomedViatraQueryImpl extends RelationAnnotationImpl implements | |||
130 | * @generated | 151 | * @generated |
131 | */ | 152 | */ |
132 | @Override | 153 | @Override |
154 | public EList<VariableMapping> getVariableTrace() { | ||
155 | if (variableTrace == null) { | ||
156 | variableTrace = new EObjectContainmentEList<VariableMapping>(VariableMapping.class, this, Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY__VARIABLE_TRACE); | ||
157 | } | ||
158 | return variableTrace; | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | @Override | ||
167 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | ||
168 | switch (featureID) { | ||
169 | case Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY__VARIABLE_TRACE: | ||
170 | return ((InternalEList<?>)getVariableTrace()).basicRemove(otherEnd, msgs); | ||
171 | } | ||
172 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | @Override | ||
133 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 181 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
134 | switch (featureID) { | 182 | switch (featureID) { |
135 | case Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY__PATTERN_FULLY_QUALIFIED_NAME: | 183 | case Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY__PATTERN_FULLY_QUALIFIED_NAME: |
136 | return getPatternFullyQualifiedName(); | 184 | return getPatternFullyQualifiedName(); |
137 | case Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY__PATTERN_PQUERY: | 185 | case Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY__PATTERN_PQUERY: |
138 | return getPatternPQuery(); | 186 | return getPatternPQuery(); |
187 | case Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY__VARIABLE_TRACE: | ||
188 | return getVariableTrace(); | ||
139 | } | 189 | } |
140 | return super.eGet(featureID, resolve, coreType); | 190 | return super.eGet(featureID, resolve, coreType); |
141 | } | 191 | } |
@@ -145,6 +195,7 @@ public class TransfomedViatraQueryImpl extends RelationAnnotationImpl implements | |||
145 | * <!-- end-user-doc --> | 195 | * <!-- end-user-doc --> |
146 | * @generated | 196 | * @generated |
147 | */ | 197 | */ |
198 | @SuppressWarnings("unchecked") | ||
148 | @Override | 199 | @Override |
149 | public void eSet(int featureID, Object newValue) { | 200 | public void eSet(int featureID, Object newValue) { |
150 | switch (featureID) { | 201 | switch (featureID) { |
@@ -154,6 +205,10 @@ public class TransfomedViatraQueryImpl extends RelationAnnotationImpl implements | |||
154 | case Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY__PATTERN_PQUERY: | 205 | case Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY__PATTERN_PQUERY: |
155 | setPatternPQuery(newValue); | 206 | setPatternPQuery(newValue); |
156 | return; | 207 | return; |
208 | case Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY__VARIABLE_TRACE: | ||
209 | getVariableTrace().clear(); | ||
210 | getVariableTrace().addAll((Collection<? extends VariableMapping>)newValue); | ||
211 | return; | ||
157 | } | 212 | } |
158 | super.eSet(featureID, newValue); | 213 | super.eSet(featureID, newValue); |
159 | } | 214 | } |
@@ -172,6 +227,9 @@ public class TransfomedViatraQueryImpl extends RelationAnnotationImpl implements | |||
172 | case Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY__PATTERN_PQUERY: | 227 | case Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY__PATTERN_PQUERY: |
173 | setPatternPQuery(PATTERN_PQUERY_EDEFAULT); | 228 | setPatternPQuery(PATTERN_PQUERY_EDEFAULT); |
174 | return; | 229 | return; |
230 | case Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY__VARIABLE_TRACE: | ||
231 | getVariableTrace().clear(); | ||
232 | return; | ||
175 | } | 233 | } |
176 | super.eUnset(featureID); | 234 | super.eUnset(featureID); |
177 | } | 235 | } |
@@ -188,6 +246,8 @@ public class TransfomedViatraQueryImpl extends RelationAnnotationImpl implements | |||
188 | return PATTERN_FULLY_QUALIFIED_NAME_EDEFAULT == null ? patternFullyQualifiedName != null : !PATTERN_FULLY_QUALIFIED_NAME_EDEFAULT.equals(patternFullyQualifiedName); | 246 | return PATTERN_FULLY_QUALIFIED_NAME_EDEFAULT == null ? patternFullyQualifiedName != null : !PATTERN_FULLY_QUALIFIED_NAME_EDEFAULT.equals(patternFullyQualifiedName); |
189 | case Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY__PATTERN_PQUERY: | 247 | case Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY__PATTERN_PQUERY: |
190 | return PATTERN_PQUERY_EDEFAULT == null ? patternPQuery != null : !PATTERN_PQUERY_EDEFAULT.equals(patternPQuery); | 248 | return PATTERN_PQUERY_EDEFAULT == null ? patternPQuery != null : !PATTERN_PQUERY_EDEFAULT.equals(patternPQuery); |
249 | case Viatra2LogicAnnotationsPackage.TRANSFOMED_VIATRA_QUERY__VARIABLE_TRACE: | ||
250 | return variableTrace != null && !variableTrace.isEmpty(); | ||
191 | } | 251 | } |
192 | return super.eIsSet(featureID); | 252 | return super.eIsSet(featureID); |
193 | } | 253 | } |
@@ -201,7 +261,7 @@ public class TransfomedViatraQueryImpl extends RelationAnnotationImpl implements | |||
201 | public String toString() { | 261 | public String toString() { |
202 | if (eIsProxy()) return super.toString(); | 262 | if (eIsProxy()) return super.toString(); |
203 | 263 | ||
204 | StringBuffer result = new StringBuffer(super.toString()); | 264 | StringBuilder result = new StringBuilder(super.toString()); |
205 | result.append(" (patternFullyQualifiedName: "); | 265 | result.append(" (patternFullyQualifiedName: "); |
206 | result.append(patternFullyQualifiedName); | 266 | result.append(patternFullyQualifiedName); |
207 | result.append(", patternPQuery: "); | 267 | result.append(", patternPQuery: "); |