diff options
Diffstat (limited to 'extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl')
23 files changed, 6431 insertions, 6431 deletions
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Geometry_datatypesFactoryImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Geometry_datatypesFactoryImpl.java index b0c0f976846..38cc0f67200 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Geometry_datatypesFactoryImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Geometry_datatypesFactoryImpl.java @@ -1,315 +1,315 @@ -/**
- */
-package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl;
-
-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;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.*;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class Geometry_datatypesFactoryImpl extends EFactoryImpl implements Geometry_datatypesFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static Geometry_datatypesFactory init() {
- try {
- Geometry_datatypesFactory theGeometry_datatypesFactory = (Geometry_datatypesFactory)EPackage.Registry.INSTANCE.getEFactory(Geometry_datatypesPackage.eNS_URI);
- if (theGeometry_datatypesFactory != null) {
- return theGeometry_datatypesFactory;
- }
- }
- catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new Geometry_datatypesFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Geometry_datatypesFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case Geometry_datatypesPackage.POINT: return createPoint();
- case Geometry_datatypesPackage.POINT32: return createPoint32();
- case Geometry_datatypesPackage.POINT_STAMPED: return createPointStamped();
- case Geometry_datatypesPackage.POLYGON: return createPolygon();
- case Geometry_datatypesPackage.POLYGON_STAMPED: return createPolygonStamped();
- case Geometry_datatypesPackage.VECTOR3: return createVector3();
- case Geometry_datatypesPackage.VECTOR3_STAMPED: return createVector3Stamped();
- case Geometry_datatypesPackage.QUATERNION: return createQuaternion();
- case Geometry_datatypesPackage.POSE: return createPose();
- case Geometry_datatypesPackage.POSE_STAMPED: return createPoseStamped();
- case Geometry_datatypesPackage.TWIST_WITH_COVARIANCE: return createTwistWithCovariance();
- case Geometry_datatypesPackage.TWIST: return createTwist();
- case Geometry_datatypesPackage.TWIST_STAMPED: return createTwistStamped();
- case Geometry_datatypesPackage.POSE_WITH_COVARIANCE: return createPoseWithCovariance();
- case Geometry_datatypesPackage.POSE2_D: return createPose2D();
- case Geometry_datatypesPackage.POSE_WITH_COVARIANCE_STAMPED: return createPoseWithCovarianceStamped();
- case Geometry_datatypesPackage.POSE_ARRAY: return createPoseArray();
- case Geometry_datatypesPackage.QUATERNION_STAMPED: return createQuaternionStamped();
- case Geometry_datatypesPackage.TRANSFORM: return createTransform();
- case Geometry_datatypesPackage.WRENCH_STAMPED: return createWrenchStamped();
- case Geometry_datatypesPackage.WRENCH: return createWrench();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Point createPoint() {
- PointImpl point = new PointImpl();
- return point;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Point32 createPoint32() {
- Point32Impl point32 = new Point32Impl();
- return point32;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public PointStamped createPointStamped() {
- PointStampedImpl pointStamped = new PointStampedImpl();
- return pointStamped;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Polygon createPolygon() {
- PolygonImpl polygon = new PolygonImpl();
- return polygon;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public PolygonStamped createPolygonStamped() {
- PolygonStampedImpl polygonStamped = new PolygonStampedImpl();
- return polygonStamped;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Vector3 createVector3() {
- Vector3Impl vector3 = new Vector3Impl();
- return vector3;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Vector3Stamped createVector3Stamped() {
- Vector3StampedImpl vector3Stamped = new Vector3StampedImpl();
- return vector3Stamped;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Quaternion createQuaternion() {
- QuaternionImpl quaternion = new QuaternionImpl();
- return quaternion;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Pose createPose() {
- PoseImpl pose = new PoseImpl();
- return pose;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public PoseStamped createPoseStamped() {
- PoseStampedImpl poseStamped = new PoseStampedImpl();
- return poseStamped;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public TwistWithCovariance createTwistWithCovariance() {
- TwistWithCovarianceImpl twistWithCovariance = new TwistWithCovarianceImpl();
- return twistWithCovariance;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Twist createTwist() {
- TwistImpl twist = new TwistImpl();
- return twist;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public TwistStamped createTwistStamped() {
- TwistStampedImpl twistStamped = new TwistStampedImpl();
- return twistStamped;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public PoseWithCovariance createPoseWithCovariance() {
- PoseWithCovarianceImpl poseWithCovariance = new PoseWithCovarianceImpl();
- return poseWithCovariance;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Pose2D createPose2D() {
- Pose2DImpl pose2D = new Pose2DImpl();
- return pose2D;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public PoseWithCovarianceStamped createPoseWithCovarianceStamped() {
- PoseWithCovarianceStampedImpl poseWithCovarianceStamped = new PoseWithCovarianceStampedImpl();
- return poseWithCovarianceStamped;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public PoseArray createPoseArray() {
- PoseArrayImpl poseArray = new PoseArrayImpl();
- return poseArray;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public QuaternionStamped createQuaternionStamped() {
- QuaternionStampedImpl quaternionStamped = new QuaternionStampedImpl();
- return quaternionStamped;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Transform createTransform() {
- TransformImpl transform = new TransformImpl();
- return transform;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public WrenchStamped createWrenchStamped() {
- WrenchStampedImpl wrenchStamped = new WrenchStampedImpl();
- return wrenchStamped;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Wrench createWrench() {
- WrenchImpl wrench = new WrenchImpl();
- return wrench;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Geometry_datatypesPackage getGeometry_datatypesPackage() {
- return (Geometry_datatypesPackage)getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- @Deprecated
- public static Geometry_datatypesPackage getPackage() {
- return Geometry_datatypesPackage.eINSTANCE;
- }
-
-} //Geometry_datatypesFactoryImpl
+/** + */ +package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl; + +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; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.*; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class Geometry_datatypesFactoryImpl extends EFactoryImpl implements Geometry_datatypesFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static Geometry_datatypesFactory init() { + try { + Geometry_datatypesFactory theGeometry_datatypesFactory = (Geometry_datatypesFactory)EPackage.Registry.INSTANCE.getEFactory(Geometry_datatypesPackage.eNS_URI); + if (theGeometry_datatypesFactory != null) { + return theGeometry_datatypesFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new Geometry_datatypesFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Geometry_datatypesFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case Geometry_datatypesPackage.POINT: return createPoint(); + case Geometry_datatypesPackage.POINT32: return createPoint32(); + case Geometry_datatypesPackage.POINT_STAMPED: return createPointStamped(); + case Geometry_datatypesPackage.POLYGON: return createPolygon(); + case Geometry_datatypesPackage.POLYGON_STAMPED: return createPolygonStamped(); + case Geometry_datatypesPackage.VECTOR3: return createVector3(); + case Geometry_datatypesPackage.VECTOR3_STAMPED: return createVector3Stamped(); + case Geometry_datatypesPackage.QUATERNION: return createQuaternion(); + case Geometry_datatypesPackage.POSE: return createPose(); + case Geometry_datatypesPackage.POSE_STAMPED: return createPoseStamped(); + case Geometry_datatypesPackage.TWIST_WITH_COVARIANCE: return createTwistWithCovariance(); + case Geometry_datatypesPackage.TWIST: return createTwist(); + case Geometry_datatypesPackage.TWIST_STAMPED: return createTwistStamped(); + case Geometry_datatypesPackage.POSE_WITH_COVARIANCE: return createPoseWithCovariance(); + case Geometry_datatypesPackage.POSE2_D: return createPose2D(); + case Geometry_datatypesPackage.POSE_WITH_COVARIANCE_STAMPED: return createPoseWithCovarianceStamped(); + case Geometry_datatypesPackage.POSE_ARRAY: return createPoseArray(); + case Geometry_datatypesPackage.QUATERNION_STAMPED: return createQuaternionStamped(); + case Geometry_datatypesPackage.TRANSFORM: return createTransform(); + case Geometry_datatypesPackage.WRENCH_STAMPED: return createWrenchStamped(); + case Geometry_datatypesPackage.WRENCH: return createWrench(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Point createPoint() { + PointImpl point = new PointImpl(); + return point; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Point32 createPoint32() { + Point32Impl point32 = new Point32Impl(); + return point32; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PointStamped createPointStamped() { + PointStampedImpl pointStamped = new PointStampedImpl(); + return pointStamped; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Polygon createPolygon() { + PolygonImpl polygon = new PolygonImpl(); + return polygon; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PolygonStamped createPolygonStamped() { + PolygonStampedImpl polygonStamped = new PolygonStampedImpl(); + return polygonStamped; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Vector3 createVector3() { + Vector3Impl vector3 = new Vector3Impl(); + return vector3; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Vector3Stamped createVector3Stamped() { + Vector3StampedImpl vector3Stamped = new Vector3StampedImpl(); + return vector3Stamped; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Quaternion createQuaternion() { + QuaternionImpl quaternion = new QuaternionImpl(); + return quaternion; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Pose createPose() { + PoseImpl pose = new PoseImpl(); + return pose; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PoseStamped createPoseStamped() { + PoseStampedImpl poseStamped = new PoseStampedImpl(); + return poseStamped; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TwistWithCovariance createTwistWithCovariance() { + TwistWithCovarianceImpl twistWithCovariance = new TwistWithCovarianceImpl(); + return twistWithCovariance; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Twist createTwist() { + TwistImpl twist = new TwistImpl(); + return twist; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TwistStamped createTwistStamped() { + TwistStampedImpl twistStamped = new TwistStampedImpl(); + return twistStamped; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PoseWithCovariance createPoseWithCovariance() { + PoseWithCovarianceImpl poseWithCovariance = new PoseWithCovarianceImpl(); + return poseWithCovariance; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Pose2D createPose2D() { + Pose2DImpl pose2D = new Pose2DImpl(); + return pose2D; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PoseWithCovarianceStamped createPoseWithCovarianceStamped() { + PoseWithCovarianceStampedImpl poseWithCovarianceStamped = new PoseWithCovarianceStampedImpl(); + return poseWithCovarianceStamped; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PoseArray createPoseArray() { + PoseArrayImpl poseArray = new PoseArrayImpl(); + return poseArray; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public QuaternionStamped createQuaternionStamped() { + QuaternionStampedImpl quaternionStamped = new QuaternionStampedImpl(); + return quaternionStamped; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Transform createTransform() { + TransformImpl transform = new TransformImpl(); + return transform; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public WrenchStamped createWrenchStamped() { + WrenchStampedImpl wrenchStamped = new WrenchStampedImpl(); + return wrenchStamped; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Wrench createWrench() { + WrenchImpl wrench = new WrenchImpl(); + return wrench; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Geometry_datatypesPackage getGeometry_datatypesPackage() { + return (Geometry_datatypesPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static Geometry_datatypesPackage getPackage() { + return Geometry_datatypesPackage.eINSTANCE; + } + +} //Geometry_datatypesFactoryImpl diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Geometry_datatypesPackageImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Geometry_datatypesPackageImpl.java index 1247948aae4..1e9084d696a 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Geometry_datatypesPackageImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Geometry_datatypesPackageImpl.java @@ -1,1148 +1,1148 @@ -/**
- */
-package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl;
-
-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;
-
-import org.eclipse.papyrus.RobotML.RobotMLPackage;
-
-import org.eclipse.papyrus.RobotML.impl.RobotMLPackageImpl;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.Actionlib_datatypesPackage;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.Actionlib_datatypesPackageImpl;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.diagnostic_datatypes.Diagnostic_datatypesPackage;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.diagnostic_datatypes.impl.Diagnostic_datatypesPackageImpl;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesFactory;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesPackage;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Point;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Point32;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PointStamped;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Polygon;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PolygonStamped;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Pose;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Pose2D;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PoseArray;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PoseStamped;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PoseWithCovariance;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PoseWithCovarianceStamped;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Quaternion;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.QuaternionStamped;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Transform;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Twist;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.TwistStamped;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.TwistWithCovariance;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Vector3;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Vector3Stamped;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Wrench;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.WrenchStamped;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.nav_datatypes.Nav_datatypesPackage;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.nav_datatypes.impl.Nav_datatypesPackageImpl;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.oarps_datatypes.oarp1_datatypes.Oarp1_datatypesPackage;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.oarps_datatypes.oarp1_datatypes.impl.Oarp1_datatypesPackageImpl;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.oarps_datatypes.oarp4_datatypes.Oarp4_datatypesPackage;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.oarps_datatypes.oarp4_datatypes.impl.Oarp4_datatypesPackageImpl;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.sensor_datatypes.Sensor_datatypesPackage;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.sensor_datatypes.impl.Sensor_datatypesPackageImpl;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Std_datatypesPackage;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.impl.Std_datatypesPackageImpl;
-
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class Geometry_datatypesPackageImpl extends EPackageImpl implements Geometry_datatypesPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass pointEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass point32EClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass pointStampedEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass polygonEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass polygonStampedEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass vector3EClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass vector3StampedEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass quaternionEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass poseEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass poseStampedEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass twistWithCovarianceEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass twistEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass twistStampedEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass poseWithCovarianceEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass pose2DEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass poseWithCovarianceStampedEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass poseArrayEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass quaternionStampedEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass transformEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass wrenchStampedEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass wrenchEClass = null;
-
- /**
- * Creates an instance of the model <b>Package</b>, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
- * package URI value.
- * <p>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.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private Geometry_datatypesPackageImpl() {
- super(eNS_URI, Geometry_datatypesFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
- *
- * <p>This method is used to initialize {@link Geometry_datatypesPackage#eINSTANCE} when that field is accessed.
- * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static Geometry_datatypesPackage init() {
- if (isInited) return (Geometry_datatypesPackage)EPackage.Registry.INSTANCE.getEPackage(Geometry_datatypesPackage.eNS_URI);
-
- // Obtain or create and register package
- Geometry_datatypesPackageImpl theGeometry_datatypesPackage = (Geometry_datatypesPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Geometry_datatypesPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new Geometry_datatypesPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- UMLPackage.eINSTANCE.eClass();
-
- // Obtain or create and register interdependencies
- RobotMLPackageImpl theRobotMLPackage = (RobotMLPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RobotMLPackage.eNS_URI) instanceof RobotMLPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RobotMLPackage.eNS_URI) : RobotMLPackage.eINSTANCE);
- Diagnostic_datatypesPackageImpl theDiagnostic_datatypesPackage = (Diagnostic_datatypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Diagnostic_datatypesPackage.eNS_URI) instanceof Diagnostic_datatypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Diagnostic_datatypesPackage.eNS_URI) : Diagnostic_datatypesPackage.eINSTANCE);
- Nav_datatypesPackageImpl theNav_datatypesPackage = (Nav_datatypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Nav_datatypesPackage.eNS_URI) instanceof Nav_datatypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Nav_datatypesPackage.eNS_URI) : Nav_datatypesPackage.eINSTANCE);
- Sensor_datatypesPackageImpl theSensor_datatypesPackage = (Sensor_datatypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Sensor_datatypesPackage.eNS_URI) instanceof Sensor_datatypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Sensor_datatypesPackage.eNS_URI) : Sensor_datatypesPackage.eINSTANCE);
- Actionlib_datatypesPackageImpl theActionlib_datatypesPackage = (Actionlib_datatypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Actionlib_datatypesPackage.eNS_URI) instanceof Actionlib_datatypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Actionlib_datatypesPackage.eNS_URI) : Actionlib_datatypesPackage.eINSTANCE);
- Oarp1_datatypesPackageImpl theOarp1_datatypesPackage = (Oarp1_datatypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Oarp1_datatypesPackage.eNS_URI) instanceof Oarp1_datatypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Oarp1_datatypesPackage.eNS_URI) : Oarp1_datatypesPackage.eINSTANCE);
- Oarp4_datatypesPackageImpl theOarp4_datatypesPackage = (Oarp4_datatypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Oarp4_datatypesPackage.eNS_URI) instanceof Oarp4_datatypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Oarp4_datatypesPackage.eNS_URI) : Oarp4_datatypesPackage.eINSTANCE);
- Std_datatypesPackageImpl theStd_datatypesPackage = (Std_datatypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Std_datatypesPackage.eNS_URI) instanceof Std_datatypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Std_datatypesPackage.eNS_URI) : Std_datatypesPackage.eINSTANCE);
-
- // Create package meta-data objects
- theGeometry_datatypesPackage.createPackageContents();
- theRobotMLPackage.createPackageContents();
- theDiagnostic_datatypesPackage.createPackageContents();
- theNav_datatypesPackage.createPackageContents();
- theSensor_datatypesPackage.createPackageContents();
- theActionlib_datatypesPackage.createPackageContents();
- theOarp1_datatypesPackage.createPackageContents();
- theOarp4_datatypesPackage.createPackageContents();
- theStd_datatypesPackage.createPackageContents();
-
- // Initialize created meta-data
- theGeometry_datatypesPackage.initializePackageContents();
- theRobotMLPackage.initializePackageContents();
- theDiagnostic_datatypesPackage.initializePackageContents();
- theNav_datatypesPackage.initializePackageContents();
- theSensor_datatypesPackage.initializePackageContents();
- theActionlib_datatypesPackage.initializePackageContents();
- theOarp1_datatypesPackage.initializePackageContents();
- theOarp4_datatypesPackage.initializePackageContents();
- theStd_datatypesPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theGeometry_datatypesPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(Geometry_datatypesPackage.eNS_URI, theGeometry_datatypesPackage);
- return theGeometry_datatypesPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getPoint() {
- return pointEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPoint_X() {
- return (EAttribute)pointEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPoint_Y() {
- return (EAttribute)pointEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPoint_Z() {
- return (EAttribute)pointEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getPoint32() {
- return point32EClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPoint32_X() {
- return (EAttribute)point32EClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPoint32_Y() {
- return (EAttribute)point32EClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPoint32_Z() {
- return (EAttribute)point32EClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getPointStamped() {
- return pointStampedEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getPointStamped_Header() {
- return (EReference)pointStampedEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getPointStamped_Point() {
- return (EReference)pointStampedEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getPolygon() {
- return polygonEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getPolygon_Point() {
- return (EReference)polygonEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getPolygonStamped() {
- return polygonStampedEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getPolygonStamped_Header() {
- return (EReference)polygonStampedEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getPolygonStamped_Polygon() {
- return (EReference)polygonStampedEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getVector3() {
- return vector3EClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getVector3_X() {
- return (EAttribute)vector3EClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getVector3_Y() {
- return (EAttribute)vector3EClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getVector3_Z() {
- return (EAttribute)vector3EClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getVector3Stamped() {
- return vector3StampedEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getVector3Stamped_Header() {
- return (EReference)vector3StampedEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getVector3Stamped_Vector() {
- return (EReference)vector3StampedEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getQuaternion() {
- return quaternionEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getQuaternion_X() {
- return (EAttribute)quaternionEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getQuaternion_Y() {
- return (EAttribute)quaternionEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getQuaternion_Z() {
- return (EAttribute)quaternionEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getQuaternion_W() {
- return (EAttribute)quaternionEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getPose() {
- return poseEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getPose_Position() {
- return (EReference)poseEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getPose_Orientation() {
- return (EReference)poseEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getPoseStamped() {
- return poseStampedEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getPoseStamped_Header() {
- return (EReference)poseStampedEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getPoseStamped_Pose() {
- return (EReference)poseStampedEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getTwistWithCovariance() {
- return twistWithCovarianceEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getTwistWithCovariance_Twist() {
- return (EReference)twistWithCovarianceEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getTwistWithCovariance_Covariance() {
- return (EAttribute)twistWithCovarianceEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getTwist() {
- return twistEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getTwist_Linear() {
- return (EReference)twistEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getTwist_Angular() {
- return (EReference)twistEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getTwistStamped() {
- return twistStampedEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getTwistStamped_Header() {
- return (EReference)twistStampedEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getTwistStamped_Twist() {
- return (EReference)twistStampedEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getPoseWithCovariance() {
- return poseWithCovarianceEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getPoseWithCovariance_Pose() {
- return (EReference)poseWithCovarianceEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPoseWithCovariance_Covariance() {
- return (EAttribute)poseWithCovarianceEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getPose2D() {
- return pose2DEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPose2D_X() {
- return (EAttribute)pose2DEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPose2D_Y() {
- return (EAttribute)pose2DEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getPose2D_Theta() {
- return (EAttribute)pose2DEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getPoseWithCovarianceStamped() {
- return poseWithCovarianceStampedEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getPoseArray() {
- return poseArrayEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getPoseArray_Header() {
- return (EReference)poseArrayEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getPoseArray_Poses() {
- return (EReference)poseArrayEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getQuaternionStamped() {
- return quaternionStampedEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getQuaternionStamped_Header() {
- return (EReference)quaternionStampedEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getQuaternionStamped_Quaternion() {
- return (EReference)quaternionStampedEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getTransform() {
- return transformEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getTransform_Translation() {
- return (EReference)transformEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getTransform_Rotation() {
- return (EReference)transformEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getWrenchStamped() {
- return wrenchStampedEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getWrenchStamped_Header() {
- return (EReference)wrenchStampedEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getWrenchStamped_Wrench() {
- return (EReference)wrenchStampedEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getWrench() {
- return wrenchEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getWrench_Force() {
- return (EReference)wrenchEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getWrench_Torque() {
- return (EReference)wrenchEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Geometry_datatypesFactory getGeometry_datatypesFactory() {
- return (Geometry_datatypesFactory)getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @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.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void createPackageContents() {
- if (isCreated) return;
- isCreated = true;
-
- // Create classes and their features
- pointEClass = createEClass(POINT);
- createEAttribute(pointEClass, POINT__X);
- createEAttribute(pointEClass, POINT__Y);
- createEAttribute(pointEClass, POINT__Z);
-
- point32EClass = createEClass(POINT32);
- createEAttribute(point32EClass, POINT32__X);
- createEAttribute(point32EClass, POINT32__Y);
- createEAttribute(point32EClass, POINT32__Z);
-
- pointStampedEClass = createEClass(POINT_STAMPED);
- createEReference(pointStampedEClass, POINT_STAMPED__HEADER);
- createEReference(pointStampedEClass, POINT_STAMPED__POINT);
-
- polygonEClass = createEClass(POLYGON);
- createEReference(polygonEClass, POLYGON__POINT);
-
- polygonStampedEClass = createEClass(POLYGON_STAMPED);
- createEReference(polygonStampedEClass, POLYGON_STAMPED__HEADER);
- createEReference(polygonStampedEClass, POLYGON_STAMPED__POLYGON);
-
- vector3EClass = createEClass(VECTOR3);
- createEAttribute(vector3EClass, VECTOR3__X);
- createEAttribute(vector3EClass, VECTOR3__Y);
- createEAttribute(vector3EClass, VECTOR3__Z);
-
- vector3StampedEClass = createEClass(VECTOR3_STAMPED);
- createEReference(vector3StampedEClass, VECTOR3_STAMPED__HEADER);
- createEReference(vector3StampedEClass, VECTOR3_STAMPED__VECTOR);
-
- quaternionEClass = createEClass(QUATERNION);
- createEAttribute(quaternionEClass, QUATERNION__X);
- createEAttribute(quaternionEClass, QUATERNION__Y);
- createEAttribute(quaternionEClass, QUATERNION__Z);
- createEAttribute(quaternionEClass, QUATERNION__W);
-
- poseEClass = createEClass(POSE);
- createEReference(poseEClass, POSE__POSITION);
- createEReference(poseEClass, POSE__ORIENTATION);
-
- poseStampedEClass = createEClass(POSE_STAMPED);
- createEReference(poseStampedEClass, POSE_STAMPED__HEADER);
- createEReference(poseStampedEClass, POSE_STAMPED__POSE);
-
- twistWithCovarianceEClass = createEClass(TWIST_WITH_COVARIANCE);
- createEReference(twistWithCovarianceEClass, TWIST_WITH_COVARIANCE__TWIST);
- createEAttribute(twistWithCovarianceEClass, TWIST_WITH_COVARIANCE__COVARIANCE);
-
- twistEClass = createEClass(TWIST);
- createEReference(twistEClass, TWIST__LINEAR);
- createEReference(twistEClass, TWIST__ANGULAR);
-
- twistStampedEClass = createEClass(TWIST_STAMPED);
- createEReference(twistStampedEClass, TWIST_STAMPED__HEADER);
- createEReference(twistStampedEClass, TWIST_STAMPED__TWIST);
-
- poseWithCovarianceEClass = createEClass(POSE_WITH_COVARIANCE);
- createEReference(poseWithCovarianceEClass, POSE_WITH_COVARIANCE__POSE);
- createEAttribute(poseWithCovarianceEClass, POSE_WITH_COVARIANCE__COVARIANCE);
-
- pose2DEClass = createEClass(POSE2_D);
- createEAttribute(pose2DEClass, POSE2_D__X);
- createEAttribute(pose2DEClass, POSE2_D__Y);
- createEAttribute(pose2DEClass, POSE2_D__THETA);
-
- poseWithCovarianceStampedEClass = createEClass(POSE_WITH_COVARIANCE_STAMPED);
-
- poseArrayEClass = createEClass(POSE_ARRAY);
- createEReference(poseArrayEClass, POSE_ARRAY__HEADER);
- createEReference(poseArrayEClass, POSE_ARRAY__POSES);
-
- quaternionStampedEClass = createEClass(QUATERNION_STAMPED);
- createEReference(quaternionStampedEClass, QUATERNION_STAMPED__HEADER);
- createEReference(quaternionStampedEClass, QUATERNION_STAMPED__QUATERNION);
-
- transformEClass = createEClass(TRANSFORM);
- createEReference(transformEClass, TRANSFORM__TRANSLATION);
- createEReference(transformEClass, TRANSFORM__ROTATION);
-
- wrenchStampedEClass = createEClass(WRENCH_STAMPED);
- createEReference(wrenchStampedEClass, WRENCH_STAMPED__HEADER);
- createEReference(wrenchStampedEClass, WRENCH_STAMPED__WRENCH);
-
- wrenchEClass = createEClass(WRENCH);
- createEReference(wrenchEClass, WRENCH__FORCE);
- createEReference(wrenchEClass, WRENCH__TORQUE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @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.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void initializePackageContents() {
- if (isInitialized) return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Obtain other dependent packages
- Std_datatypesPackage theStd_datatypesPackage = (Std_datatypesPackage)EPackage.Registry.INSTANCE.getEPackage(Std_datatypesPackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
-
- // Initialize classes, features, and operations; add parameters
- initEClass(pointEClass, Point.class, "Point", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getPoint_X(), theStd_datatypesPackage.getFloat64(), "x", null, 1, 1, Point.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getPoint_Y(), theStd_datatypesPackage.getFloat64(), "y", null, 1, 1, Point.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getPoint_Z(), theStd_datatypesPackage.getFloat64(), "z", null, 1, 1, Point.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(point32EClass, Point32.class, "Point32", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getPoint32_X(), theStd_datatypesPackage.getFloat32(), "x", null, 1, 1, Point32.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getPoint32_Y(), theStd_datatypesPackage.getFloat32(), "y", null, 1, 1, Point32.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getPoint32_Z(), theStd_datatypesPackage.getFloat32(), "z", null, 1, 1, Point32.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(pointStampedEClass, PointStamped.class, "PointStamped", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getPointStamped_Header(), theStd_datatypesPackage.getHeader(), null, "header", null, 1, 1, PointStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getPointStamped_Point(), this.getPoint(), null, "point", null, 1, 1, PointStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(polygonEClass, Polygon.class, "Polygon", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getPolygon_Point(), this.getPoint32(), null, "point", null, 3, -1, Polygon.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(polygonStampedEClass, PolygonStamped.class, "PolygonStamped", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getPolygonStamped_Header(), theStd_datatypesPackage.getHeader(), null, "header", null, 1, 1, PolygonStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getPolygonStamped_Polygon(), this.getPolygon(), null, "polygon", null, 1, 1, PolygonStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(vector3EClass, Vector3.class, "Vector3", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getVector3_X(), theStd_datatypesPackage.getFloat64(), "x", null, 1, 1, Vector3.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getVector3_Y(), theStd_datatypesPackage.getFloat64(), "y", null, 1, 1, Vector3.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getVector3_Z(), theStd_datatypesPackage.getFloat64(), "z", null, 1, 1, Vector3.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(vector3StampedEClass, Vector3Stamped.class, "Vector3Stamped", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getVector3Stamped_Header(), theStd_datatypesPackage.getHeader(), null, "header", null, 1, 1, Vector3Stamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getVector3Stamped_Vector(), this.getVector3(), null, "vector", null, 1, 1, Vector3Stamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(quaternionEClass, Quaternion.class, "Quaternion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getQuaternion_X(), theStd_datatypesPackage.getFloat64(), "x", null, 1, 1, Quaternion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getQuaternion_Y(), theStd_datatypesPackage.getFloat64(), "y", null, 1, 1, Quaternion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getQuaternion_Z(), theStd_datatypesPackage.getFloat64(), "z", null, 1, 1, Quaternion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getQuaternion_W(), theStd_datatypesPackage.getFloat64(), "w", null, 1, 1, Quaternion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(poseEClass, Pose.class, "Pose", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getPose_Position(), this.getPoint(), null, "position", null, 1, 1, Pose.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getPose_Orientation(), this.getQuaternion(), null, "orientation", null, 1, 1, Pose.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(poseStampedEClass, PoseStamped.class, "PoseStamped", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getPoseStamped_Header(), theStd_datatypesPackage.getHeader(), null, "header", null, 1, 1, PoseStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getPoseStamped_Pose(), this.getPose(), null, "pose", null, 1, 1, PoseStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(twistWithCovarianceEClass, TwistWithCovariance.class, "TwistWithCovariance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getTwistWithCovariance_Twist(), this.getTwist(), null, "twist", null, 1, 1, TwistWithCovariance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getTwistWithCovariance_Covariance(), theStd_datatypesPackage.getFloat64(), "covariance", null, 36, 36, TwistWithCovariance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(twistEClass, Twist.class, "Twist", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getTwist_Linear(), this.getVector3(), null, "linear", null, 1, 1, Twist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getTwist_Angular(), this.getVector3(), null, "angular", null, 1, 1, Twist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(twistStampedEClass, TwistStamped.class, "TwistStamped", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getTwistStamped_Header(), theStd_datatypesPackage.getHeader(), null, "header", null, 1, 1, TwistStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getTwistStamped_Twist(), this.getTwist(), null, "twist", null, 1, 1, TwistStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(poseWithCovarianceEClass, PoseWithCovariance.class, "PoseWithCovariance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getPoseWithCovariance_Pose(), this.getPose(), null, "pose", null, 1, 1, PoseWithCovariance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getPoseWithCovariance_Covariance(), theStd_datatypesPackage.getFloat64(), "covariance", null, 36, 36, PoseWithCovariance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(pose2DEClass, Pose2D.class, "Pose2D", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getPose2D_X(), theStd_datatypesPackage.getFloat64(), "x", null, 1, 1, Pose2D.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getPose2D_Y(), theStd_datatypesPackage.getFloat64(), "y", null, 1, 1, Pose2D.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getPose2D_Theta(), theStd_datatypesPackage.getFloat64(), "theta", null, 1, 1, Pose2D.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(poseWithCovarianceStampedEClass, PoseWithCovarianceStamped.class, "PoseWithCovarianceStamped", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(poseArrayEClass, PoseArray.class, "PoseArray", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getPoseArray_Header(), theStd_datatypesPackage.getHeader(), null, "header", null, 1, 1, PoseArray.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getPoseArray_Poses(), this.getPose(), null, "poses", null, 0, -1, PoseArray.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(quaternionStampedEClass, QuaternionStamped.class, "QuaternionStamped", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getQuaternionStamped_Header(), theStd_datatypesPackage.getHeader(), null, "header", null, 1, 1, QuaternionStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getQuaternionStamped_Quaternion(), this.getQuaternion(), null, "quaternion", null, 1, 1, QuaternionStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(transformEClass, Transform.class, "Transform", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getTransform_Translation(), this.getVector3(), null, "translation", null, 1, 1, Transform.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getTransform_Rotation(), this.getQuaternion(), null, "rotation", null, 1, 1, Transform.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(wrenchStampedEClass, WrenchStamped.class, "WrenchStamped", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getWrenchStamped_Header(), theStd_datatypesPackage.getHeader(), null, "header", null, 1, 1, WrenchStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getWrenchStamped_Wrench(), this.getWrench(), null, "wrench", null, 1, 1, WrenchStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- initEClass(wrenchEClass, Wrench.class, "Wrench", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getWrench_Force(), this.getVector3(), null, "force", null, 1, 1, Wrench.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getWrench_Torque(), this.getVector3(), null, "torque", null, 1, 1, Wrench.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);
- }
-
-} //Geometry_datatypesPackageImpl
+/** + */ +package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl; + +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; + +import org.eclipse.papyrus.RobotML.RobotMLPackage; + +import org.eclipse.papyrus.RobotML.impl.RobotMLPackageImpl; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.Actionlib_datatypesPackage; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.actionlib_datatypes.impl.Actionlib_datatypesPackageImpl; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.diagnostic_datatypes.Diagnostic_datatypesPackage; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.diagnostic_datatypes.impl.Diagnostic_datatypesPackageImpl; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesFactory; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesPackage; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Point; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Point32; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PointStamped; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Polygon; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PolygonStamped; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Pose; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Pose2D; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PoseArray; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PoseStamped; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PoseWithCovariance; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PoseWithCovarianceStamped; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Quaternion; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.QuaternionStamped; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Transform; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Twist; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.TwistStamped; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.TwistWithCovariance; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Vector3; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Vector3Stamped; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Wrench; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.WrenchStamped; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.nav_datatypes.Nav_datatypesPackage; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.nav_datatypes.impl.Nav_datatypesPackageImpl; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.oarps_datatypes.oarp1_datatypes.Oarp1_datatypesPackage; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.oarps_datatypes.oarp1_datatypes.impl.Oarp1_datatypesPackageImpl; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.oarps_datatypes.oarp4_datatypes.Oarp4_datatypesPackage; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.oarps_datatypes.oarp4_datatypes.impl.Oarp4_datatypesPackageImpl; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.sensor_datatypes.Sensor_datatypesPackage; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.sensor_datatypes.impl.Sensor_datatypesPackageImpl; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Std_datatypesPackage; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.impl.Std_datatypesPackageImpl; + +import org.eclipse.uml2.uml.UMLPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class Geometry_datatypesPackageImpl extends EPackageImpl implements Geometry_datatypesPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass pointEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass point32EClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass pointStampedEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass polygonEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass polygonStampedEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass vector3EClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass vector3StampedEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass quaternionEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass poseEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass poseStampedEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass twistWithCovarianceEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass twistEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass twistStampedEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass poseWithCovarianceEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass pose2DEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass poseWithCovarianceStampedEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass poseArrayEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass quaternionStampedEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass transformEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass wrenchStampedEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass wrenchEClass = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesPackage#eNS_URI + * @see #init() + * @generated + */ + private Geometry_datatypesPackageImpl() { + super(eNS_URI, Geometry_datatypesFactory.eINSTANCE); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p>This method is used to initialize {@link Geometry_datatypesPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static Geometry_datatypesPackage init() { + if (isInited) return (Geometry_datatypesPackage)EPackage.Registry.INSTANCE.getEPackage(Geometry_datatypesPackage.eNS_URI); + + // Obtain or create and register package + Geometry_datatypesPackageImpl theGeometry_datatypesPackage = (Geometry_datatypesPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Geometry_datatypesPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new Geometry_datatypesPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + UMLPackage.eINSTANCE.eClass(); + + // Obtain or create and register interdependencies + RobotMLPackageImpl theRobotMLPackage = (RobotMLPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RobotMLPackage.eNS_URI) instanceof RobotMLPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RobotMLPackage.eNS_URI) : RobotMLPackage.eINSTANCE); + Diagnostic_datatypesPackageImpl theDiagnostic_datatypesPackage = (Diagnostic_datatypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Diagnostic_datatypesPackage.eNS_URI) instanceof Diagnostic_datatypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Diagnostic_datatypesPackage.eNS_URI) : Diagnostic_datatypesPackage.eINSTANCE); + Nav_datatypesPackageImpl theNav_datatypesPackage = (Nav_datatypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Nav_datatypesPackage.eNS_URI) instanceof Nav_datatypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Nav_datatypesPackage.eNS_URI) : Nav_datatypesPackage.eINSTANCE); + Sensor_datatypesPackageImpl theSensor_datatypesPackage = (Sensor_datatypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Sensor_datatypesPackage.eNS_URI) instanceof Sensor_datatypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Sensor_datatypesPackage.eNS_URI) : Sensor_datatypesPackage.eINSTANCE); + Actionlib_datatypesPackageImpl theActionlib_datatypesPackage = (Actionlib_datatypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Actionlib_datatypesPackage.eNS_URI) instanceof Actionlib_datatypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Actionlib_datatypesPackage.eNS_URI) : Actionlib_datatypesPackage.eINSTANCE); + Oarp1_datatypesPackageImpl theOarp1_datatypesPackage = (Oarp1_datatypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Oarp1_datatypesPackage.eNS_URI) instanceof Oarp1_datatypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Oarp1_datatypesPackage.eNS_URI) : Oarp1_datatypesPackage.eINSTANCE); + Oarp4_datatypesPackageImpl theOarp4_datatypesPackage = (Oarp4_datatypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Oarp4_datatypesPackage.eNS_URI) instanceof Oarp4_datatypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Oarp4_datatypesPackage.eNS_URI) : Oarp4_datatypesPackage.eINSTANCE); + Std_datatypesPackageImpl theStd_datatypesPackage = (Std_datatypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Std_datatypesPackage.eNS_URI) instanceof Std_datatypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Std_datatypesPackage.eNS_URI) : Std_datatypesPackage.eINSTANCE); + + // Create package meta-data objects + theGeometry_datatypesPackage.createPackageContents(); + theRobotMLPackage.createPackageContents(); + theDiagnostic_datatypesPackage.createPackageContents(); + theNav_datatypesPackage.createPackageContents(); + theSensor_datatypesPackage.createPackageContents(); + theActionlib_datatypesPackage.createPackageContents(); + theOarp1_datatypesPackage.createPackageContents(); + theOarp4_datatypesPackage.createPackageContents(); + theStd_datatypesPackage.createPackageContents(); + + // Initialize created meta-data + theGeometry_datatypesPackage.initializePackageContents(); + theRobotMLPackage.initializePackageContents(); + theDiagnostic_datatypesPackage.initializePackageContents(); + theNav_datatypesPackage.initializePackageContents(); + theSensor_datatypesPackage.initializePackageContents(); + theActionlib_datatypesPackage.initializePackageContents(); + theOarp1_datatypesPackage.initializePackageContents(); + theOarp4_datatypesPackage.initializePackageContents(); + theStd_datatypesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theGeometry_datatypesPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(Geometry_datatypesPackage.eNS_URI, theGeometry_datatypesPackage); + return theGeometry_datatypesPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPoint() { + return pointEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPoint_X() { + return (EAttribute)pointEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPoint_Y() { + return (EAttribute)pointEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPoint_Z() { + return (EAttribute)pointEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPoint32() { + return point32EClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPoint32_X() { + return (EAttribute)point32EClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPoint32_Y() { + return (EAttribute)point32EClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPoint32_Z() { + return (EAttribute)point32EClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPointStamped() { + return pointStampedEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPointStamped_Header() { + return (EReference)pointStampedEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPointStamped_Point() { + return (EReference)pointStampedEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPolygon() { + return polygonEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPolygon_Point() { + return (EReference)polygonEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPolygonStamped() { + return polygonStampedEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPolygonStamped_Header() { + return (EReference)polygonStampedEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPolygonStamped_Polygon() { + return (EReference)polygonStampedEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getVector3() { + return vector3EClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVector3_X() { + return (EAttribute)vector3EClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVector3_Y() { + return (EAttribute)vector3EClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVector3_Z() { + return (EAttribute)vector3EClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getVector3Stamped() { + return vector3StampedEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getVector3Stamped_Header() { + return (EReference)vector3StampedEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getVector3Stamped_Vector() { + return (EReference)vector3StampedEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getQuaternion() { + return quaternionEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getQuaternion_X() { + return (EAttribute)quaternionEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getQuaternion_Y() { + return (EAttribute)quaternionEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getQuaternion_Z() { + return (EAttribute)quaternionEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getQuaternion_W() { + return (EAttribute)quaternionEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPose() { + return poseEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPose_Position() { + return (EReference)poseEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPose_Orientation() { + return (EReference)poseEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPoseStamped() { + return poseStampedEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPoseStamped_Header() { + return (EReference)poseStampedEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPoseStamped_Pose() { + return (EReference)poseStampedEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getTwistWithCovariance() { + return twistWithCovarianceEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getTwistWithCovariance_Twist() { + return (EReference)twistWithCovarianceEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTwistWithCovariance_Covariance() { + return (EAttribute)twistWithCovarianceEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getTwist() { + return twistEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getTwist_Linear() { + return (EReference)twistEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getTwist_Angular() { + return (EReference)twistEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getTwistStamped() { + return twistStampedEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getTwistStamped_Header() { + return (EReference)twistStampedEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getTwistStamped_Twist() { + return (EReference)twistStampedEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPoseWithCovariance() { + return poseWithCovarianceEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPoseWithCovariance_Pose() { + return (EReference)poseWithCovarianceEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPoseWithCovariance_Covariance() { + return (EAttribute)poseWithCovarianceEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPose2D() { + return pose2DEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPose2D_X() { + return (EAttribute)pose2DEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPose2D_Y() { + return (EAttribute)pose2DEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPose2D_Theta() { + return (EAttribute)pose2DEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPoseWithCovarianceStamped() { + return poseWithCovarianceStampedEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPoseArray() { + return poseArrayEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPoseArray_Header() { + return (EReference)poseArrayEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPoseArray_Poses() { + return (EReference)poseArrayEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getQuaternionStamped() { + return quaternionStampedEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getQuaternionStamped_Header() { + return (EReference)quaternionStampedEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getQuaternionStamped_Quaternion() { + return (EReference)quaternionStampedEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getTransform() { + return transformEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getTransform_Translation() { + return (EReference)transformEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getTransform_Rotation() { + return (EReference)transformEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getWrenchStamped() { + return wrenchStampedEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getWrenchStamped_Header() { + return (EReference)wrenchStampedEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getWrenchStamped_Wrench() { + return (EReference)wrenchStampedEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getWrench() { + return wrenchEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getWrench_Force() { + return (EReference)wrenchEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getWrench_Torque() { + return (EReference)wrenchEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Geometry_datatypesFactory getGeometry_datatypesFactory() { + return (Geometry_datatypesFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + pointEClass = createEClass(POINT); + createEAttribute(pointEClass, POINT__X); + createEAttribute(pointEClass, POINT__Y); + createEAttribute(pointEClass, POINT__Z); + + point32EClass = createEClass(POINT32); + createEAttribute(point32EClass, POINT32__X); + createEAttribute(point32EClass, POINT32__Y); + createEAttribute(point32EClass, POINT32__Z); + + pointStampedEClass = createEClass(POINT_STAMPED); + createEReference(pointStampedEClass, POINT_STAMPED__HEADER); + createEReference(pointStampedEClass, POINT_STAMPED__POINT); + + polygonEClass = createEClass(POLYGON); + createEReference(polygonEClass, POLYGON__POINT); + + polygonStampedEClass = createEClass(POLYGON_STAMPED); + createEReference(polygonStampedEClass, POLYGON_STAMPED__HEADER); + createEReference(polygonStampedEClass, POLYGON_STAMPED__POLYGON); + + vector3EClass = createEClass(VECTOR3); + createEAttribute(vector3EClass, VECTOR3__X); + createEAttribute(vector3EClass, VECTOR3__Y); + createEAttribute(vector3EClass, VECTOR3__Z); + + vector3StampedEClass = createEClass(VECTOR3_STAMPED); + createEReference(vector3StampedEClass, VECTOR3_STAMPED__HEADER); + createEReference(vector3StampedEClass, VECTOR3_STAMPED__VECTOR); + + quaternionEClass = createEClass(QUATERNION); + createEAttribute(quaternionEClass, QUATERNION__X); + createEAttribute(quaternionEClass, QUATERNION__Y); + createEAttribute(quaternionEClass, QUATERNION__Z); + createEAttribute(quaternionEClass, QUATERNION__W); + + poseEClass = createEClass(POSE); + createEReference(poseEClass, POSE__POSITION); + createEReference(poseEClass, POSE__ORIENTATION); + + poseStampedEClass = createEClass(POSE_STAMPED); + createEReference(poseStampedEClass, POSE_STAMPED__HEADER); + createEReference(poseStampedEClass, POSE_STAMPED__POSE); + + twistWithCovarianceEClass = createEClass(TWIST_WITH_COVARIANCE); + createEReference(twistWithCovarianceEClass, TWIST_WITH_COVARIANCE__TWIST); + createEAttribute(twistWithCovarianceEClass, TWIST_WITH_COVARIANCE__COVARIANCE); + + twistEClass = createEClass(TWIST); + createEReference(twistEClass, TWIST__LINEAR); + createEReference(twistEClass, TWIST__ANGULAR); + + twistStampedEClass = createEClass(TWIST_STAMPED); + createEReference(twistStampedEClass, TWIST_STAMPED__HEADER); + createEReference(twistStampedEClass, TWIST_STAMPED__TWIST); + + poseWithCovarianceEClass = createEClass(POSE_WITH_COVARIANCE); + createEReference(poseWithCovarianceEClass, POSE_WITH_COVARIANCE__POSE); + createEAttribute(poseWithCovarianceEClass, POSE_WITH_COVARIANCE__COVARIANCE); + + pose2DEClass = createEClass(POSE2_D); + createEAttribute(pose2DEClass, POSE2_D__X); + createEAttribute(pose2DEClass, POSE2_D__Y); + createEAttribute(pose2DEClass, POSE2_D__THETA); + + poseWithCovarianceStampedEClass = createEClass(POSE_WITH_COVARIANCE_STAMPED); + + poseArrayEClass = createEClass(POSE_ARRAY); + createEReference(poseArrayEClass, POSE_ARRAY__HEADER); + createEReference(poseArrayEClass, POSE_ARRAY__POSES); + + quaternionStampedEClass = createEClass(QUATERNION_STAMPED); + createEReference(quaternionStampedEClass, QUATERNION_STAMPED__HEADER); + createEReference(quaternionStampedEClass, QUATERNION_STAMPED__QUATERNION); + + transformEClass = createEClass(TRANSFORM); + createEReference(transformEClass, TRANSFORM__TRANSLATION); + createEReference(transformEClass, TRANSFORM__ROTATION); + + wrenchStampedEClass = createEClass(WRENCH_STAMPED); + createEReference(wrenchStampedEClass, WRENCH_STAMPED__HEADER); + createEReference(wrenchStampedEClass, WRENCH_STAMPED__WRENCH); + + wrenchEClass = createEClass(WRENCH); + createEReference(wrenchEClass, WRENCH__FORCE); + createEReference(wrenchEClass, WRENCH__TORQUE); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + Std_datatypesPackage theStd_datatypesPackage = (Std_datatypesPackage)EPackage.Registry.INSTANCE.getEPackage(Std_datatypesPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + + // Initialize classes, features, and operations; add parameters + initEClass(pointEClass, Point.class, "Point", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPoint_X(), theStd_datatypesPackage.getFloat64(), "x", null, 1, 1, Point.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getPoint_Y(), theStd_datatypesPackage.getFloat64(), "y", null, 1, 1, Point.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getPoint_Z(), theStd_datatypesPackage.getFloat64(), "z", null, 1, 1, Point.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(point32EClass, Point32.class, "Point32", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPoint32_X(), theStd_datatypesPackage.getFloat32(), "x", null, 1, 1, Point32.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getPoint32_Y(), theStd_datatypesPackage.getFloat32(), "y", null, 1, 1, Point32.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getPoint32_Z(), theStd_datatypesPackage.getFloat32(), "z", null, 1, 1, Point32.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(pointStampedEClass, PointStamped.class, "PointStamped", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPointStamped_Header(), theStd_datatypesPackage.getHeader(), null, "header", null, 1, 1, PointStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getPointStamped_Point(), this.getPoint(), null, "point", null, 1, 1, PointStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(polygonEClass, Polygon.class, "Polygon", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPolygon_Point(), this.getPoint32(), null, "point", null, 3, -1, Polygon.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(polygonStampedEClass, PolygonStamped.class, "PolygonStamped", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPolygonStamped_Header(), theStd_datatypesPackage.getHeader(), null, "header", null, 1, 1, PolygonStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getPolygonStamped_Polygon(), this.getPolygon(), null, "polygon", null, 1, 1, PolygonStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(vector3EClass, Vector3.class, "Vector3", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getVector3_X(), theStd_datatypesPackage.getFloat64(), "x", null, 1, 1, Vector3.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getVector3_Y(), theStd_datatypesPackage.getFloat64(), "y", null, 1, 1, Vector3.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getVector3_Z(), theStd_datatypesPackage.getFloat64(), "z", null, 1, 1, Vector3.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(vector3StampedEClass, Vector3Stamped.class, "Vector3Stamped", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getVector3Stamped_Header(), theStd_datatypesPackage.getHeader(), null, "header", null, 1, 1, Vector3Stamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getVector3Stamped_Vector(), this.getVector3(), null, "vector", null, 1, 1, Vector3Stamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(quaternionEClass, Quaternion.class, "Quaternion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getQuaternion_X(), theStd_datatypesPackage.getFloat64(), "x", null, 1, 1, Quaternion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getQuaternion_Y(), theStd_datatypesPackage.getFloat64(), "y", null, 1, 1, Quaternion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getQuaternion_Z(), theStd_datatypesPackage.getFloat64(), "z", null, 1, 1, Quaternion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getQuaternion_W(), theStd_datatypesPackage.getFloat64(), "w", null, 1, 1, Quaternion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(poseEClass, Pose.class, "Pose", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPose_Position(), this.getPoint(), null, "position", null, 1, 1, Pose.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getPose_Orientation(), this.getQuaternion(), null, "orientation", null, 1, 1, Pose.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(poseStampedEClass, PoseStamped.class, "PoseStamped", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPoseStamped_Header(), theStd_datatypesPackage.getHeader(), null, "header", null, 1, 1, PoseStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getPoseStamped_Pose(), this.getPose(), null, "pose", null, 1, 1, PoseStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(twistWithCovarianceEClass, TwistWithCovariance.class, "TwistWithCovariance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getTwistWithCovariance_Twist(), this.getTwist(), null, "twist", null, 1, 1, TwistWithCovariance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getTwistWithCovariance_Covariance(), theStd_datatypesPackage.getFloat64(), "covariance", null, 36, 36, TwistWithCovariance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(twistEClass, Twist.class, "Twist", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getTwist_Linear(), this.getVector3(), null, "linear", null, 1, 1, Twist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getTwist_Angular(), this.getVector3(), null, "angular", null, 1, 1, Twist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(twistStampedEClass, TwistStamped.class, "TwistStamped", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getTwistStamped_Header(), theStd_datatypesPackage.getHeader(), null, "header", null, 1, 1, TwistStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getTwistStamped_Twist(), this.getTwist(), null, "twist", null, 1, 1, TwistStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(poseWithCovarianceEClass, PoseWithCovariance.class, "PoseWithCovariance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPoseWithCovariance_Pose(), this.getPose(), null, "pose", null, 1, 1, PoseWithCovariance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getPoseWithCovariance_Covariance(), theStd_datatypesPackage.getFloat64(), "covariance", null, 36, 36, PoseWithCovariance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(pose2DEClass, Pose2D.class, "Pose2D", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPose2D_X(), theStd_datatypesPackage.getFloat64(), "x", null, 1, 1, Pose2D.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getPose2D_Y(), theStd_datatypesPackage.getFloat64(), "y", null, 1, 1, Pose2D.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getPose2D_Theta(), theStd_datatypesPackage.getFloat64(), "theta", null, 1, 1, Pose2D.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(poseWithCovarianceStampedEClass, PoseWithCovarianceStamped.class, "PoseWithCovarianceStamped", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(poseArrayEClass, PoseArray.class, "PoseArray", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPoseArray_Header(), theStd_datatypesPackage.getHeader(), null, "header", null, 1, 1, PoseArray.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getPoseArray_Poses(), this.getPose(), null, "poses", null, 0, -1, PoseArray.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(quaternionStampedEClass, QuaternionStamped.class, "QuaternionStamped", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getQuaternionStamped_Header(), theStd_datatypesPackage.getHeader(), null, "header", null, 1, 1, QuaternionStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getQuaternionStamped_Quaternion(), this.getQuaternion(), null, "quaternion", null, 1, 1, QuaternionStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(transformEClass, Transform.class, "Transform", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getTransform_Translation(), this.getVector3(), null, "translation", null, 1, 1, Transform.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getTransform_Rotation(), this.getQuaternion(), null, "rotation", null, 1, 1, Transform.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(wrenchStampedEClass, WrenchStamped.class, "WrenchStamped", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getWrenchStamped_Header(), theStd_datatypesPackage.getHeader(), null, "header", null, 1, 1, WrenchStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getWrenchStamped_Wrench(), this.getWrench(), null, "wrench", null, 1, 1, WrenchStamped.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(wrenchEClass, Wrench.class, "Wrench", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getWrench_Force(), this.getVector3(), null, "force", null, 1, 1, Wrench.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getWrench_Torque(), this.getVector3(), null, "torque", null, 1, 1, Wrench.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); + } + +} //Geometry_datatypesPackageImpl diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Point32Impl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Point32Impl.java index 3c7cb16b805..176b8df308e 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Point32Impl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Point32Impl.java @@ -1,271 +1,271 @@ -/**
- */
-package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl;
-
-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;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesPackage;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Point32;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Point32</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Point32Impl#getX <em>X</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Point32Impl#getY <em>Y</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Point32Impl#getZ <em>Z</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class Point32Impl extends MinimalEObjectImpl.Container implements Point32 {
- /**
- * The default value of the '{@link #getX() <em>X</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getX()
- * @generated
- * @ordered
- */
- protected static final float X_EDEFAULT = 0.0F;
-
- /**
- * The cached value of the '{@link #getX() <em>X</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getX()
- * @generated
- * @ordered
- */
- protected float x = X_EDEFAULT;
-
- /**
- * The default value of the '{@link #getY() <em>Y</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getY()
- * @generated
- * @ordered
- */
- protected static final float Y_EDEFAULT = 0.0F;
-
- /**
- * The cached value of the '{@link #getY() <em>Y</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getY()
- * @generated
- * @ordered
- */
- protected float y = Y_EDEFAULT;
-
- /**
- * The default value of the '{@link #getZ() <em>Z</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getZ()
- * @generated
- * @ordered
- */
- protected static final float Z_EDEFAULT = 0.0F;
-
- /**
- * The cached value of the '{@link #getZ() <em>Z</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getZ()
- * @generated
- * @ordered
- */
- protected float z = Z_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected Point32Impl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Geometry_datatypesPackage.Literals.POINT32;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public float getX() {
- return x;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setX(float newX) {
- float oldX = x;
- x = newX;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POINT32__X, oldX, x));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public float getY() {
- return y;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setY(float newY) {
- float oldY = y;
- y = newY;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POINT32__Y, oldY, y));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public float getZ() {
- return z;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setZ(float newZ) {
- float oldZ = z;
- z = newZ;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POINT32__Z, oldZ, z));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Geometry_datatypesPackage.POINT32__X:
- return getX();
- case Geometry_datatypesPackage.POINT32__Y:
- return getY();
- case Geometry_datatypesPackage.POINT32__Z:
- return getZ();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Geometry_datatypesPackage.POINT32__X:
- setX((Float)newValue);
- return;
- case Geometry_datatypesPackage.POINT32__Y:
- setY((Float)newValue);
- return;
- case Geometry_datatypesPackage.POINT32__Z:
- setZ((Float)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.POINT32__X:
- setX(X_EDEFAULT);
- return;
- case Geometry_datatypesPackage.POINT32__Y:
- setY(Y_EDEFAULT);
- return;
- case Geometry_datatypesPackage.POINT32__Z:
- setZ(Z_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.POINT32__X:
- return x != X_EDEFAULT;
- case Geometry_datatypesPackage.POINT32__Y:
- return y != Y_EDEFAULT;
- case Geometry_datatypesPackage.POINT32__Z:
- return z != Z_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (x: ");
- result.append(x);
- result.append(", y: ");
- result.append(y);
- result.append(", z: ");
- result.append(z);
- result.append(')');
- return result.toString();
- }
-
-} //Point32Impl
+/** + */ +package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl; + +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; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesPackage; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Point32; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Point32</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Point32Impl#getX <em>X</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Point32Impl#getY <em>Y</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Point32Impl#getZ <em>Z</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class Point32Impl extends MinimalEObjectImpl.Container implements Point32 { + /** + * The default value of the '{@link #getX() <em>X</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getX() + * @generated + * @ordered + */ + protected static final float X_EDEFAULT = 0.0F; + + /** + * The cached value of the '{@link #getX() <em>X</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getX() + * @generated + * @ordered + */ + protected float x = X_EDEFAULT; + + /** + * The default value of the '{@link #getY() <em>Y</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getY() + * @generated + * @ordered + */ + protected static final float Y_EDEFAULT = 0.0F; + + /** + * The cached value of the '{@link #getY() <em>Y</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getY() + * @generated + * @ordered + */ + protected float y = Y_EDEFAULT; + + /** + * The default value of the '{@link #getZ() <em>Z</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getZ() + * @generated + * @ordered + */ + protected static final float Z_EDEFAULT = 0.0F; + + /** + * The cached value of the '{@link #getZ() <em>Z</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getZ() + * @generated + * @ordered + */ + protected float z = Z_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected Point32Impl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Geometry_datatypesPackage.Literals.POINT32; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public float getX() { + return x; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setX(float newX) { + float oldX = x; + x = newX; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POINT32__X, oldX, x)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public float getY() { + return y; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setY(float newY) { + float oldY = y; + y = newY; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POINT32__Y, oldY, y)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public float getZ() { + return z; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setZ(float newZ) { + float oldZ = z; + z = newZ; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POINT32__Z, oldZ, z)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Geometry_datatypesPackage.POINT32__X: + return getX(); + case Geometry_datatypesPackage.POINT32__Y: + return getY(); + case Geometry_datatypesPackage.POINT32__Z: + return getZ(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Geometry_datatypesPackage.POINT32__X: + setX((Float)newValue); + return; + case Geometry_datatypesPackage.POINT32__Y: + setY((Float)newValue); + return; + case Geometry_datatypesPackage.POINT32__Z: + setZ((Float)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.POINT32__X: + setX(X_EDEFAULT); + return; + case Geometry_datatypesPackage.POINT32__Y: + setY(Y_EDEFAULT); + return; + case Geometry_datatypesPackage.POINT32__Z: + setZ(Z_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.POINT32__X: + return x != X_EDEFAULT; + case Geometry_datatypesPackage.POINT32__Y: + return y != Y_EDEFAULT; + case Geometry_datatypesPackage.POINT32__Z: + return z != Z_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (x: "); + result.append(x); + result.append(", y: "); + result.append(y); + result.append(", z: "); + result.append(z); + result.append(')'); + return result.toString(); + } + +} //Point32Impl diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PointImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PointImpl.java index 9fe144bfd60..2648d911d1b 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PointImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PointImpl.java @@ -1,271 +1,271 @@ -/**
- */
-package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl;
-
-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;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesPackage;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Point;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Point</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PointImpl#getX <em>X</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PointImpl#getY <em>Y</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PointImpl#getZ <em>Z</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class PointImpl extends MinimalEObjectImpl.Container implements Point {
- /**
- * The default value of the '{@link #getX() <em>X</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getX()
- * @generated
- * @ordered
- */
- protected static final double X_EDEFAULT = 0.0;
-
- /**
- * The cached value of the '{@link #getX() <em>X</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getX()
- * @generated
- * @ordered
- */
- protected double x = X_EDEFAULT;
-
- /**
- * The default value of the '{@link #getY() <em>Y</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getY()
- * @generated
- * @ordered
- */
- protected static final double Y_EDEFAULT = 0.0;
-
- /**
- * The cached value of the '{@link #getY() <em>Y</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getY()
- * @generated
- * @ordered
- */
- protected double y = Y_EDEFAULT;
-
- /**
- * The default value of the '{@link #getZ() <em>Z</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getZ()
- * @generated
- * @ordered
- */
- protected static final double Z_EDEFAULT = 0.0;
-
- /**
- * The cached value of the '{@link #getZ() <em>Z</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getZ()
- * @generated
- * @ordered
- */
- protected double z = Z_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected PointImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Geometry_datatypesPackage.Literals.POINT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public double getX() {
- return x;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setX(double newX) {
- double oldX = x;
- x = newX;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POINT__X, oldX, x));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public double getY() {
- return y;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setY(double newY) {
- double oldY = y;
- y = newY;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POINT__Y, oldY, y));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public double getZ() {
- return z;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setZ(double newZ) {
- double oldZ = z;
- z = newZ;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POINT__Z, oldZ, z));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Geometry_datatypesPackage.POINT__X:
- return getX();
- case Geometry_datatypesPackage.POINT__Y:
- return getY();
- case Geometry_datatypesPackage.POINT__Z:
- return getZ();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Geometry_datatypesPackage.POINT__X:
- setX((Double)newValue);
- return;
- case Geometry_datatypesPackage.POINT__Y:
- setY((Double)newValue);
- return;
- case Geometry_datatypesPackage.POINT__Z:
- setZ((Double)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.POINT__X:
- setX(X_EDEFAULT);
- return;
- case Geometry_datatypesPackage.POINT__Y:
- setY(Y_EDEFAULT);
- return;
- case Geometry_datatypesPackage.POINT__Z:
- setZ(Z_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.POINT__X:
- return x != X_EDEFAULT;
- case Geometry_datatypesPackage.POINT__Y:
- return y != Y_EDEFAULT;
- case Geometry_datatypesPackage.POINT__Z:
- return z != Z_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (x: ");
- result.append(x);
- result.append(", y: ");
- result.append(y);
- result.append(", z: ");
- result.append(z);
- result.append(')');
- return result.toString();
- }
-
-} //PointImpl
+/** + */ +package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl; + +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; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesPackage; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Point; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Point</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PointImpl#getX <em>X</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PointImpl#getY <em>Y</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PointImpl#getZ <em>Z</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PointImpl extends MinimalEObjectImpl.Container implements Point { + /** + * The default value of the '{@link #getX() <em>X</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getX() + * @generated + * @ordered + */ + protected static final double X_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getX() <em>X</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getX() + * @generated + * @ordered + */ + protected double x = X_EDEFAULT; + + /** + * The default value of the '{@link #getY() <em>Y</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getY() + * @generated + * @ordered + */ + protected static final double Y_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getY() <em>Y</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getY() + * @generated + * @ordered + */ + protected double y = Y_EDEFAULT; + + /** + * The default value of the '{@link #getZ() <em>Z</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getZ() + * @generated + * @ordered + */ + protected static final double Z_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getZ() <em>Z</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getZ() + * @generated + * @ordered + */ + protected double z = Z_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PointImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Geometry_datatypesPackage.Literals.POINT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public double getX() { + return x; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setX(double newX) { + double oldX = x; + x = newX; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POINT__X, oldX, x)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public double getY() { + return y; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setY(double newY) { + double oldY = y; + y = newY; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POINT__Y, oldY, y)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public double getZ() { + return z; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setZ(double newZ) { + double oldZ = z; + z = newZ; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POINT__Z, oldZ, z)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Geometry_datatypesPackage.POINT__X: + return getX(); + case Geometry_datatypesPackage.POINT__Y: + return getY(); + case Geometry_datatypesPackage.POINT__Z: + return getZ(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Geometry_datatypesPackage.POINT__X: + setX((Double)newValue); + return; + case Geometry_datatypesPackage.POINT__Y: + setY((Double)newValue); + return; + case Geometry_datatypesPackage.POINT__Z: + setZ((Double)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.POINT__X: + setX(X_EDEFAULT); + return; + case Geometry_datatypesPackage.POINT__Y: + setY(Y_EDEFAULT); + return; + case Geometry_datatypesPackage.POINT__Z: + setZ(Z_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.POINT__X: + return x != X_EDEFAULT; + case Geometry_datatypesPackage.POINT__Y: + return y != Y_EDEFAULT; + case Geometry_datatypesPackage.POINT__Z: + return z != Z_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (x: "); + result.append(x); + result.append(", y: "); + result.append(y); + result.append(", z: "); + result.append(z); + result.append(')'); + return result.toString(); + } + +} //PointImpl diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PointStampedImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PointStampedImpl.java index 1c1c0fc4ebe..6fbef7e3e92 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PointStampedImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PointStampedImpl.java @@ -1,244 +1,244 @@ -/**
- */
-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.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.Point;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PointStamped;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Header;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Point Stamped</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PointStampedImpl#getHeader <em>Header</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PointStampedImpl#getPoint <em>Point</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class PointStampedImpl extends MinimalEObjectImpl.Container implements PointStamped {
- /**
- * The cached value of the '{@link #getHeader() <em>Header</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getHeader()
- * @generated
- * @ordered
- */
- protected Header header;
-
- /**
- * The cached value of the '{@link #getPoint() <em>Point</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPoint()
- * @generated
- * @ordered
- */
- protected Point point;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected PointStampedImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Geometry_datatypesPackage.Literals.POINT_STAMPED;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Header getHeader() {
- return header;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetHeader(Header newHeader, NotificationChain msgs) {
- Header oldHeader = header;
- header = newHeader;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POINT_STAMPED__HEADER, oldHeader, newHeader);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setHeader(Header newHeader) {
- if (newHeader != header) {
- NotificationChain msgs = null;
- if (header != null)
- msgs = ((InternalEObject)header).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POINT_STAMPED__HEADER, null, msgs);
- if (newHeader != null)
- msgs = ((InternalEObject)newHeader).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POINT_STAMPED__HEADER, null, msgs);
- msgs = basicSetHeader(newHeader, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POINT_STAMPED__HEADER, newHeader, newHeader));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Point getPoint() {
- return point;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetPoint(Point newPoint, NotificationChain msgs) {
- Point oldPoint = point;
- point = newPoint;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POINT_STAMPED__POINT, oldPoint, newPoint);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setPoint(Point newPoint) {
- if (newPoint != point) {
- NotificationChain msgs = null;
- if (point != null)
- msgs = ((InternalEObject)point).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POINT_STAMPED__POINT, null, msgs);
- if (newPoint != null)
- msgs = ((InternalEObject)newPoint).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POINT_STAMPED__POINT, null, msgs);
- msgs = basicSetPoint(newPoint, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POINT_STAMPED__POINT, newPoint, newPoint));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case Geometry_datatypesPackage.POINT_STAMPED__HEADER:
- return basicSetHeader(null, msgs);
- case Geometry_datatypesPackage.POINT_STAMPED__POINT:
- return basicSetPoint(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Geometry_datatypesPackage.POINT_STAMPED__HEADER:
- return getHeader();
- case Geometry_datatypesPackage.POINT_STAMPED__POINT:
- return getPoint();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Geometry_datatypesPackage.POINT_STAMPED__HEADER:
- setHeader((Header)newValue);
- return;
- case Geometry_datatypesPackage.POINT_STAMPED__POINT:
- setPoint((Point)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.POINT_STAMPED__HEADER:
- setHeader((Header)null);
- return;
- case Geometry_datatypesPackage.POINT_STAMPED__POINT:
- setPoint((Point)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.POINT_STAMPED__HEADER:
- return header != null;
- case Geometry_datatypesPackage.POINT_STAMPED__POINT:
- return point != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //PointStampedImpl
+/** + */ +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.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.Point; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PointStamped; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Header; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Point Stamped</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PointStampedImpl#getHeader <em>Header</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PointStampedImpl#getPoint <em>Point</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PointStampedImpl extends MinimalEObjectImpl.Container implements PointStamped { + /** + * The cached value of the '{@link #getHeader() <em>Header</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHeader() + * @generated + * @ordered + */ + protected Header header; + + /** + * The cached value of the '{@link #getPoint() <em>Point</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPoint() + * @generated + * @ordered + */ + protected Point point; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PointStampedImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Geometry_datatypesPackage.Literals.POINT_STAMPED; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Header getHeader() { + return header; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetHeader(Header newHeader, NotificationChain msgs) { + Header oldHeader = header; + header = newHeader; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POINT_STAMPED__HEADER, oldHeader, newHeader); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setHeader(Header newHeader) { + if (newHeader != header) { + NotificationChain msgs = null; + if (header != null) + msgs = ((InternalEObject)header).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POINT_STAMPED__HEADER, null, msgs); + if (newHeader != null) + msgs = ((InternalEObject)newHeader).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POINT_STAMPED__HEADER, null, msgs); + msgs = basicSetHeader(newHeader, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POINT_STAMPED__HEADER, newHeader, newHeader)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Point getPoint() { + return point; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPoint(Point newPoint, NotificationChain msgs) { + Point oldPoint = point; + point = newPoint; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POINT_STAMPED__POINT, oldPoint, newPoint); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPoint(Point newPoint) { + if (newPoint != point) { + NotificationChain msgs = null; + if (point != null) + msgs = ((InternalEObject)point).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POINT_STAMPED__POINT, null, msgs); + if (newPoint != null) + msgs = ((InternalEObject)newPoint).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POINT_STAMPED__POINT, null, msgs); + msgs = basicSetPoint(newPoint, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POINT_STAMPED__POINT, newPoint, newPoint)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case Geometry_datatypesPackage.POINT_STAMPED__HEADER: + return basicSetHeader(null, msgs); + case Geometry_datatypesPackage.POINT_STAMPED__POINT: + return basicSetPoint(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Geometry_datatypesPackage.POINT_STAMPED__HEADER: + return getHeader(); + case Geometry_datatypesPackage.POINT_STAMPED__POINT: + return getPoint(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Geometry_datatypesPackage.POINT_STAMPED__HEADER: + setHeader((Header)newValue); + return; + case Geometry_datatypesPackage.POINT_STAMPED__POINT: + setPoint((Point)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.POINT_STAMPED__HEADER: + setHeader((Header)null); + return; + case Geometry_datatypesPackage.POINT_STAMPED__POINT: + setPoint((Point)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.POINT_STAMPED__HEADER: + return header != null; + case Geometry_datatypesPackage.POINT_STAMPED__POINT: + return point != null; + } + return super.eIsSet(featureID); + } + +} //PointStampedImpl diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PolygonImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PolygonImpl.java index af70925dfe0..3217b4f5ca1 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PolygonImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PolygonImpl.java @@ -1,152 +1,152 @@ -/**
- */
-package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl;
-
-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;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesPackage;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Point32;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Polygon;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Polygon</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PolygonImpl#getPoint <em>Point</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class PolygonImpl extends MinimalEObjectImpl.Container implements Polygon {
- /**
- * The cached value of the '{@link #getPoint() <em>Point</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPoint()
- * @generated
- * @ordered
- */
- protected EList<Point32> point;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected PolygonImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Geometry_datatypesPackage.Literals.POLYGON;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<Point32> getPoint() {
- if (point == null) {
- point = new EObjectContainmentEList<Point32>(Point32.class, this, Geometry_datatypesPackage.POLYGON__POINT);
- }
- return point;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case Geometry_datatypesPackage.POLYGON__POINT:
- return ((InternalEList<?>)getPoint()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Geometry_datatypesPackage.POLYGON__POINT:
- return getPoint();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Geometry_datatypesPackage.POLYGON__POINT:
- getPoint().clear();
- getPoint().addAll((Collection<? extends Point32>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.POLYGON__POINT:
- getPoint().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.POLYGON__POINT:
- return point != null && !point.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
-} //PolygonImpl
+/** + */ +package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl; + +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; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesPackage; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Point32; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Polygon; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Polygon</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PolygonImpl#getPoint <em>Point</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PolygonImpl extends MinimalEObjectImpl.Container implements Polygon { + /** + * The cached value of the '{@link #getPoint() <em>Point</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPoint() + * @generated + * @ordered + */ + protected EList<Point32> point; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PolygonImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Geometry_datatypesPackage.Literals.POLYGON; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Point32> getPoint() { + if (point == null) { + point = new EObjectContainmentEList<Point32>(Point32.class, this, Geometry_datatypesPackage.POLYGON__POINT); + } + return point; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case Geometry_datatypesPackage.POLYGON__POINT: + return ((InternalEList<?>)getPoint()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Geometry_datatypesPackage.POLYGON__POINT: + return getPoint(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Geometry_datatypesPackage.POLYGON__POINT: + getPoint().clear(); + getPoint().addAll((Collection<? extends Point32>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.POLYGON__POINT: + getPoint().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.POLYGON__POINT: + return point != null && !point.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //PolygonImpl diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PolygonStampedImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PolygonStampedImpl.java index 2139e6a9be0..16975fd0b0e 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PolygonStampedImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PolygonStampedImpl.java @@ -1,244 +1,244 @@ -/**
- */
-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.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.Polygon;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PolygonStamped;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Header;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Polygon Stamped</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PolygonStampedImpl#getHeader <em>Header</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PolygonStampedImpl#getPolygon <em>Polygon</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class PolygonStampedImpl extends MinimalEObjectImpl.Container implements PolygonStamped {
- /**
- * The cached value of the '{@link #getHeader() <em>Header</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getHeader()
- * @generated
- * @ordered
- */
- protected Header header;
-
- /**
- * The cached value of the '{@link #getPolygon() <em>Polygon</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPolygon()
- * @generated
- * @ordered
- */
- protected Polygon polygon;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected PolygonStampedImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Geometry_datatypesPackage.Literals.POLYGON_STAMPED;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Header getHeader() {
- return header;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetHeader(Header newHeader, NotificationChain msgs) {
- Header oldHeader = header;
- header = newHeader;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POLYGON_STAMPED__HEADER, oldHeader, newHeader);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setHeader(Header newHeader) {
- if (newHeader != header) {
- NotificationChain msgs = null;
- if (header != null)
- msgs = ((InternalEObject)header).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POLYGON_STAMPED__HEADER, null, msgs);
- if (newHeader != null)
- msgs = ((InternalEObject)newHeader).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POLYGON_STAMPED__HEADER, null, msgs);
- msgs = basicSetHeader(newHeader, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POLYGON_STAMPED__HEADER, newHeader, newHeader));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Polygon getPolygon() {
- return polygon;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetPolygon(Polygon newPolygon, NotificationChain msgs) {
- Polygon oldPolygon = polygon;
- polygon = newPolygon;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POLYGON_STAMPED__POLYGON, oldPolygon, newPolygon);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setPolygon(Polygon newPolygon) {
- if (newPolygon != polygon) {
- NotificationChain msgs = null;
- if (polygon != null)
- msgs = ((InternalEObject)polygon).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POLYGON_STAMPED__POLYGON, null, msgs);
- if (newPolygon != null)
- msgs = ((InternalEObject)newPolygon).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POLYGON_STAMPED__POLYGON, null, msgs);
- msgs = basicSetPolygon(newPolygon, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POLYGON_STAMPED__POLYGON, newPolygon, newPolygon));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case Geometry_datatypesPackage.POLYGON_STAMPED__HEADER:
- return basicSetHeader(null, msgs);
- case Geometry_datatypesPackage.POLYGON_STAMPED__POLYGON:
- return basicSetPolygon(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Geometry_datatypesPackage.POLYGON_STAMPED__HEADER:
- return getHeader();
- case Geometry_datatypesPackage.POLYGON_STAMPED__POLYGON:
- return getPolygon();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Geometry_datatypesPackage.POLYGON_STAMPED__HEADER:
- setHeader((Header)newValue);
- return;
- case Geometry_datatypesPackage.POLYGON_STAMPED__POLYGON:
- setPolygon((Polygon)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.POLYGON_STAMPED__HEADER:
- setHeader((Header)null);
- return;
- case Geometry_datatypesPackage.POLYGON_STAMPED__POLYGON:
- setPolygon((Polygon)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.POLYGON_STAMPED__HEADER:
- return header != null;
- case Geometry_datatypesPackage.POLYGON_STAMPED__POLYGON:
- return polygon != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //PolygonStampedImpl
+/** + */ +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.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.Polygon; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PolygonStamped; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Header; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Polygon Stamped</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PolygonStampedImpl#getHeader <em>Header</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PolygonStampedImpl#getPolygon <em>Polygon</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PolygonStampedImpl extends MinimalEObjectImpl.Container implements PolygonStamped { + /** + * The cached value of the '{@link #getHeader() <em>Header</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHeader() + * @generated + * @ordered + */ + protected Header header; + + /** + * The cached value of the '{@link #getPolygon() <em>Polygon</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPolygon() + * @generated + * @ordered + */ + protected Polygon polygon; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PolygonStampedImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Geometry_datatypesPackage.Literals.POLYGON_STAMPED; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Header getHeader() { + return header; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetHeader(Header newHeader, NotificationChain msgs) { + Header oldHeader = header; + header = newHeader; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POLYGON_STAMPED__HEADER, oldHeader, newHeader); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setHeader(Header newHeader) { + if (newHeader != header) { + NotificationChain msgs = null; + if (header != null) + msgs = ((InternalEObject)header).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POLYGON_STAMPED__HEADER, null, msgs); + if (newHeader != null) + msgs = ((InternalEObject)newHeader).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POLYGON_STAMPED__HEADER, null, msgs); + msgs = basicSetHeader(newHeader, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POLYGON_STAMPED__HEADER, newHeader, newHeader)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Polygon getPolygon() { + return polygon; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPolygon(Polygon newPolygon, NotificationChain msgs) { + Polygon oldPolygon = polygon; + polygon = newPolygon; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POLYGON_STAMPED__POLYGON, oldPolygon, newPolygon); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPolygon(Polygon newPolygon) { + if (newPolygon != polygon) { + NotificationChain msgs = null; + if (polygon != null) + msgs = ((InternalEObject)polygon).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POLYGON_STAMPED__POLYGON, null, msgs); + if (newPolygon != null) + msgs = ((InternalEObject)newPolygon).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POLYGON_STAMPED__POLYGON, null, msgs); + msgs = basicSetPolygon(newPolygon, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POLYGON_STAMPED__POLYGON, newPolygon, newPolygon)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case Geometry_datatypesPackage.POLYGON_STAMPED__HEADER: + return basicSetHeader(null, msgs); + case Geometry_datatypesPackage.POLYGON_STAMPED__POLYGON: + return basicSetPolygon(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Geometry_datatypesPackage.POLYGON_STAMPED__HEADER: + return getHeader(); + case Geometry_datatypesPackage.POLYGON_STAMPED__POLYGON: + return getPolygon(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Geometry_datatypesPackage.POLYGON_STAMPED__HEADER: + setHeader((Header)newValue); + return; + case Geometry_datatypesPackage.POLYGON_STAMPED__POLYGON: + setPolygon((Polygon)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.POLYGON_STAMPED__HEADER: + setHeader((Header)null); + return; + case Geometry_datatypesPackage.POLYGON_STAMPED__POLYGON: + setPolygon((Polygon)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.POLYGON_STAMPED__HEADER: + return header != null; + case Geometry_datatypesPackage.POLYGON_STAMPED__POLYGON: + return polygon != null; + } + return super.eIsSet(featureID); + } + +} //PolygonStampedImpl diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Pose2DImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Pose2DImpl.java index ba75c5ad82a..928d4b79557 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Pose2DImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Pose2DImpl.java @@ -1,271 +1,271 @@ -/**
- */
-package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl;
-
-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;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesPackage;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Pose2D;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Pose2 D</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Pose2DImpl#getX <em>X</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Pose2DImpl#getY <em>Y</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Pose2DImpl#getTheta <em>Theta</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class Pose2DImpl extends MinimalEObjectImpl.Container implements Pose2D {
- /**
- * The default value of the '{@link #getX() <em>X</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getX()
- * @generated
- * @ordered
- */
- protected static final double X_EDEFAULT = 0.0;
-
- /**
- * The cached value of the '{@link #getX() <em>X</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getX()
- * @generated
- * @ordered
- */
- protected double x = X_EDEFAULT;
-
- /**
- * The default value of the '{@link #getY() <em>Y</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getY()
- * @generated
- * @ordered
- */
- protected static final double Y_EDEFAULT = 0.0;
-
- /**
- * The cached value of the '{@link #getY() <em>Y</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getY()
- * @generated
- * @ordered
- */
- protected double y = Y_EDEFAULT;
-
- /**
- * The default value of the '{@link #getTheta() <em>Theta</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTheta()
- * @generated
- * @ordered
- */
- protected static final double THETA_EDEFAULT = 0.0;
-
- /**
- * The cached value of the '{@link #getTheta() <em>Theta</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTheta()
- * @generated
- * @ordered
- */
- protected double theta = THETA_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected Pose2DImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Geometry_datatypesPackage.Literals.POSE2_D;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public double getX() {
- return x;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setX(double newX) {
- double oldX = x;
- x = newX;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE2_D__X, oldX, x));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public double getY() {
- return y;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setY(double newY) {
- double oldY = y;
- y = newY;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE2_D__Y, oldY, y));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public double getTheta() {
- return theta;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTheta(double newTheta) {
- double oldTheta = theta;
- theta = newTheta;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE2_D__THETA, oldTheta, theta));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE2_D__X:
- return getX();
- case Geometry_datatypesPackage.POSE2_D__Y:
- return getY();
- case Geometry_datatypesPackage.POSE2_D__THETA:
- return getTheta();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE2_D__X:
- setX((Double)newValue);
- return;
- case Geometry_datatypesPackage.POSE2_D__Y:
- setY((Double)newValue);
- return;
- case Geometry_datatypesPackage.POSE2_D__THETA:
- setTheta((Double)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE2_D__X:
- setX(X_EDEFAULT);
- return;
- case Geometry_datatypesPackage.POSE2_D__Y:
- setY(Y_EDEFAULT);
- return;
- case Geometry_datatypesPackage.POSE2_D__THETA:
- setTheta(THETA_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE2_D__X:
- return x != X_EDEFAULT;
- case Geometry_datatypesPackage.POSE2_D__Y:
- return y != Y_EDEFAULT;
- case Geometry_datatypesPackage.POSE2_D__THETA:
- return theta != THETA_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (x: ");
- result.append(x);
- result.append(", y: ");
- result.append(y);
- result.append(", theta: ");
- result.append(theta);
- result.append(')');
- return result.toString();
- }
-
-} //Pose2DImpl
+/** + */ +package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl; + +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; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesPackage; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Pose2D; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Pose2 D</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Pose2DImpl#getX <em>X</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Pose2DImpl#getY <em>Y</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Pose2DImpl#getTheta <em>Theta</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class Pose2DImpl extends MinimalEObjectImpl.Container implements Pose2D { + /** + * The default value of the '{@link #getX() <em>X</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getX() + * @generated + * @ordered + */ + protected static final double X_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getX() <em>X</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getX() + * @generated + * @ordered + */ + protected double x = X_EDEFAULT; + + /** + * The default value of the '{@link #getY() <em>Y</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getY() + * @generated + * @ordered + */ + protected static final double Y_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getY() <em>Y</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getY() + * @generated + * @ordered + */ + protected double y = Y_EDEFAULT; + + /** + * The default value of the '{@link #getTheta() <em>Theta</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTheta() + * @generated + * @ordered + */ + protected static final double THETA_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getTheta() <em>Theta</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTheta() + * @generated + * @ordered + */ + protected double theta = THETA_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected Pose2DImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Geometry_datatypesPackage.Literals.POSE2_D; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public double getX() { + return x; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setX(double newX) { + double oldX = x; + x = newX; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE2_D__X, oldX, x)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public double getY() { + return y; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setY(double newY) { + double oldY = y; + y = newY; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE2_D__Y, oldY, y)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public double getTheta() { + return theta; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTheta(double newTheta) { + double oldTheta = theta; + theta = newTheta; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE2_D__THETA, oldTheta, theta)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Geometry_datatypesPackage.POSE2_D__X: + return getX(); + case Geometry_datatypesPackage.POSE2_D__Y: + return getY(); + case Geometry_datatypesPackage.POSE2_D__THETA: + return getTheta(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Geometry_datatypesPackage.POSE2_D__X: + setX((Double)newValue); + return; + case Geometry_datatypesPackage.POSE2_D__Y: + setY((Double)newValue); + return; + case Geometry_datatypesPackage.POSE2_D__THETA: + setTheta((Double)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.POSE2_D__X: + setX(X_EDEFAULT); + return; + case Geometry_datatypesPackage.POSE2_D__Y: + setY(Y_EDEFAULT); + return; + case Geometry_datatypesPackage.POSE2_D__THETA: + setTheta(THETA_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.POSE2_D__X: + return x != X_EDEFAULT; + case Geometry_datatypesPackage.POSE2_D__Y: + return y != Y_EDEFAULT; + case Geometry_datatypesPackage.POSE2_D__THETA: + return theta != THETA_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (x: "); + result.append(x); + result.append(", y: "); + result.append(y); + result.append(", theta: "); + result.append(theta); + result.append(')'); + return result.toString(); + } + +} //Pose2DImpl diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseArrayImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseArrayImpl.java index db2a5d7ecd8..089fe513a7f 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseArrayImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseArrayImpl.java @@ -1,222 +1,222 @@ -/**
- */
-package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl;
-
-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;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesPackage;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Pose;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PoseArray;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Header;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Pose Array</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PoseArrayImpl#getHeader <em>Header</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PoseArrayImpl#getPoses <em>Poses</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class PoseArrayImpl extends MinimalEObjectImpl.Container implements PoseArray {
- /**
- * The cached value of the '{@link #getHeader() <em>Header</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getHeader()
- * @generated
- * @ordered
- */
- protected Header header;
-
- /**
- * The cached value of the '{@link #getPoses() <em>Poses</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPoses()
- * @generated
- * @ordered
- */
- protected EList<Pose> poses;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected PoseArrayImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Geometry_datatypesPackage.Literals.POSE_ARRAY;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Header getHeader() {
- return header;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetHeader(Header newHeader, NotificationChain msgs) {
- Header oldHeader = header;
- header = newHeader;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE_ARRAY__HEADER, oldHeader, newHeader);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setHeader(Header newHeader) {
- if (newHeader != header) {
- NotificationChain msgs = null;
- if (header != null)
- msgs = ((InternalEObject)header).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_ARRAY__HEADER, null, msgs);
- if (newHeader != null)
- msgs = ((InternalEObject)newHeader).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_ARRAY__HEADER, null, msgs);
- msgs = basicSetHeader(newHeader, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE_ARRAY__HEADER, newHeader, newHeader));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<Pose> getPoses() {
- if (poses == null) {
- poses = new EObjectContainmentEList<Pose>(Pose.class, this, Geometry_datatypesPackage.POSE_ARRAY__POSES);
- }
- return poses;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE_ARRAY__HEADER:
- return basicSetHeader(null, msgs);
- case Geometry_datatypesPackage.POSE_ARRAY__POSES:
- return ((InternalEList<?>)getPoses()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE_ARRAY__HEADER:
- return getHeader();
- case Geometry_datatypesPackage.POSE_ARRAY__POSES:
- return getPoses();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE_ARRAY__HEADER:
- setHeader((Header)newValue);
- return;
- case Geometry_datatypesPackage.POSE_ARRAY__POSES:
- getPoses().clear();
- getPoses().addAll((Collection<? extends Pose>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE_ARRAY__HEADER:
- setHeader((Header)null);
- return;
- case Geometry_datatypesPackage.POSE_ARRAY__POSES:
- getPoses().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE_ARRAY__HEADER:
- return header != null;
- case Geometry_datatypesPackage.POSE_ARRAY__POSES:
- return poses != null && !poses.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
-} //PoseArrayImpl
+/** + */ +package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl; + +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; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesPackage; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Pose; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PoseArray; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Header; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Pose Array</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PoseArrayImpl#getHeader <em>Header</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PoseArrayImpl#getPoses <em>Poses</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PoseArrayImpl extends MinimalEObjectImpl.Container implements PoseArray { + /** + * The cached value of the '{@link #getHeader() <em>Header</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHeader() + * @generated + * @ordered + */ + protected Header header; + + /** + * The cached value of the '{@link #getPoses() <em>Poses</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPoses() + * @generated + * @ordered + */ + protected EList<Pose> poses; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PoseArrayImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Geometry_datatypesPackage.Literals.POSE_ARRAY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Header getHeader() { + return header; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetHeader(Header newHeader, NotificationChain msgs) { + Header oldHeader = header; + header = newHeader; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE_ARRAY__HEADER, oldHeader, newHeader); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setHeader(Header newHeader) { + if (newHeader != header) { + NotificationChain msgs = null; + if (header != null) + msgs = ((InternalEObject)header).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_ARRAY__HEADER, null, msgs); + if (newHeader != null) + msgs = ((InternalEObject)newHeader).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_ARRAY__HEADER, null, msgs); + msgs = basicSetHeader(newHeader, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE_ARRAY__HEADER, newHeader, newHeader)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Pose> getPoses() { + if (poses == null) { + poses = new EObjectContainmentEList<Pose>(Pose.class, this, Geometry_datatypesPackage.POSE_ARRAY__POSES); + } + return poses; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case Geometry_datatypesPackage.POSE_ARRAY__HEADER: + return basicSetHeader(null, msgs); + case Geometry_datatypesPackage.POSE_ARRAY__POSES: + return ((InternalEList<?>)getPoses()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Geometry_datatypesPackage.POSE_ARRAY__HEADER: + return getHeader(); + case Geometry_datatypesPackage.POSE_ARRAY__POSES: + return getPoses(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Geometry_datatypesPackage.POSE_ARRAY__HEADER: + setHeader((Header)newValue); + return; + case Geometry_datatypesPackage.POSE_ARRAY__POSES: + getPoses().clear(); + getPoses().addAll((Collection<? extends Pose>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.POSE_ARRAY__HEADER: + setHeader((Header)null); + return; + case Geometry_datatypesPackage.POSE_ARRAY__POSES: + getPoses().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.POSE_ARRAY__HEADER: + return header != null; + case Geometry_datatypesPackage.POSE_ARRAY__POSES: + return poses != null && !poses.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //PoseArrayImpl diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseImpl.java index 31fd578db7c..aedbf1d5e3a 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseImpl.java @@ -1,243 +1,243 @@ -/**
- */
-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.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.Point;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Pose;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Quaternion;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Pose</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PoseImpl#getPosition <em>Position</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PoseImpl#getOrientation <em>Orientation</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class PoseImpl extends MinimalEObjectImpl.Container implements Pose {
- /**
- * The cached value of the '{@link #getPosition() <em>Position</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPosition()
- * @generated
- * @ordered
- */
- protected Point position;
-
- /**
- * The cached value of the '{@link #getOrientation() <em>Orientation</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getOrientation()
- * @generated
- * @ordered
- */
- protected Quaternion orientation;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected PoseImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Geometry_datatypesPackage.Literals.POSE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Point getPosition() {
- return position;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetPosition(Point newPosition, NotificationChain msgs) {
- Point oldPosition = position;
- position = newPosition;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE__POSITION, oldPosition, newPosition);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setPosition(Point newPosition) {
- if (newPosition != position) {
- NotificationChain msgs = null;
- if (position != null)
- msgs = ((InternalEObject)position).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE__POSITION, null, msgs);
- if (newPosition != null)
- msgs = ((InternalEObject)newPosition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE__POSITION, null, msgs);
- msgs = basicSetPosition(newPosition, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE__POSITION, newPosition, newPosition));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Quaternion getOrientation() {
- return orientation;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetOrientation(Quaternion newOrientation, NotificationChain msgs) {
- Quaternion oldOrientation = orientation;
- orientation = newOrientation;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE__ORIENTATION, oldOrientation, newOrientation);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setOrientation(Quaternion newOrientation) {
- if (newOrientation != orientation) {
- NotificationChain msgs = null;
- if (orientation != null)
- msgs = ((InternalEObject)orientation).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE__ORIENTATION, null, msgs);
- if (newOrientation != null)
- msgs = ((InternalEObject)newOrientation).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE__ORIENTATION, null, msgs);
- msgs = basicSetOrientation(newOrientation, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE__ORIENTATION, newOrientation, newOrientation));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE__POSITION:
- return basicSetPosition(null, msgs);
- case Geometry_datatypesPackage.POSE__ORIENTATION:
- return basicSetOrientation(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE__POSITION:
- return getPosition();
- case Geometry_datatypesPackage.POSE__ORIENTATION:
- return getOrientation();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE__POSITION:
- setPosition((Point)newValue);
- return;
- case Geometry_datatypesPackage.POSE__ORIENTATION:
- setOrientation((Quaternion)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE__POSITION:
- setPosition((Point)null);
- return;
- case Geometry_datatypesPackage.POSE__ORIENTATION:
- setOrientation((Quaternion)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE__POSITION:
- return position != null;
- case Geometry_datatypesPackage.POSE__ORIENTATION:
- return orientation != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //PoseImpl
+/** + */ +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.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.Point; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Pose; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Quaternion; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Pose</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PoseImpl#getPosition <em>Position</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PoseImpl#getOrientation <em>Orientation</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PoseImpl extends MinimalEObjectImpl.Container implements Pose { + /** + * The cached value of the '{@link #getPosition() <em>Position</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPosition() + * @generated + * @ordered + */ + protected Point position; + + /** + * The cached value of the '{@link #getOrientation() <em>Orientation</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOrientation() + * @generated + * @ordered + */ + protected Quaternion orientation; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PoseImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Geometry_datatypesPackage.Literals.POSE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Point getPosition() { + return position; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPosition(Point newPosition, NotificationChain msgs) { + Point oldPosition = position; + position = newPosition; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE__POSITION, oldPosition, newPosition); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPosition(Point newPosition) { + if (newPosition != position) { + NotificationChain msgs = null; + if (position != null) + msgs = ((InternalEObject)position).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE__POSITION, null, msgs); + if (newPosition != null) + msgs = ((InternalEObject)newPosition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE__POSITION, null, msgs); + msgs = basicSetPosition(newPosition, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE__POSITION, newPosition, newPosition)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Quaternion getOrientation() { + return orientation; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetOrientation(Quaternion newOrientation, NotificationChain msgs) { + Quaternion oldOrientation = orientation; + orientation = newOrientation; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE__ORIENTATION, oldOrientation, newOrientation); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOrientation(Quaternion newOrientation) { + if (newOrientation != orientation) { + NotificationChain msgs = null; + if (orientation != null) + msgs = ((InternalEObject)orientation).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE__ORIENTATION, null, msgs); + if (newOrientation != null) + msgs = ((InternalEObject)newOrientation).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE__ORIENTATION, null, msgs); + msgs = basicSetOrientation(newOrientation, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE__ORIENTATION, newOrientation, newOrientation)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case Geometry_datatypesPackage.POSE__POSITION: + return basicSetPosition(null, msgs); + case Geometry_datatypesPackage.POSE__ORIENTATION: + return basicSetOrientation(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Geometry_datatypesPackage.POSE__POSITION: + return getPosition(); + case Geometry_datatypesPackage.POSE__ORIENTATION: + return getOrientation(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Geometry_datatypesPackage.POSE__POSITION: + setPosition((Point)newValue); + return; + case Geometry_datatypesPackage.POSE__ORIENTATION: + setOrientation((Quaternion)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.POSE__POSITION: + setPosition((Point)null); + return; + case Geometry_datatypesPackage.POSE__ORIENTATION: + setOrientation((Quaternion)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.POSE__POSITION: + return position != null; + case Geometry_datatypesPackage.POSE__ORIENTATION: + return orientation != null; + } + return super.eIsSet(featureID); + } + +} //PoseImpl diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseStampedImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseStampedImpl.java index 9d43f9cd44f..6bbca3e4935 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseStampedImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseStampedImpl.java @@ -1,244 +1,244 @@ -/**
- */
-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.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.Pose;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PoseStamped;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Header;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Pose Stamped</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PoseStampedImpl#getHeader <em>Header</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PoseStampedImpl#getPose <em>Pose</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class PoseStampedImpl extends MinimalEObjectImpl.Container implements PoseStamped {
- /**
- * The cached value of the '{@link #getHeader() <em>Header</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getHeader()
- * @generated
- * @ordered
- */
- protected Header header;
-
- /**
- * The cached value of the '{@link #getPose() <em>Pose</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPose()
- * @generated
- * @ordered
- */
- protected Pose pose;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected PoseStampedImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Geometry_datatypesPackage.Literals.POSE_STAMPED;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Header getHeader() {
- return header;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetHeader(Header newHeader, NotificationChain msgs) {
- Header oldHeader = header;
- header = newHeader;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE_STAMPED__HEADER, oldHeader, newHeader);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setHeader(Header newHeader) {
- if (newHeader != header) {
- NotificationChain msgs = null;
- if (header != null)
- msgs = ((InternalEObject)header).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_STAMPED__HEADER, null, msgs);
- if (newHeader != null)
- msgs = ((InternalEObject)newHeader).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_STAMPED__HEADER, null, msgs);
- msgs = basicSetHeader(newHeader, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE_STAMPED__HEADER, newHeader, newHeader));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Pose getPose() {
- return pose;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetPose(Pose newPose, NotificationChain msgs) {
- Pose oldPose = pose;
- pose = newPose;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE_STAMPED__POSE, oldPose, newPose);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setPose(Pose newPose) {
- if (newPose != pose) {
- NotificationChain msgs = null;
- if (pose != null)
- msgs = ((InternalEObject)pose).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_STAMPED__POSE, null, msgs);
- if (newPose != null)
- msgs = ((InternalEObject)newPose).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_STAMPED__POSE, null, msgs);
- msgs = basicSetPose(newPose, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE_STAMPED__POSE, newPose, newPose));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE_STAMPED__HEADER:
- return basicSetHeader(null, msgs);
- case Geometry_datatypesPackage.POSE_STAMPED__POSE:
- return basicSetPose(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE_STAMPED__HEADER:
- return getHeader();
- case Geometry_datatypesPackage.POSE_STAMPED__POSE:
- return getPose();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE_STAMPED__HEADER:
- setHeader((Header)newValue);
- return;
- case Geometry_datatypesPackage.POSE_STAMPED__POSE:
- setPose((Pose)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE_STAMPED__HEADER:
- setHeader((Header)null);
- return;
- case Geometry_datatypesPackage.POSE_STAMPED__POSE:
- setPose((Pose)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE_STAMPED__HEADER:
- return header != null;
- case Geometry_datatypesPackage.POSE_STAMPED__POSE:
- return pose != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //PoseStampedImpl
+/** + */ +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.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.Pose; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PoseStamped; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Header; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Pose Stamped</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PoseStampedImpl#getHeader <em>Header</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PoseStampedImpl#getPose <em>Pose</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PoseStampedImpl extends MinimalEObjectImpl.Container implements PoseStamped { + /** + * The cached value of the '{@link #getHeader() <em>Header</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHeader() + * @generated + * @ordered + */ + protected Header header; + + /** + * The cached value of the '{@link #getPose() <em>Pose</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPose() + * @generated + * @ordered + */ + protected Pose pose; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PoseStampedImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Geometry_datatypesPackage.Literals.POSE_STAMPED; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Header getHeader() { + return header; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetHeader(Header newHeader, NotificationChain msgs) { + Header oldHeader = header; + header = newHeader; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE_STAMPED__HEADER, oldHeader, newHeader); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setHeader(Header newHeader) { + if (newHeader != header) { + NotificationChain msgs = null; + if (header != null) + msgs = ((InternalEObject)header).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_STAMPED__HEADER, null, msgs); + if (newHeader != null) + msgs = ((InternalEObject)newHeader).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_STAMPED__HEADER, null, msgs); + msgs = basicSetHeader(newHeader, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE_STAMPED__HEADER, newHeader, newHeader)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Pose getPose() { + return pose; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPose(Pose newPose, NotificationChain msgs) { + Pose oldPose = pose; + pose = newPose; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE_STAMPED__POSE, oldPose, newPose); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPose(Pose newPose) { + if (newPose != pose) { + NotificationChain msgs = null; + if (pose != null) + msgs = ((InternalEObject)pose).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_STAMPED__POSE, null, msgs); + if (newPose != null) + msgs = ((InternalEObject)newPose).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_STAMPED__POSE, null, msgs); + msgs = basicSetPose(newPose, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE_STAMPED__POSE, newPose, newPose)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case Geometry_datatypesPackage.POSE_STAMPED__HEADER: + return basicSetHeader(null, msgs); + case Geometry_datatypesPackage.POSE_STAMPED__POSE: + return basicSetPose(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Geometry_datatypesPackage.POSE_STAMPED__HEADER: + return getHeader(); + case Geometry_datatypesPackage.POSE_STAMPED__POSE: + return getPose(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Geometry_datatypesPackage.POSE_STAMPED__HEADER: + setHeader((Header)newValue); + return; + case Geometry_datatypesPackage.POSE_STAMPED__POSE: + setPose((Pose)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.POSE_STAMPED__HEADER: + setHeader((Header)null); + return; + case Geometry_datatypesPackage.POSE_STAMPED__POSE: + setPose((Pose)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.POSE_STAMPED__HEADER: + return header != null; + case Geometry_datatypesPackage.POSE_STAMPED__POSE: + return pose != null; + } + return super.eIsSet(featureID); + } + +} //PoseStampedImpl diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseWithCovarianceImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseWithCovarianceImpl.java index 09eaed00222..207eab74742 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseWithCovarianceImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseWithCovarianceImpl.java @@ -1,233 +1,233 @@ -/**
- */
-package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl;
-
-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.EDataTypeUniqueEList;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesPackage;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Pose;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PoseWithCovariance;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Pose With Covariance</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PoseWithCovarianceImpl#getPose <em>Pose</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PoseWithCovarianceImpl#getCovariance <em>Covariance</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class PoseWithCovarianceImpl extends MinimalEObjectImpl.Container implements PoseWithCovariance {
- /**
- * The cached value of the '{@link #getPose() <em>Pose</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPose()
- * @generated
- * @ordered
- */
- protected Pose pose;
-
- /**
- * The cached value of the '{@link #getCovariance() <em>Covariance</em>}' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getCovariance()
- * @generated
- * @ordered
- */
- protected EList<Double> covariance;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected PoseWithCovarianceImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Geometry_datatypesPackage.Literals.POSE_WITH_COVARIANCE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Pose getPose() {
- return pose;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetPose(Pose newPose, NotificationChain msgs) {
- Pose oldPose = pose;
- pose = newPose;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE_WITH_COVARIANCE__POSE, oldPose, newPose);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setPose(Pose newPose) {
- if (newPose != pose) {
- NotificationChain msgs = null;
- if (pose != null)
- msgs = ((InternalEObject)pose).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_WITH_COVARIANCE__POSE, null, msgs);
- if (newPose != null)
- msgs = ((InternalEObject)newPose).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_WITH_COVARIANCE__POSE, null, msgs);
- msgs = basicSetPose(newPose, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE_WITH_COVARIANCE__POSE, newPose, newPose));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<Double> getCovariance() {
- if (covariance == null) {
- covariance = new EDataTypeUniqueEList<Double>(Double.class, this, Geometry_datatypesPackage.POSE_WITH_COVARIANCE__COVARIANCE);
- }
- return covariance;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE_WITH_COVARIANCE__POSE:
- return basicSetPose(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE_WITH_COVARIANCE__POSE:
- return getPose();
- case Geometry_datatypesPackage.POSE_WITH_COVARIANCE__COVARIANCE:
- return getCovariance();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE_WITH_COVARIANCE__POSE:
- setPose((Pose)newValue);
- return;
- case Geometry_datatypesPackage.POSE_WITH_COVARIANCE__COVARIANCE:
- getCovariance().clear();
- getCovariance().addAll((Collection<? extends Double>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE_WITH_COVARIANCE__POSE:
- setPose((Pose)null);
- return;
- case Geometry_datatypesPackage.POSE_WITH_COVARIANCE__COVARIANCE:
- getCovariance().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.POSE_WITH_COVARIANCE__POSE:
- return pose != null;
- case Geometry_datatypesPackage.POSE_WITH_COVARIANCE__COVARIANCE:
- return covariance != null && !covariance.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (covariance: ");
- result.append(covariance);
- result.append(')');
- return result.toString();
- }
-
-} //PoseWithCovarianceImpl
+/** + */ +package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl; + +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.EDataTypeUniqueEList; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesPackage; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Pose; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.PoseWithCovariance; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Pose With Covariance</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PoseWithCovarianceImpl#getPose <em>Pose</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.PoseWithCovarianceImpl#getCovariance <em>Covariance</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PoseWithCovarianceImpl extends MinimalEObjectImpl.Container implements PoseWithCovariance { + /** + * The cached value of the '{@link #getPose() <em>Pose</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPose() + * @generated + * @ordered + */ + protected Pose pose; + + /** + * The cached value of the '{@link #getCovariance() <em>Covariance</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCovariance() + * @generated + * @ordered + */ + protected EList<Double> covariance; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PoseWithCovarianceImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Geometry_datatypesPackage.Literals.POSE_WITH_COVARIANCE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Pose getPose() { + return pose; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPose(Pose newPose, NotificationChain msgs) { + Pose oldPose = pose; + pose = newPose; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE_WITH_COVARIANCE__POSE, oldPose, newPose); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPose(Pose newPose) { + if (newPose != pose) { + NotificationChain msgs = null; + if (pose != null) + msgs = ((InternalEObject)pose).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_WITH_COVARIANCE__POSE, null, msgs); + if (newPose != null) + msgs = ((InternalEObject)newPose).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.POSE_WITH_COVARIANCE__POSE, null, msgs); + msgs = basicSetPose(newPose, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.POSE_WITH_COVARIANCE__POSE, newPose, newPose)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Double> getCovariance() { + if (covariance == null) { + covariance = new EDataTypeUniqueEList<Double>(Double.class, this, Geometry_datatypesPackage.POSE_WITH_COVARIANCE__COVARIANCE); + } + return covariance; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case Geometry_datatypesPackage.POSE_WITH_COVARIANCE__POSE: + return basicSetPose(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Geometry_datatypesPackage.POSE_WITH_COVARIANCE__POSE: + return getPose(); + case Geometry_datatypesPackage.POSE_WITH_COVARIANCE__COVARIANCE: + return getCovariance(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Geometry_datatypesPackage.POSE_WITH_COVARIANCE__POSE: + setPose((Pose)newValue); + return; + case Geometry_datatypesPackage.POSE_WITH_COVARIANCE__COVARIANCE: + getCovariance().clear(); + getCovariance().addAll((Collection<? extends Double>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.POSE_WITH_COVARIANCE__POSE: + setPose((Pose)null); + return; + case Geometry_datatypesPackage.POSE_WITH_COVARIANCE__COVARIANCE: + getCovariance().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.POSE_WITH_COVARIANCE__POSE: + return pose != null; + case Geometry_datatypesPackage.POSE_WITH_COVARIANCE__COVARIANCE: + return covariance != null && !covariance.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (covariance: "); + result.append(covariance); + result.append(')'); + return result.toString(); + } + +} //PoseWithCovarianceImpl diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseWithCovarianceStampedImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseWithCovarianceStampedImpl.java index ecb9e4c8052..d9bd4ff371f 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseWithCovarianceStampedImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/PoseWithCovarianceStampedImpl.java @@ -1,41 +1,41 @@ -/**
- */
-package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl;
-
-import org.eclipse.emf.ecore.EClass;
-
-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.PoseWithCovarianceStamped;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Pose With Covariance Stamped</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class PoseWithCovarianceStampedImpl extends MinimalEObjectImpl.Container implements PoseWithCovarianceStamped {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected PoseWithCovarianceStampedImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Geometry_datatypesPackage.Literals.POSE_WITH_COVARIANCE_STAMPED;
- }
-
-} //PoseWithCovarianceStampedImpl
+/** + */ +package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl; + +import org.eclipse.emf.ecore.EClass; + +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.PoseWithCovarianceStamped; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Pose With Covariance Stamped</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class PoseWithCovarianceStampedImpl extends MinimalEObjectImpl.Container implements PoseWithCovarianceStamped { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PoseWithCovarianceStampedImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Geometry_datatypesPackage.Literals.POSE_WITH_COVARIANCE_STAMPED; + } + +} //PoseWithCovarianceStampedImpl diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/QuaternionImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/QuaternionImpl.java index 8e440ae1676..ff98c86b5ab 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/QuaternionImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/QuaternionImpl.java @@ -1,325 +1,325 @@ -/**
- */
-package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl;
-
-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;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesPackage;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Quaternion;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Quaternion</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.QuaternionImpl#getX <em>X</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.QuaternionImpl#getY <em>Y</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.QuaternionImpl#getZ <em>Z</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.QuaternionImpl#getW <em>W</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class QuaternionImpl extends MinimalEObjectImpl.Container implements Quaternion {
- /**
- * The default value of the '{@link #getX() <em>X</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getX()
- * @generated
- * @ordered
- */
- protected static final double X_EDEFAULT = 0.0;
-
- /**
- * The cached value of the '{@link #getX() <em>X</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getX()
- * @generated
- * @ordered
- */
- protected double x = X_EDEFAULT;
-
- /**
- * The default value of the '{@link #getY() <em>Y</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getY()
- * @generated
- * @ordered
- */
- protected static final double Y_EDEFAULT = 0.0;
-
- /**
- * The cached value of the '{@link #getY() <em>Y</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getY()
- * @generated
- * @ordered
- */
- protected double y = Y_EDEFAULT;
-
- /**
- * The default value of the '{@link #getZ() <em>Z</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getZ()
- * @generated
- * @ordered
- */
- protected static final double Z_EDEFAULT = 0.0;
-
- /**
- * The cached value of the '{@link #getZ() <em>Z</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getZ()
- * @generated
- * @ordered
- */
- protected double z = Z_EDEFAULT;
-
- /**
- * The default value of the '{@link #getW() <em>W</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getW()
- * @generated
- * @ordered
- */
- protected static final double W_EDEFAULT = 0.0;
-
- /**
- * The cached value of the '{@link #getW() <em>W</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getW()
- * @generated
- * @ordered
- */
- protected double w = W_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected QuaternionImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Geometry_datatypesPackage.Literals.QUATERNION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public double getX() {
- return x;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setX(double newX) {
- double oldX = x;
- x = newX;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.QUATERNION__X, oldX, x));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public double getY() {
- return y;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setY(double newY) {
- double oldY = y;
- y = newY;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.QUATERNION__Y, oldY, y));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public double getZ() {
- return z;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setZ(double newZ) {
- double oldZ = z;
- z = newZ;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.QUATERNION__Z, oldZ, z));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public double getW() {
- return w;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setW(double newW) {
- double oldW = w;
- w = newW;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.QUATERNION__W, oldW, w));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Geometry_datatypesPackage.QUATERNION__X:
- return getX();
- case Geometry_datatypesPackage.QUATERNION__Y:
- return getY();
- case Geometry_datatypesPackage.QUATERNION__Z:
- return getZ();
- case Geometry_datatypesPackage.QUATERNION__W:
- return getW();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Geometry_datatypesPackage.QUATERNION__X:
- setX((Double)newValue);
- return;
- case Geometry_datatypesPackage.QUATERNION__Y:
- setY((Double)newValue);
- return;
- case Geometry_datatypesPackage.QUATERNION__Z:
- setZ((Double)newValue);
- return;
- case Geometry_datatypesPackage.QUATERNION__W:
- setW((Double)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.QUATERNION__X:
- setX(X_EDEFAULT);
- return;
- case Geometry_datatypesPackage.QUATERNION__Y:
- setY(Y_EDEFAULT);
- return;
- case Geometry_datatypesPackage.QUATERNION__Z:
- setZ(Z_EDEFAULT);
- return;
- case Geometry_datatypesPackage.QUATERNION__W:
- setW(W_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.QUATERNION__X:
- return x != X_EDEFAULT;
- case Geometry_datatypesPackage.QUATERNION__Y:
- return y != Y_EDEFAULT;
- case Geometry_datatypesPackage.QUATERNION__Z:
- return z != Z_EDEFAULT;
- case Geometry_datatypesPackage.QUATERNION__W:
- return w != W_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (x: ");
- result.append(x);
- result.append(", y: ");
- result.append(y);
- result.append(", z: ");
- result.append(z);
- result.append(", w: ");
- result.append(w);
- result.append(')');
- return result.toString();
- }
-
-} //QuaternionImpl
+/** + */ +package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl; + +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; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesPackage; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Quaternion; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Quaternion</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.QuaternionImpl#getX <em>X</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.QuaternionImpl#getY <em>Y</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.QuaternionImpl#getZ <em>Z</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.QuaternionImpl#getW <em>W</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class QuaternionImpl extends MinimalEObjectImpl.Container implements Quaternion { + /** + * The default value of the '{@link #getX() <em>X</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getX() + * @generated + * @ordered + */ + protected static final double X_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getX() <em>X</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getX() + * @generated + * @ordered + */ + protected double x = X_EDEFAULT; + + /** + * The default value of the '{@link #getY() <em>Y</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getY() + * @generated + * @ordered + */ + protected static final double Y_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getY() <em>Y</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getY() + * @generated + * @ordered + */ + protected double y = Y_EDEFAULT; + + /** + * The default value of the '{@link #getZ() <em>Z</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getZ() + * @generated + * @ordered + */ + protected static final double Z_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getZ() <em>Z</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getZ() + * @generated + * @ordered + */ + protected double z = Z_EDEFAULT; + + /** + * The default value of the '{@link #getW() <em>W</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getW() + * @generated + * @ordered + */ + protected static final double W_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getW() <em>W</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getW() + * @generated + * @ordered + */ + protected double w = W_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected QuaternionImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Geometry_datatypesPackage.Literals.QUATERNION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public double getX() { + return x; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setX(double newX) { + double oldX = x; + x = newX; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.QUATERNION__X, oldX, x)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public double getY() { + return y; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setY(double newY) { + double oldY = y; + y = newY; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.QUATERNION__Y, oldY, y)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public double getZ() { + return z; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setZ(double newZ) { + double oldZ = z; + z = newZ; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.QUATERNION__Z, oldZ, z)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public double getW() { + return w; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setW(double newW) { + double oldW = w; + w = newW; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.QUATERNION__W, oldW, w)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Geometry_datatypesPackage.QUATERNION__X: + return getX(); + case Geometry_datatypesPackage.QUATERNION__Y: + return getY(); + case Geometry_datatypesPackage.QUATERNION__Z: + return getZ(); + case Geometry_datatypesPackage.QUATERNION__W: + return getW(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Geometry_datatypesPackage.QUATERNION__X: + setX((Double)newValue); + return; + case Geometry_datatypesPackage.QUATERNION__Y: + setY((Double)newValue); + return; + case Geometry_datatypesPackage.QUATERNION__Z: + setZ((Double)newValue); + return; + case Geometry_datatypesPackage.QUATERNION__W: + setW((Double)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.QUATERNION__X: + setX(X_EDEFAULT); + return; + case Geometry_datatypesPackage.QUATERNION__Y: + setY(Y_EDEFAULT); + return; + case Geometry_datatypesPackage.QUATERNION__Z: + setZ(Z_EDEFAULT); + return; + case Geometry_datatypesPackage.QUATERNION__W: + setW(W_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.QUATERNION__X: + return x != X_EDEFAULT; + case Geometry_datatypesPackage.QUATERNION__Y: + return y != Y_EDEFAULT; + case Geometry_datatypesPackage.QUATERNION__Z: + return z != Z_EDEFAULT; + case Geometry_datatypesPackage.QUATERNION__W: + return w != W_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (x: "); + result.append(x); + result.append(", y: "); + result.append(y); + result.append(", z: "); + result.append(z); + result.append(", w: "); + result.append(w); + result.append(')'); + return result.toString(); + } + +} //QuaternionImpl diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/QuaternionStampedImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/QuaternionStampedImpl.java index 8e69db47dae..75327bb464b 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/QuaternionStampedImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/QuaternionStampedImpl.java @@ -1,244 +1,244 @@ -/**
- */
-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.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.Quaternion;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.QuaternionStamped;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Header;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Quaternion Stamped</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.QuaternionStampedImpl#getHeader <em>Header</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.QuaternionStampedImpl#getQuaternion <em>Quaternion</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class QuaternionStampedImpl extends MinimalEObjectImpl.Container implements QuaternionStamped {
- /**
- * The cached value of the '{@link #getHeader() <em>Header</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getHeader()
- * @generated
- * @ordered
- */
- protected Header header;
-
- /**
- * The cached value of the '{@link #getQuaternion() <em>Quaternion</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getQuaternion()
- * @generated
- * @ordered
- */
- protected Quaternion quaternion;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected QuaternionStampedImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Geometry_datatypesPackage.Literals.QUATERNION_STAMPED;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Header getHeader() {
- return header;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetHeader(Header newHeader, NotificationChain msgs) {
- Header oldHeader = header;
- header = newHeader;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER, oldHeader, newHeader);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setHeader(Header newHeader) {
- if (newHeader != header) {
- NotificationChain msgs = null;
- if (header != null)
- msgs = ((InternalEObject)header).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER, null, msgs);
- if (newHeader != null)
- msgs = ((InternalEObject)newHeader).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER, null, msgs);
- msgs = basicSetHeader(newHeader, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER, newHeader, newHeader));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Quaternion getQuaternion() {
- return quaternion;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetQuaternion(Quaternion newQuaternion, NotificationChain msgs) {
- Quaternion oldQuaternion = quaternion;
- quaternion = newQuaternion;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION, oldQuaternion, newQuaternion);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setQuaternion(Quaternion newQuaternion) {
- if (newQuaternion != quaternion) {
- NotificationChain msgs = null;
- if (quaternion != null)
- msgs = ((InternalEObject)quaternion).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION, null, msgs);
- if (newQuaternion != null)
- msgs = ((InternalEObject)newQuaternion).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION, null, msgs);
- msgs = basicSetQuaternion(newQuaternion, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION, newQuaternion, newQuaternion));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER:
- return basicSetHeader(null, msgs);
- case Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION:
- return basicSetQuaternion(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER:
- return getHeader();
- case Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION:
- return getQuaternion();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER:
- setHeader((Header)newValue);
- return;
- case Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION:
- setQuaternion((Quaternion)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER:
- setHeader((Header)null);
- return;
- case Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION:
- setQuaternion((Quaternion)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER:
- return header != null;
- case Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION:
- return quaternion != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //QuaternionStampedImpl
+/** + */ +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.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.Quaternion; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.QuaternionStamped; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Header; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Quaternion Stamped</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.QuaternionStampedImpl#getHeader <em>Header</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.QuaternionStampedImpl#getQuaternion <em>Quaternion</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class QuaternionStampedImpl extends MinimalEObjectImpl.Container implements QuaternionStamped { + /** + * The cached value of the '{@link #getHeader() <em>Header</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHeader() + * @generated + * @ordered + */ + protected Header header; + + /** + * The cached value of the '{@link #getQuaternion() <em>Quaternion</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getQuaternion() + * @generated + * @ordered + */ + protected Quaternion quaternion; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected QuaternionStampedImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Geometry_datatypesPackage.Literals.QUATERNION_STAMPED; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Header getHeader() { + return header; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetHeader(Header newHeader, NotificationChain msgs) { + Header oldHeader = header; + header = newHeader; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER, oldHeader, newHeader); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setHeader(Header newHeader) { + if (newHeader != header) { + NotificationChain msgs = null; + if (header != null) + msgs = ((InternalEObject)header).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER, null, msgs); + if (newHeader != null) + msgs = ((InternalEObject)newHeader).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER, null, msgs); + msgs = basicSetHeader(newHeader, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER, newHeader, newHeader)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Quaternion getQuaternion() { + return quaternion; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetQuaternion(Quaternion newQuaternion, NotificationChain msgs) { + Quaternion oldQuaternion = quaternion; + quaternion = newQuaternion; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION, oldQuaternion, newQuaternion); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setQuaternion(Quaternion newQuaternion) { + if (newQuaternion != quaternion) { + NotificationChain msgs = null; + if (quaternion != null) + msgs = ((InternalEObject)quaternion).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION, null, msgs); + if (newQuaternion != null) + msgs = ((InternalEObject)newQuaternion).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION, null, msgs); + msgs = basicSetQuaternion(newQuaternion, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION, newQuaternion, newQuaternion)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER: + return basicSetHeader(null, msgs); + case Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION: + return basicSetQuaternion(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER: + return getHeader(); + case Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION: + return getQuaternion(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER: + setHeader((Header)newValue); + return; + case Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION: + setQuaternion((Quaternion)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER: + setHeader((Header)null); + return; + case Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION: + setQuaternion((Quaternion)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.QUATERNION_STAMPED__HEADER: + return header != null; + case Geometry_datatypesPackage.QUATERNION_STAMPED__QUATERNION: + return quaternion != null; + } + return super.eIsSet(featureID); + } + +} //QuaternionStampedImpl diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/TransformImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/TransformImpl.java index 79604a0df67..d1a5ae441fa 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/TransformImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/TransformImpl.java @@ -1,243 +1,243 @@ -/**
- */
-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.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.Quaternion;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Transform;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Vector3;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Transform</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.TransformImpl#getTranslation <em>Translation</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.TransformImpl#getRotation <em>Rotation</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class TransformImpl extends MinimalEObjectImpl.Container implements Transform {
- /**
- * The cached value of the '{@link #getTranslation() <em>Translation</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTranslation()
- * @generated
- * @ordered
- */
- protected Vector3 translation;
-
- /**
- * The cached value of the '{@link #getRotation() <em>Rotation</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getRotation()
- * @generated
- * @ordered
- */
- protected Quaternion rotation;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected TransformImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Geometry_datatypesPackage.Literals.TRANSFORM;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Vector3 getTranslation() {
- return translation;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetTranslation(Vector3 newTranslation, NotificationChain msgs) {
- Vector3 oldTranslation = translation;
- translation = newTranslation;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TRANSFORM__TRANSLATION, oldTranslation, newTranslation);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTranslation(Vector3 newTranslation) {
- if (newTranslation != translation) {
- NotificationChain msgs = null;
- if (translation != null)
- msgs = ((InternalEObject)translation).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TRANSFORM__TRANSLATION, null, msgs);
- if (newTranslation != null)
- msgs = ((InternalEObject)newTranslation).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TRANSFORM__TRANSLATION, null, msgs);
- msgs = basicSetTranslation(newTranslation, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TRANSFORM__TRANSLATION, newTranslation, newTranslation));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Quaternion getRotation() {
- return rotation;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetRotation(Quaternion newRotation, NotificationChain msgs) {
- Quaternion oldRotation = rotation;
- rotation = newRotation;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TRANSFORM__ROTATION, oldRotation, newRotation);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setRotation(Quaternion newRotation) {
- if (newRotation != rotation) {
- NotificationChain msgs = null;
- if (rotation != null)
- msgs = ((InternalEObject)rotation).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TRANSFORM__ROTATION, null, msgs);
- if (newRotation != null)
- msgs = ((InternalEObject)newRotation).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TRANSFORM__ROTATION, null, msgs);
- msgs = basicSetRotation(newRotation, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TRANSFORM__ROTATION, newRotation, newRotation));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case Geometry_datatypesPackage.TRANSFORM__TRANSLATION:
- return basicSetTranslation(null, msgs);
- case Geometry_datatypesPackage.TRANSFORM__ROTATION:
- return basicSetRotation(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Geometry_datatypesPackage.TRANSFORM__TRANSLATION:
- return getTranslation();
- case Geometry_datatypesPackage.TRANSFORM__ROTATION:
- return getRotation();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Geometry_datatypesPackage.TRANSFORM__TRANSLATION:
- setTranslation((Vector3)newValue);
- return;
- case Geometry_datatypesPackage.TRANSFORM__ROTATION:
- setRotation((Quaternion)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.TRANSFORM__TRANSLATION:
- setTranslation((Vector3)null);
- return;
- case Geometry_datatypesPackage.TRANSFORM__ROTATION:
- setRotation((Quaternion)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.TRANSFORM__TRANSLATION:
- return translation != null;
- case Geometry_datatypesPackage.TRANSFORM__ROTATION:
- return rotation != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //TransformImpl
+/** + */ +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.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.Quaternion; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Transform; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Vector3; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Transform</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.TransformImpl#getTranslation <em>Translation</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.TransformImpl#getRotation <em>Rotation</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class TransformImpl extends MinimalEObjectImpl.Container implements Transform { + /** + * The cached value of the '{@link #getTranslation() <em>Translation</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTranslation() + * @generated + * @ordered + */ + protected Vector3 translation; + + /** + * The cached value of the '{@link #getRotation() <em>Rotation</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRotation() + * @generated + * @ordered + */ + protected Quaternion rotation; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected TransformImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Geometry_datatypesPackage.Literals.TRANSFORM; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Vector3 getTranslation() { + return translation; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetTranslation(Vector3 newTranslation, NotificationChain msgs) { + Vector3 oldTranslation = translation; + translation = newTranslation; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TRANSFORM__TRANSLATION, oldTranslation, newTranslation); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTranslation(Vector3 newTranslation) { + if (newTranslation != translation) { + NotificationChain msgs = null; + if (translation != null) + msgs = ((InternalEObject)translation).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TRANSFORM__TRANSLATION, null, msgs); + if (newTranslation != null) + msgs = ((InternalEObject)newTranslation).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TRANSFORM__TRANSLATION, null, msgs); + msgs = basicSetTranslation(newTranslation, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TRANSFORM__TRANSLATION, newTranslation, newTranslation)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Quaternion getRotation() { + return rotation; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetRotation(Quaternion newRotation, NotificationChain msgs) { + Quaternion oldRotation = rotation; + rotation = newRotation; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TRANSFORM__ROTATION, oldRotation, newRotation); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setRotation(Quaternion newRotation) { + if (newRotation != rotation) { + NotificationChain msgs = null; + if (rotation != null) + msgs = ((InternalEObject)rotation).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TRANSFORM__ROTATION, null, msgs); + if (newRotation != null) + msgs = ((InternalEObject)newRotation).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TRANSFORM__ROTATION, null, msgs); + msgs = basicSetRotation(newRotation, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TRANSFORM__ROTATION, newRotation, newRotation)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case Geometry_datatypesPackage.TRANSFORM__TRANSLATION: + return basicSetTranslation(null, msgs); + case Geometry_datatypesPackage.TRANSFORM__ROTATION: + return basicSetRotation(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Geometry_datatypesPackage.TRANSFORM__TRANSLATION: + return getTranslation(); + case Geometry_datatypesPackage.TRANSFORM__ROTATION: + return getRotation(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Geometry_datatypesPackage.TRANSFORM__TRANSLATION: + setTranslation((Vector3)newValue); + return; + case Geometry_datatypesPackage.TRANSFORM__ROTATION: + setRotation((Quaternion)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.TRANSFORM__TRANSLATION: + setTranslation((Vector3)null); + return; + case Geometry_datatypesPackage.TRANSFORM__ROTATION: + setRotation((Quaternion)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.TRANSFORM__TRANSLATION: + return translation != null; + case Geometry_datatypesPackage.TRANSFORM__ROTATION: + return rotation != null; + } + return super.eIsSet(featureID); + } + +} //TransformImpl diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/TwistImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/TwistImpl.java index 641a13056bf..371185ffa87 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/TwistImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/TwistImpl.java @@ -1,242 +1,242 @@ -/**
- */
-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.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.Twist;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Vector3;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Twist</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.TwistImpl#getLinear <em>Linear</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.TwistImpl#getAngular <em>Angular</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class TwistImpl extends MinimalEObjectImpl.Container implements Twist {
- /**
- * The cached value of the '{@link #getLinear() <em>Linear</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLinear()
- * @generated
- * @ordered
- */
- protected Vector3 linear;
-
- /**
- * The cached value of the '{@link #getAngular() <em>Angular</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getAngular()
- * @generated
- * @ordered
- */
- protected Vector3 angular;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected TwistImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Geometry_datatypesPackage.Literals.TWIST;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Vector3 getLinear() {
- return linear;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetLinear(Vector3 newLinear, NotificationChain msgs) {
- Vector3 oldLinear = linear;
- linear = newLinear;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TWIST__LINEAR, oldLinear, newLinear);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setLinear(Vector3 newLinear) {
- if (newLinear != linear) {
- NotificationChain msgs = null;
- if (linear != null)
- msgs = ((InternalEObject)linear).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TWIST__LINEAR, null, msgs);
- if (newLinear != null)
- msgs = ((InternalEObject)newLinear).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TWIST__LINEAR, null, msgs);
- msgs = basicSetLinear(newLinear, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TWIST__LINEAR, newLinear, newLinear));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Vector3 getAngular() {
- return angular;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetAngular(Vector3 newAngular, NotificationChain msgs) {
- Vector3 oldAngular = angular;
- angular = newAngular;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TWIST__ANGULAR, oldAngular, newAngular);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setAngular(Vector3 newAngular) {
- if (newAngular != angular) {
- NotificationChain msgs = null;
- if (angular != null)
- msgs = ((InternalEObject)angular).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TWIST__ANGULAR, null, msgs);
- if (newAngular != null)
- msgs = ((InternalEObject)newAngular).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TWIST__ANGULAR, null, msgs);
- msgs = basicSetAngular(newAngular, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TWIST__ANGULAR, newAngular, newAngular));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case Geometry_datatypesPackage.TWIST__LINEAR:
- return basicSetLinear(null, msgs);
- case Geometry_datatypesPackage.TWIST__ANGULAR:
- return basicSetAngular(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Geometry_datatypesPackage.TWIST__LINEAR:
- return getLinear();
- case Geometry_datatypesPackage.TWIST__ANGULAR:
- return getAngular();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Geometry_datatypesPackage.TWIST__LINEAR:
- setLinear((Vector3)newValue);
- return;
- case Geometry_datatypesPackage.TWIST__ANGULAR:
- setAngular((Vector3)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.TWIST__LINEAR:
- setLinear((Vector3)null);
- return;
- case Geometry_datatypesPackage.TWIST__ANGULAR:
- setAngular((Vector3)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.TWIST__LINEAR:
- return linear != null;
- case Geometry_datatypesPackage.TWIST__ANGULAR:
- return angular != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //TwistImpl
+/** + */ +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.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.Twist; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Vector3; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Twist</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.TwistImpl#getLinear <em>Linear</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.TwistImpl#getAngular <em>Angular</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class TwistImpl extends MinimalEObjectImpl.Container implements Twist { + /** + * The cached value of the '{@link #getLinear() <em>Linear</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLinear() + * @generated + * @ordered + */ + protected Vector3 linear; + + /** + * The cached value of the '{@link #getAngular() <em>Angular</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAngular() + * @generated + * @ordered + */ + protected Vector3 angular; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected TwistImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Geometry_datatypesPackage.Literals.TWIST; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Vector3 getLinear() { + return linear; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetLinear(Vector3 newLinear, NotificationChain msgs) { + Vector3 oldLinear = linear; + linear = newLinear; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TWIST__LINEAR, oldLinear, newLinear); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setLinear(Vector3 newLinear) { + if (newLinear != linear) { + NotificationChain msgs = null; + if (linear != null) + msgs = ((InternalEObject)linear).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TWIST__LINEAR, null, msgs); + if (newLinear != null) + msgs = ((InternalEObject)newLinear).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TWIST__LINEAR, null, msgs); + msgs = basicSetLinear(newLinear, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TWIST__LINEAR, newLinear, newLinear)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Vector3 getAngular() { + return angular; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetAngular(Vector3 newAngular, NotificationChain msgs) { + Vector3 oldAngular = angular; + angular = newAngular; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TWIST__ANGULAR, oldAngular, newAngular); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAngular(Vector3 newAngular) { + if (newAngular != angular) { + NotificationChain msgs = null; + if (angular != null) + msgs = ((InternalEObject)angular).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TWIST__ANGULAR, null, msgs); + if (newAngular != null) + msgs = ((InternalEObject)newAngular).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TWIST__ANGULAR, null, msgs); + msgs = basicSetAngular(newAngular, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TWIST__ANGULAR, newAngular, newAngular)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case Geometry_datatypesPackage.TWIST__LINEAR: + return basicSetLinear(null, msgs); + case Geometry_datatypesPackage.TWIST__ANGULAR: + return basicSetAngular(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Geometry_datatypesPackage.TWIST__LINEAR: + return getLinear(); + case Geometry_datatypesPackage.TWIST__ANGULAR: + return getAngular(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Geometry_datatypesPackage.TWIST__LINEAR: + setLinear((Vector3)newValue); + return; + case Geometry_datatypesPackage.TWIST__ANGULAR: + setAngular((Vector3)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.TWIST__LINEAR: + setLinear((Vector3)null); + return; + case Geometry_datatypesPackage.TWIST__ANGULAR: + setAngular((Vector3)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.TWIST__LINEAR: + return linear != null; + case Geometry_datatypesPackage.TWIST__ANGULAR: + return angular != null; + } + return super.eIsSet(featureID); + } + +} //TwistImpl diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/TwistStampedImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/TwistStampedImpl.java index e90d96a3899..035140a90a6 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/TwistStampedImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/TwistStampedImpl.java @@ -1,244 +1,244 @@ -/**
- */
-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.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.Twist;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.TwistStamped;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Header;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Twist Stamped</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.TwistStampedImpl#getHeader <em>Header</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.TwistStampedImpl#getTwist <em>Twist</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class TwistStampedImpl extends MinimalEObjectImpl.Container implements TwistStamped {
- /**
- * The cached value of the '{@link #getHeader() <em>Header</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getHeader()
- * @generated
- * @ordered
- */
- protected Header header;
-
- /**
- * The cached value of the '{@link #getTwist() <em>Twist</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTwist()
- * @generated
- * @ordered
- */
- protected Twist twist;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected TwistStampedImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Geometry_datatypesPackage.Literals.TWIST_STAMPED;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Header getHeader() {
- return header;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetHeader(Header newHeader, NotificationChain msgs) {
- Header oldHeader = header;
- header = newHeader;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TWIST_STAMPED__HEADER, oldHeader, newHeader);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setHeader(Header newHeader) {
- if (newHeader != header) {
- NotificationChain msgs = null;
- if (header != null)
- msgs = ((InternalEObject)header).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TWIST_STAMPED__HEADER, null, msgs);
- if (newHeader != null)
- msgs = ((InternalEObject)newHeader).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TWIST_STAMPED__HEADER, null, msgs);
- msgs = basicSetHeader(newHeader, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TWIST_STAMPED__HEADER, newHeader, newHeader));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Twist getTwist() {
- return twist;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetTwist(Twist newTwist, NotificationChain msgs) {
- Twist oldTwist = twist;
- twist = newTwist;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TWIST_STAMPED__TWIST, oldTwist, newTwist);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTwist(Twist newTwist) {
- if (newTwist != twist) {
- NotificationChain msgs = null;
- if (twist != null)
- msgs = ((InternalEObject)twist).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TWIST_STAMPED__TWIST, null, msgs);
- if (newTwist != null)
- msgs = ((InternalEObject)newTwist).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TWIST_STAMPED__TWIST, null, msgs);
- msgs = basicSetTwist(newTwist, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TWIST_STAMPED__TWIST, newTwist, newTwist));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case Geometry_datatypesPackage.TWIST_STAMPED__HEADER:
- return basicSetHeader(null, msgs);
- case Geometry_datatypesPackage.TWIST_STAMPED__TWIST:
- return basicSetTwist(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Geometry_datatypesPackage.TWIST_STAMPED__HEADER:
- return getHeader();
- case Geometry_datatypesPackage.TWIST_STAMPED__TWIST:
- return getTwist();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Geometry_datatypesPackage.TWIST_STAMPED__HEADER:
- setHeader((Header)newValue);
- return;
- case Geometry_datatypesPackage.TWIST_STAMPED__TWIST:
- setTwist((Twist)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.TWIST_STAMPED__HEADER:
- setHeader((Header)null);
- return;
- case Geometry_datatypesPackage.TWIST_STAMPED__TWIST:
- setTwist((Twist)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.TWIST_STAMPED__HEADER:
- return header != null;
- case Geometry_datatypesPackage.TWIST_STAMPED__TWIST:
- return twist != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //TwistStampedImpl
+/** + */ +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.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.Twist; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.TwistStamped; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Header; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Twist Stamped</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.TwistStampedImpl#getHeader <em>Header</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.TwistStampedImpl#getTwist <em>Twist</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class TwistStampedImpl extends MinimalEObjectImpl.Container implements TwistStamped { + /** + * The cached value of the '{@link #getHeader() <em>Header</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHeader() + * @generated + * @ordered + */ + protected Header header; + + /** + * The cached value of the '{@link #getTwist() <em>Twist</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTwist() + * @generated + * @ordered + */ + protected Twist twist; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected TwistStampedImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Geometry_datatypesPackage.Literals.TWIST_STAMPED; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Header getHeader() { + return header; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetHeader(Header newHeader, NotificationChain msgs) { + Header oldHeader = header; + header = newHeader; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TWIST_STAMPED__HEADER, oldHeader, newHeader); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setHeader(Header newHeader) { + if (newHeader != header) { + NotificationChain msgs = null; + if (header != null) + msgs = ((InternalEObject)header).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TWIST_STAMPED__HEADER, null, msgs); + if (newHeader != null) + msgs = ((InternalEObject)newHeader).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TWIST_STAMPED__HEADER, null, msgs); + msgs = basicSetHeader(newHeader, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TWIST_STAMPED__HEADER, newHeader, newHeader)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Twist getTwist() { + return twist; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetTwist(Twist newTwist, NotificationChain msgs) { + Twist oldTwist = twist; + twist = newTwist; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TWIST_STAMPED__TWIST, oldTwist, newTwist); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTwist(Twist newTwist) { + if (newTwist != twist) { + NotificationChain msgs = null; + if (twist != null) + msgs = ((InternalEObject)twist).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TWIST_STAMPED__TWIST, null, msgs); + if (newTwist != null) + msgs = ((InternalEObject)newTwist).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TWIST_STAMPED__TWIST, null, msgs); + msgs = basicSetTwist(newTwist, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TWIST_STAMPED__TWIST, newTwist, newTwist)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case Geometry_datatypesPackage.TWIST_STAMPED__HEADER: + return basicSetHeader(null, msgs); + case Geometry_datatypesPackage.TWIST_STAMPED__TWIST: + return basicSetTwist(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Geometry_datatypesPackage.TWIST_STAMPED__HEADER: + return getHeader(); + case Geometry_datatypesPackage.TWIST_STAMPED__TWIST: + return getTwist(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Geometry_datatypesPackage.TWIST_STAMPED__HEADER: + setHeader((Header)newValue); + return; + case Geometry_datatypesPackage.TWIST_STAMPED__TWIST: + setTwist((Twist)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.TWIST_STAMPED__HEADER: + setHeader((Header)null); + return; + case Geometry_datatypesPackage.TWIST_STAMPED__TWIST: + setTwist((Twist)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.TWIST_STAMPED__HEADER: + return header != null; + case Geometry_datatypesPackage.TWIST_STAMPED__TWIST: + return twist != null; + } + return super.eIsSet(featureID); + } + +} //TwistStampedImpl diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/TwistWithCovarianceImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/TwistWithCovarianceImpl.java index feaf03815b4..4efe19dd5dd 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/TwistWithCovarianceImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/TwistWithCovarianceImpl.java @@ -1,233 +1,233 @@ -/**
- */
-package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl;
-
-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.EDataTypeUniqueEList;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesPackage;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Twist;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.TwistWithCovariance;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Twist With Covariance</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.TwistWithCovarianceImpl#getTwist <em>Twist</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.TwistWithCovarianceImpl#getCovariance <em>Covariance</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class TwistWithCovarianceImpl extends MinimalEObjectImpl.Container implements TwistWithCovariance {
- /**
- * The cached value of the '{@link #getTwist() <em>Twist</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTwist()
- * @generated
- * @ordered
- */
- protected Twist twist;
-
- /**
- * The cached value of the '{@link #getCovariance() <em>Covariance</em>}' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getCovariance()
- * @generated
- * @ordered
- */
- protected EList<Double> covariance;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected TwistWithCovarianceImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Geometry_datatypesPackage.Literals.TWIST_WITH_COVARIANCE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Twist getTwist() {
- return twist;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetTwist(Twist newTwist, NotificationChain msgs) {
- Twist oldTwist = twist;
- twist = newTwist;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__TWIST, oldTwist, newTwist);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTwist(Twist newTwist) {
- if (newTwist != twist) {
- NotificationChain msgs = null;
- if (twist != null)
- msgs = ((InternalEObject)twist).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__TWIST, null, msgs);
- if (newTwist != null)
- msgs = ((InternalEObject)newTwist).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__TWIST, null, msgs);
- msgs = basicSetTwist(newTwist, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__TWIST, newTwist, newTwist));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<Double> getCovariance() {
- if (covariance == null) {
- covariance = new EDataTypeUniqueEList<Double>(Double.class, this, Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__COVARIANCE);
- }
- return covariance;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__TWIST:
- return basicSetTwist(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__TWIST:
- return getTwist();
- case Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__COVARIANCE:
- return getCovariance();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__TWIST:
- setTwist((Twist)newValue);
- return;
- case Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__COVARIANCE:
- getCovariance().clear();
- getCovariance().addAll((Collection<? extends Double>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__TWIST:
- setTwist((Twist)null);
- return;
- case Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__COVARIANCE:
- getCovariance().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__TWIST:
- return twist != null;
- case Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__COVARIANCE:
- return covariance != null && !covariance.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (covariance: ");
- result.append(covariance);
- result.append(')');
- return result.toString();
- }
-
-} //TwistWithCovarianceImpl
+/** + */ +package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl; + +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.EDataTypeUniqueEList; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Geometry_datatypesPackage; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Twist; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.TwistWithCovariance; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Twist With Covariance</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.TwistWithCovarianceImpl#getTwist <em>Twist</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.TwistWithCovarianceImpl#getCovariance <em>Covariance</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class TwistWithCovarianceImpl extends MinimalEObjectImpl.Container implements TwistWithCovariance { + /** + * The cached value of the '{@link #getTwist() <em>Twist</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTwist() + * @generated + * @ordered + */ + protected Twist twist; + + /** + * The cached value of the '{@link #getCovariance() <em>Covariance</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCovariance() + * @generated + * @ordered + */ + protected EList<Double> covariance; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected TwistWithCovarianceImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Geometry_datatypesPackage.Literals.TWIST_WITH_COVARIANCE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Twist getTwist() { + return twist; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetTwist(Twist newTwist, NotificationChain msgs) { + Twist oldTwist = twist; + twist = newTwist; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__TWIST, oldTwist, newTwist); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTwist(Twist newTwist) { + if (newTwist != twist) { + NotificationChain msgs = null; + if (twist != null) + msgs = ((InternalEObject)twist).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__TWIST, null, msgs); + if (newTwist != null) + msgs = ((InternalEObject)newTwist).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__TWIST, null, msgs); + msgs = basicSetTwist(newTwist, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__TWIST, newTwist, newTwist)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Double> getCovariance() { + if (covariance == null) { + covariance = new EDataTypeUniqueEList<Double>(Double.class, this, Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__COVARIANCE); + } + return covariance; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__TWIST: + return basicSetTwist(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__TWIST: + return getTwist(); + case Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__COVARIANCE: + return getCovariance(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__TWIST: + setTwist((Twist)newValue); + return; + case Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__COVARIANCE: + getCovariance().clear(); + getCovariance().addAll((Collection<? extends Double>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__TWIST: + setTwist((Twist)null); + return; + case Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__COVARIANCE: + getCovariance().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__TWIST: + return twist != null; + case Geometry_datatypesPackage.TWIST_WITH_COVARIANCE__COVARIANCE: + return covariance != null && !covariance.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (covariance: "); + result.append(covariance); + result.append(')'); + return result.toString(); + } + +} //TwistWithCovarianceImpl diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Vector3Impl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Vector3Impl.java index a226bdd552b..f7dc0996ced 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Vector3Impl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Vector3Impl.java @@ -1,271 +1,271 @@ -/**
- */
-package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl;
-
-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;
-
-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;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Vector3</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Vector3Impl#getX <em>X</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Vector3Impl#getY <em>Y</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Vector3Impl#getZ <em>Z</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class Vector3Impl extends MinimalEObjectImpl.Container implements Vector3 {
- /**
- * The default value of the '{@link #getX() <em>X</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getX()
- * @generated
- * @ordered
- */
- protected static final double X_EDEFAULT = 0.0;
-
- /**
- * The cached value of the '{@link #getX() <em>X</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getX()
- * @generated
- * @ordered
- */
- protected double x = X_EDEFAULT;
-
- /**
- * The default value of the '{@link #getY() <em>Y</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getY()
- * @generated
- * @ordered
- */
- protected static final double Y_EDEFAULT = 0.0;
-
- /**
- * The cached value of the '{@link #getY() <em>Y</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getY()
- * @generated
- * @ordered
- */
- protected double y = Y_EDEFAULT;
-
- /**
- * The default value of the '{@link #getZ() <em>Z</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getZ()
- * @generated
- * @ordered
- */
- protected static final double Z_EDEFAULT = 0.0;
-
- /**
- * The cached value of the '{@link #getZ() <em>Z</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getZ()
- * @generated
- * @ordered
- */
- protected double z = Z_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected Vector3Impl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Geometry_datatypesPackage.Literals.VECTOR3;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public double getX() {
- return x;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setX(double newX) {
- double oldX = x;
- x = newX;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.VECTOR3__X, oldX, x));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public double getY() {
- return y;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setY(double newY) {
- double oldY = y;
- y = newY;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.VECTOR3__Y, oldY, y));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public double getZ() {
- return z;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setZ(double newZ) {
- double oldZ = z;
- z = newZ;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.VECTOR3__Z, oldZ, z));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Geometry_datatypesPackage.VECTOR3__X:
- return getX();
- case Geometry_datatypesPackage.VECTOR3__Y:
- return getY();
- case Geometry_datatypesPackage.VECTOR3__Z:
- return getZ();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Geometry_datatypesPackage.VECTOR3__X:
- setX((Double)newValue);
- return;
- case Geometry_datatypesPackage.VECTOR3__Y:
- setY((Double)newValue);
- return;
- case Geometry_datatypesPackage.VECTOR3__Z:
- setZ((Double)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.VECTOR3__X:
- setX(X_EDEFAULT);
- return;
- case Geometry_datatypesPackage.VECTOR3__Y:
- setY(Y_EDEFAULT);
- return;
- case Geometry_datatypesPackage.VECTOR3__Z:
- setZ(Z_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.VECTOR3__X:
- return x != X_EDEFAULT;
- case Geometry_datatypesPackage.VECTOR3__Y:
- return y != Y_EDEFAULT;
- case Geometry_datatypesPackage.VECTOR3__Z:
- return z != Z_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (x: ");
- result.append(x);
- result.append(", y: ");
- result.append(y);
- result.append(", z: ");
- result.append(z);
- result.append(')');
- return result.toString();
- }
-
-} //Vector3Impl
+/** + */ +package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl; + +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; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Vector3</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Vector3Impl#getX <em>X</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Vector3Impl#getY <em>Y</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Vector3Impl#getZ <em>Z</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class Vector3Impl extends MinimalEObjectImpl.Container implements Vector3 { + /** + * The default value of the '{@link #getX() <em>X</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getX() + * @generated + * @ordered + */ + protected static final double X_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getX() <em>X</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getX() + * @generated + * @ordered + */ + protected double x = X_EDEFAULT; + + /** + * The default value of the '{@link #getY() <em>Y</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getY() + * @generated + * @ordered + */ + protected static final double Y_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getY() <em>Y</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getY() + * @generated + * @ordered + */ + protected double y = Y_EDEFAULT; + + /** + * The default value of the '{@link #getZ() <em>Z</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getZ() + * @generated + * @ordered + */ + protected static final double Z_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getZ() <em>Z</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getZ() + * @generated + * @ordered + */ + protected double z = Z_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected Vector3Impl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Geometry_datatypesPackage.Literals.VECTOR3; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public double getX() { + return x; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setX(double newX) { + double oldX = x; + x = newX; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.VECTOR3__X, oldX, x)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public double getY() { + return y; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setY(double newY) { + double oldY = y; + y = newY; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.VECTOR3__Y, oldY, y)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public double getZ() { + return z; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setZ(double newZ) { + double oldZ = z; + z = newZ; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.VECTOR3__Z, oldZ, z)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Geometry_datatypesPackage.VECTOR3__X: + return getX(); + case Geometry_datatypesPackage.VECTOR3__Y: + return getY(); + case Geometry_datatypesPackage.VECTOR3__Z: + return getZ(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Geometry_datatypesPackage.VECTOR3__X: + setX((Double)newValue); + return; + case Geometry_datatypesPackage.VECTOR3__Y: + setY((Double)newValue); + return; + case Geometry_datatypesPackage.VECTOR3__Z: + setZ((Double)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.VECTOR3__X: + setX(X_EDEFAULT); + return; + case Geometry_datatypesPackage.VECTOR3__Y: + setY(Y_EDEFAULT); + return; + case Geometry_datatypesPackage.VECTOR3__Z: + setZ(Z_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.VECTOR3__X: + return x != X_EDEFAULT; + case Geometry_datatypesPackage.VECTOR3__Y: + return y != Y_EDEFAULT; + case Geometry_datatypesPackage.VECTOR3__Z: + return z != Z_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (x: "); + result.append(x); + result.append(", y: "); + result.append(y); + result.append(", z: "); + result.append(z); + result.append(')'); + return result.toString(); + } + +} //Vector3Impl diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Vector3StampedImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Vector3StampedImpl.java index e3ad0353262..5754ad04213 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Vector3StampedImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/Vector3StampedImpl.java @@ -1,244 +1,244 @@ -/**
- */
-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.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.Vector3Stamped;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Header;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Vector3 Stamped</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Vector3StampedImpl#getHeader <em>Header</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Vector3StampedImpl#getVector <em>Vector</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class Vector3StampedImpl extends MinimalEObjectImpl.Container implements Vector3Stamped {
- /**
- * The cached value of the '{@link #getHeader() <em>Header</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getHeader()
- * @generated
- * @ordered
- */
- protected Header header;
-
- /**
- * The cached value of the '{@link #getVector() <em>Vector</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getVector()
- * @generated
- * @ordered
- */
- protected Vector3 vector;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected Vector3StampedImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Geometry_datatypesPackage.Literals.VECTOR3_STAMPED;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Header getHeader() {
- return header;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetHeader(Header newHeader, NotificationChain msgs) {
- Header oldHeader = header;
- header = newHeader;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.VECTOR3_STAMPED__HEADER, oldHeader, newHeader);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setHeader(Header newHeader) {
- if (newHeader != header) {
- NotificationChain msgs = null;
- if (header != null)
- msgs = ((InternalEObject)header).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.VECTOR3_STAMPED__HEADER, null, msgs);
- if (newHeader != null)
- msgs = ((InternalEObject)newHeader).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.VECTOR3_STAMPED__HEADER, null, msgs);
- msgs = basicSetHeader(newHeader, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.VECTOR3_STAMPED__HEADER, newHeader, newHeader));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Vector3 getVector() {
- return vector;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetVector(Vector3 newVector, NotificationChain msgs) {
- Vector3 oldVector = vector;
- vector = newVector;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.VECTOR3_STAMPED__VECTOR, oldVector, newVector);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setVector(Vector3 newVector) {
- if (newVector != vector) {
- NotificationChain msgs = null;
- if (vector != null)
- msgs = ((InternalEObject)vector).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.VECTOR3_STAMPED__VECTOR, null, msgs);
- if (newVector != null)
- msgs = ((InternalEObject)newVector).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.VECTOR3_STAMPED__VECTOR, null, msgs);
- msgs = basicSetVector(newVector, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.VECTOR3_STAMPED__VECTOR, newVector, newVector));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case Geometry_datatypesPackage.VECTOR3_STAMPED__HEADER:
- return basicSetHeader(null, msgs);
- case Geometry_datatypesPackage.VECTOR3_STAMPED__VECTOR:
- return basicSetVector(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Geometry_datatypesPackage.VECTOR3_STAMPED__HEADER:
- return getHeader();
- case Geometry_datatypesPackage.VECTOR3_STAMPED__VECTOR:
- return getVector();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Geometry_datatypesPackage.VECTOR3_STAMPED__HEADER:
- setHeader((Header)newValue);
- return;
- case Geometry_datatypesPackage.VECTOR3_STAMPED__VECTOR:
- setVector((Vector3)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.VECTOR3_STAMPED__HEADER:
- setHeader((Header)null);
- return;
- case Geometry_datatypesPackage.VECTOR3_STAMPED__VECTOR:
- setVector((Vector3)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.VECTOR3_STAMPED__HEADER:
- return header != null;
- case Geometry_datatypesPackage.VECTOR3_STAMPED__VECTOR:
- return vector != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //Vector3StampedImpl
+/** + */ +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.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.Vector3Stamped; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Header; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Vector3 Stamped</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Vector3StampedImpl#getHeader <em>Header</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.Vector3StampedImpl#getVector <em>Vector</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class Vector3StampedImpl extends MinimalEObjectImpl.Container implements Vector3Stamped { + /** + * The cached value of the '{@link #getHeader() <em>Header</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHeader() + * @generated + * @ordered + */ + protected Header header; + + /** + * The cached value of the '{@link #getVector() <em>Vector</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVector() + * @generated + * @ordered + */ + protected Vector3 vector; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected Vector3StampedImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Geometry_datatypesPackage.Literals.VECTOR3_STAMPED; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Header getHeader() { + return header; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetHeader(Header newHeader, NotificationChain msgs) { + Header oldHeader = header; + header = newHeader; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.VECTOR3_STAMPED__HEADER, oldHeader, newHeader); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setHeader(Header newHeader) { + if (newHeader != header) { + NotificationChain msgs = null; + if (header != null) + msgs = ((InternalEObject)header).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.VECTOR3_STAMPED__HEADER, null, msgs); + if (newHeader != null) + msgs = ((InternalEObject)newHeader).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.VECTOR3_STAMPED__HEADER, null, msgs); + msgs = basicSetHeader(newHeader, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.VECTOR3_STAMPED__HEADER, newHeader, newHeader)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Vector3 getVector() { + return vector; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetVector(Vector3 newVector, NotificationChain msgs) { + Vector3 oldVector = vector; + vector = newVector; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.VECTOR3_STAMPED__VECTOR, oldVector, newVector); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVector(Vector3 newVector) { + if (newVector != vector) { + NotificationChain msgs = null; + if (vector != null) + msgs = ((InternalEObject)vector).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.VECTOR3_STAMPED__VECTOR, null, msgs); + if (newVector != null) + msgs = ((InternalEObject)newVector).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.VECTOR3_STAMPED__VECTOR, null, msgs); + msgs = basicSetVector(newVector, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.VECTOR3_STAMPED__VECTOR, newVector, newVector)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case Geometry_datatypesPackage.VECTOR3_STAMPED__HEADER: + return basicSetHeader(null, msgs); + case Geometry_datatypesPackage.VECTOR3_STAMPED__VECTOR: + return basicSetVector(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Geometry_datatypesPackage.VECTOR3_STAMPED__HEADER: + return getHeader(); + case Geometry_datatypesPackage.VECTOR3_STAMPED__VECTOR: + return getVector(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Geometry_datatypesPackage.VECTOR3_STAMPED__HEADER: + setHeader((Header)newValue); + return; + case Geometry_datatypesPackage.VECTOR3_STAMPED__VECTOR: + setVector((Vector3)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.VECTOR3_STAMPED__HEADER: + setHeader((Header)null); + return; + case Geometry_datatypesPackage.VECTOR3_STAMPED__VECTOR: + setVector((Vector3)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.VECTOR3_STAMPED__HEADER: + return header != null; + case Geometry_datatypesPackage.VECTOR3_STAMPED__VECTOR: + return vector != null; + } + return super.eIsSet(featureID); + } + +} //Vector3StampedImpl 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 c1463a29203..2d580789348 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,242 +1,242 @@ -/**
- */
-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.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;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Wrench</b></em>'.
- * <!-- end-user-doc -->
- * <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>
- * </ul>
- * </p>
- *
- * @generated
- */
-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
- */
- protected Vector3 force;
-
- /**
- * The cached value of the '{@link #getTorque() <em>Torque</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTorque()
- * @generated
- * @ordered
- */
- protected Vector3 torque;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected WrenchImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Geometry_datatypesPackage.Literals.WRENCH;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Vector3 getForce() {
- return force;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetForce(Vector3 newForce, NotificationChain msgs) {
- Vector3 oldForce = force;
- force = newForce;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.WRENCH__FORCE, oldForce, newForce);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setForce(Vector3 newForce) {
- if (newForce != force) {
- NotificationChain msgs = null;
- if (force != null)
- msgs = ((InternalEObject)force).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.WRENCH__FORCE, null, msgs);
- 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())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.WRENCH__FORCE, newForce, newForce));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Vector3 getTorque() {
- return torque;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetTorque(Vector3 newTorque, NotificationChain msgs) {
- Vector3 oldTorque = torque;
- torque = newTorque;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.WRENCH__TORQUE, oldTorque, newTorque);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTorque(Vector3 newTorque) {
- if (newTorque != torque) {
- NotificationChain msgs = null;
- if (torque != null)
- msgs = ((InternalEObject)torque).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.WRENCH__TORQUE, null, msgs);
- 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())
- 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);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- 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();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- 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;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- 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;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- 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;
- }
- return super.eIsSet(featureID);
- }
-
-} //WrenchImpl
+/** + */ +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.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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Wrench</b></em>'. + * <!-- end-user-doc --> + * <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> + * </ul> + * </p> + * + * @generated + */ +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 + */ + protected Vector3 force; + + /** + * The cached value of the '{@link #getTorque() <em>Torque</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTorque() + * @generated + * @ordered + */ + protected Vector3 torque; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected WrenchImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Geometry_datatypesPackage.Literals.WRENCH; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Vector3 getForce() { + return force; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetForce(Vector3 newForce, NotificationChain msgs) { + Vector3 oldForce = force; + force = newForce; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.WRENCH__FORCE, oldForce, newForce); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setForce(Vector3 newForce) { + if (newForce != force) { + NotificationChain msgs = null; + if (force != null) + msgs = ((InternalEObject)force).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.WRENCH__FORCE, null, msgs); + 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()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.WRENCH__FORCE, newForce, newForce)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Vector3 getTorque() { + return torque; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetTorque(Vector3 newTorque, NotificationChain msgs) { + Vector3 oldTorque = torque; + torque = newTorque; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.WRENCH__TORQUE, oldTorque, newTorque); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTorque(Vector3 newTorque) { + if (newTorque != torque) { + NotificationChain msgs = null; + if (torque != null) + msgs = ((InternalEObject)torque).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.WRENCH__TORQUE, null, msgs); + 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()) + 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); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- 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(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- 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; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- 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; + } + super.eUnset(featureID); + } + + /** + * <!-- 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; + } + return super.eIsSet(featureID); + } + +} //WrenchImpl diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/WrenchStampedImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/WrenchStampedImpl.java index 9fab1683062..056e6d5ad3a 100644 --- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/WrenchStampedImpl.java +++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/geometry_datatypes/impl/WrenchStampedImpl.java @@ -1,244 +1,244 @@ -/**
- */
-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.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.Wrench;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.WrenchStamped;
-
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Header;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Wrench Stamped</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.WrenchStampedImpl#getHeader <em>Header</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.WrenchStampedImpl#getWrench <em>Wrench</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class WrenchStampedImpl extends MinimalEObjectImpl.Container implements WrenchStamped {
- /**
- * The cached value of the '{@link #getHeader() <em>Header</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getHeader()
- * @generated
- * @ordered
- */
- protected Header header;
-
- /**
- * The cached value of the '{@link #getWrench() <em>Wrench</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getWrench()
- * @generated
- * @ordered
- */
- protected Wrench wrench;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected WrenchStampedImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Geometry_datatypesPackage.Literals.WRENCH_STAMPED;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Header getHeader() {
- return header;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetHeader(Header newHeader, NotificationChain msgs) {
- Header oldHeader = header;
- header = newHeader;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.WRENCH_STAMPED__HEADER, oldHeader, newHeader);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setHeader(Header newHeader) {
- if (newHeader != header) {
- NotificationChain msgs = null;
- if (header != null)
- msgs = ((InternalEObject)header).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.WRENCH_STAMPED__HEADER, null, msgs);
- if (newHeader != null)
- msgs = ((InternalEObject)newHeader).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.WRENCH_STAMPED__HEADER, null, msgs);
- msgs = basicSetHeader(newHeader, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.WRENCH_STAMPED__HEADER, newHeader, newHeader));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Wrench getWrench() {
- return wrench;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetWrench(Wrench newWrench, NotificationChain msgs) {
- Wrench oldWrench = wrench;
- wrench = newWrench;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.WRENCH_STAMPED__WRENCH, oldWrench, newWrench);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setWrench(Wrench newWrench) {
- if (newWrench != wrench) {
- NotificationChain msgs = null;
- if (wrench != null)
- msgs = ((InternalEObject)wrench).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.WRENCH_STAMPED__WRENCH, null, msgs);
- if (newWrench != null)
- msgs = ((InternalEObject)newWrench).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.WRENCH_STAMPED__WRENCH, null, msgs);
- msgs = basicSetWrench(newWrench, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.WRENCH_STAMPED__WRENCH, newWrench, newWrench));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case Geometry_datatypesPackage.WRENCH_STAMPED__HEADER:
- return basicSetHeader(null, msgs);
- case Geometry_datatypesPackage.WRENCH_STAMPED__WRENCH:
- return basicSetWrench(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Geometry_datatypesPackage.WRENCH_STAMPED__HEADER:
- return getHeader();
- case Geometry_datatypesPackage.WRENCH_STAMPED__WRENCH:
- return getWrench();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Geometry_datatypesPackage.WRENCH_STAMPED__HEADER:
- setHeader((Header)newValue);
- return;
- case Geometry_datatypesPackage.WRENCH_STAMPED__WRENCH:
- setWrench((Wrench)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.WRENCH_STAMPED__HEADER:
- setHeader((Header)null);
- return;
- case Geometry_datatypesPackage.WRENCH_STAMPED__WRENCH:
- setWrench((Wrench)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Geometry_datatypesPackage.WRENCH_STAMPED__HEADER:
- return header != null;
- case Geometry_datatypesPackage.WRENCH_STAMPED__WRENCH:
- return wrench != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //WrenchStampedImpl
+/** + */ +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.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.Wrench; +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.WrenchStamped; + +import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Header; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Wrench Stamped</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.WrenchStampedImpl#getHeader <em>Header</em>}</li> + * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.impl.WrenchStampedImpl#getWrench <em>Wrench</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class WrenchStampedImpl extends MinimalEObjectImpl.Container implements WrenchStamped { + /** + * The cached value of the '{@link #getHeader() <em>Header</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHeader() + * @generated + * @ordered + */ + protected Header header; + + /** + * The cached value of the '{@link #getWrench() <em>Wrench</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getWrench() + * @generated + * @ordered + */ + protected Wrench wrench; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected WrenchStampedImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return Geometry_datatypesPackage.Literals.WRENCH_STAMPED; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Header getHeader() { + return header; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetHeader(Header newHeader, NotificationChain msgs) { + Header oldHeader = header; + header = newHeader; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.WRENCH_STAMPED__HEADER, oldHeader, newHeader); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setHeader(Header newHeader) { + if (newHeader != header) { + NotificationChain msgs = null; + if (header != null) + msgs = ((InternalEObject)header).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.WRENCH_STAMPED__HEADER, null, msgs); + if (newHeader != null) + msgs = ((InternalEObject)newHeader).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.WRENCH_STAMPED__HEADER, null, msgs); + msgs = basicSetHeader(newHeader, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.WRENCH_STAMPED__HEADER, newHeader, newHeader)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Wrench getWrench() { + return wrench; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetWrench(Wrench newWrench, NotificationChain msgs) { + Wrench oldWrench = wrench; + wrench = newWrench; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.WRENCH_STAMPED__WRENCH, oldWrench, newWrench); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setWrench(Wrench newWrench) { + if (newWrench != wrench) { + NotificationChain msgs = null; + if (wrench != null) + msgs = ((InternalEObject)wrench).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.WRENCH_STAMPED__WRENCH, null, msgs); + if (newWrench != null) + msgs = ((InternalEObject)newWrench).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Geometry_datatypesPackage.WRENCH_STAMPED__WRENCH, null, msgs); + msgs = basicSetWrench(newWrench, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Geometry_datatypesPackage.WRENCH_STAMPED__WRENCH, newWrench, newWrench)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case Geometry_datatypesPackage.WRENCH_STAMPED__HEADER: + return basicSetHeader(null, msgs); + case Geometry_datatypesPackage.WRENCH_STAMPED__WRENCH: + return basicSetWrench(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case Geometry_datatypesPackage.WRENCH_STAMPED__HEADER: + return getHeader(); + case Geometry_datatypesPackage.WRENCH_STAMPED__WRENCH: + return getWrench(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case Geometry_datatypesPackage.WRENCH_STAMPED__HEADER: + setHeader((Header)newValue); + return; + case Geometry_datatypesPackage.WRENCH_STAMPED__WRENCH: + setWrench((Wrench)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.WRENCH_STAMPED__HEADER: + setHeader((Header)null); + return; + case Geometry_datatypesPackage.WRENCH_STAMPED__WRENCH: + setWrench((Wrench)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case Geometry_datatypesPackage.WRENCH_STAMPED__HEADER: + return header != null; + case Geometry_datatypesPackage.WRENCH_STAMPED__WRENCH: + return wrench != null; + } + return super.eIsSet(featureID); + } + +} //WrenchStampedImpl |