From e3774317421935b8d63e2e0ad08a141853d31908 Mon Sep 17 00:00:00 2001 From: Aren Babikian Date: Mon, 11 Jan 2021 06:42:10 -0500 Subject: first version of the simpleScenario MM+VQL. noRealMatches bug found --- .../simpleScenario/impl/VisionBlockedImpl.java | 158 +++++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/VisionBlockedImpl.java (limited to 'Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/VisionBlockedImpl.java') diff --git a/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/VisionBlockedImpl.java b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/VisionBlockedImpl.java new file mode 100644 index 00000000..88222d67 --- /dev/null +++ b/Domains/traffic.scenarios.simplified/ecore-gen/simpleScenario/impl/VisionBlockedImpl.java @@ -0,0 +1,158 @@ +/** + */ +package simpleScenario.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import simpleScenario.Actor; +import simpleScenario.SimpleScenarioPackage; +import simpleScenario.VisionBlocked; + +/** + * + * An implementation of the model object 'Vision Blocked'. + * + *

+ * The following features are implemented: + *

+ * + * + * @generated + */ +public class VisionBlockedImpl extends SpatialRelationImpl implements VisionBlocked { + /** + * The cached value of the '{@link #getBlockedBy() Blocked By}' reference. + * + * + * @see #getBlockedBy() + * @generated + * @ordered + */ + protected Actor blockedBy; + + /** + * + * + * @generated + */ + protected VisionBlockedImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SimpleScenarioPackage.Literals.VISION_BLOCKED; + } + + /** + * + * + * @generated + */ + @Override + public Actor getBlockedBy() { + if (blockedBy != null && blockedBy.eIsProxy()) { + InternalEObject oldBlockedBy = (InternalEObject)blockedBy; + blockedBy = (Actor)eResolveProxy(oldBlockedBy); + if (blockedBy != oldBlockedBy) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SimpleScenarioPackage.VISION_BLOCKED__BLOCKED_BY, oldBlockedBy, blockedBy)); + } + } + return blockedBy; + } + + /** + * + * + * @generated + */ + public Actor basicGetBlockedBy() { + return blockedBy; + } + + /** + * + * + * @generated + */ + @Override + public void setBlockedBy(Actor newBlockedBy) { + Actor oldBlockedBy = blockedBy; + blockedBy = newBlockedBy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SimpleScenarioPackage.VISION_BLOCKED__BLOCKED_BY, oldBlockedBy, blockedBy)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SimpleScenarioPackage.VISION_BLOCKED__BLOCKED_BY: + if (resolve) return getBlockedBy(); + return basicGetBlockedBy(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SimpleScenarioPackage.VISION_BLOCKED__BLOCKED_BY: + setBlockedBy((Actor)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SimpleScenarioPackage.VISION_BLOCKED__BLOCKED_BY: + setBlockedBy((Actor)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SimpleScenarioPackage.VISION_BLOCKED__BLOCKED_BY: + return blockedBy != null; + } + return super.eIsSet(featureID); + } + +} //VisionBlockedImpl -- cgit v1.2.3-70-g09d2