From dc931c24870432efcd3c3fca4fb6fbd401c70420 Mon Sep 17 00:00:00 2001 From: Aren Babikian Date: Thu, 14 Jan 2021 10:34:59 -0500 Subject: refactor simpleScenario->crossingScenario --- .../crossingScenario/impl/VisionBlockedImpl.java | 158 +++++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 Domains/crossingScenario/ecore-gen/crossingScenario/impl/VisionBlockedImpl.java (limited to 'Domains/crossingScenario/ecore-gen/crossingScenario/impl/VisionBlockedImpl.java') diff --git a/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VisionBlockedImpl.java b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VisionBlockedImpl.java new file mode 100644 index 00000000..169cd57c --- /dev/null +++ b/Domains/crossingScenario/ecore-gen/crossingScenario/impl/VisionBlockedImpl.java @@ -0,0 +1,158 @@ +/** + */ +package crossingScenario.impl; + +import crossingScenario.Actor; +import crossingScenario.CrossingScenarioPackage; +import crossingScenario.VisionBlocked; + +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 '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 CrossingScenarioPackage.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, CrossingScenarioPackage.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, CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY, oldBlockedBy, blockedBy)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CrossingScenarioPackage.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 CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY: + setBlockedBy((Actor)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY: + setBlockedBy((Actor)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CrossingScenarioPackage.VISION_BLOCKED__BLOCKED_BY: + return blockedBy != null; + } + return super.eIsSet(featureID); + } + +} //VisionBlockedImpl -- cgit v1.2.3-54-g00ecf