Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/WrenchImpl.java')
-rw-r--r--extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/WrenchImpl.java139
1 files changed, 55 insertions, 84 deletions
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/WrenchImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/WrenchImpl.java
index dbfdb72135f..c1463a29203 100644
--- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/WrenchImpl.java
+++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/WrenchImpl.java
@@ -1,22 +1,16 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Saadia Dhouib (CEA LIST) saadia.dhouib@cea.fr - Initial API and implementation
- *****************************************************************************/
+/**
+ */
package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl;
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.EObjectImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesPackage;
import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Vector3;
import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Wrench;
@@ -28,21 +22,18 @@ import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTyp
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.WrenchImpl#getForce <em>Force</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.WrenchImpl#getTorque <em>Torque
- * </em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.WrenchImpl#getForce <em>Force</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.WrenchImpl#getTorque <em>Torque</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
-public class WrenchImpl extends EObjectImpl implements Wrench {
-
+public class WrenchImpl extends MinimalEObjectImpl.Container implements Wrench {
/**
* The cached value of the '{@link #getForce() <em>Force</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getForce()
* @generated
* @ordered
@@ -53,7 +44,6 @@ public class WrenchImpl extends EObjectImpl implements Wrench {
* The cached value of the '{@link #getTorque() <em>Torque</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getTorque()
* @generated
* @ordered
@@ -63,7 +53,6 @@ public class WrenchImpl extends EObjectImpl implements Wrench {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected WrenchImpl() {
@@ -73,7 +62,6 @@ public class WrenchImpl extends EObjectImpl implements Wrench {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -84,7 +72,6 @@ public class WrenchImpl extends EObjectImpl implements Wrench {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Vector3 getForce() {
@@ -94,18 +81,14 @@ public class WrenchImpl extends EObjectImpl implements Wrench {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public NotificationChain basicSetForce(Vector3 newForce, NotificationChain msgs) {
Vector3 oldForce = force;
force = newForce;
- if(eNotificationRequired()) {
+ if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.WRENCH__FORCE, oldForce, newForce);
- if(msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
@@ -113,27 +96,25 @@ public class WrenchImpl extends EObjectImpl implements Wrench {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setForce(Vector3 newForce) {
- if(newForce != force) {
+ if (newForce != force) {
NotificationChain msgs = null;
- if(force != null)
+ if (force != null)
msgs = ((InternalEObject)force).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.WRENCH__FORCE, null, msgs);
- if(newForce != null)
+ if (newForce != null)
msgs = ((InternalEObject)newForce).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.WRENCH__FORCE, null, msgs);
msgs = basicSetForce(newForce, msgs);
- if(msgs != null)
- msgs.dispatch();
- } else if(eNotificationRequired())
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.WRENCH__FORCE, newForce, newForce));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Vector3 getTorque() {
@@ -143,18 +124,14 @@ public class WrenchImpl extends EObjectImpl implements Wrench {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public NotificationChain basicSetTorque(Vector3 newTorque, NotificationChain msgs) {
Vector3 oldTorque = torque;
torque = newTorque;
- if(eNotificationRequired()) {
+ if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.WRENCH__TORQUE, oldTorque, newTorque);
- if(msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
@@ -162,36 +139,34 @@ public class WrenchImpl extends EObjectImpl implements Wrench {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setTorque(Vector3 newTorque) {
- if(newTorque != torque) {
+ if (newTorque != torque) {
NotificationChain msgs = null;
- if(torque != null)
+ if (torque != null)
msgs = ((InternalEObject)torque).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.WRENCH__TORQUE, null, msgs);
- if(newTorque != null)
+ if (newTorque != null)
msgs = ((InternalEObject)newTorque).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.WRENCH__TORQUE, null, msgs);
msgs = basicSetTorque(newTorque, msgs);
- if(msgs != null)
- msgs.dispatch();
- } else if(eNotificationRequired())
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.WRENCH__TORQUE, newTorque, newTorque));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch(featureID) {
- case Geometry_datatypesPackage.WRENCH__FORCE:
- return basicSetForce(null, msgs);
- case Geometry_datatypesPackage.WRENCH__TORQUE:
- return basicSetTorque(null, msgs);
+ switch (featureID) {
+ case Geometry_datatypesPackage.WRENCH__FORCE:
+ return basicSetForce(null, msgs);
+ case Geometry_datatypesPackage.WRENCH__TORQUE:
+ return basicSetTorque(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -199,16 +174,15 @@ public class WrenchImpl extends EObjectImpl implements Wrench {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case Geometry_datatypesPackage.WRENCH__FORCE:
- return getForce();
- case Geometry_datatypesPackage.WRENCH__TORQUE:
- return getTorque();
+ switch (featureID) {
+ case Geometry_datatypesPackage.WRENCH__FORCE:
+ return getForce();
+ case Geometry_datatypesPackage.WRENCH__TORQUE:
+ return getTorque();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -216,18 +190,17 @@ public class WrenchImpl extends EObjectImpl implements Wrench {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case Geometry_datatypesPackage.WRENCH__FORCE:
- setForce((Vector3)newValue);
- return;
- case Geometry_datatypesPackage.WRENCH__TORQUE:
- setTorque((Vector3)newValue);
- return;
+ switch (featureID) {
+ case Geometry_datatypesPackage.WRENCH__FORCE:
+ setForce((Vector3)newValue);
+ return;
+ case Geometry_datatypesPackage.WRENCH__TORQUE:
+ setTorque((Vector3)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -235,18 +208,17 @@ public class WrenchImpl extends EObjectImpl implements Wrench {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch(featureID) {
- case Geometry_datatypesPackage.WRENCH__FORCE:
- setForce((Vector3)null);
- return;
- case Geometry_datatypesPackage.WRENCH__TORQUE:
- setTorque((Vector3)null);
- return;
+ switch (featureID) {
+ case Geometry_datatypesPackage.WRENCH__FORCE:
+ setForce((Vector3)null);
+ return;
+ case Geometry_datatypesPackage.WRENCH__TORQUE:
+ setTorque((Vector3)null);
+ return;
}
super.eUnset(featureID);
}
@@ -254,16 +226,15 @@ public class WrenchImpl extends EObjectImpl implements Wrench {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
- case Geometry_datatypesPackage.WRENCH__FORCE:
- return force != null;
- case Geometry_datatypesPackage.WRENCH__TORQUE:
- return torque != null;
+ switch (featureID) {
+ case Geometry_datatypesPackage.WRENCH__FORCE:
+ return force != null;
+ case Geometry_datatypesPackage.WRENCH__TORQUE:
+ return torque != null;
}
return super.eIsSet(featureID);
}

Back to the top