Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/CameraSystemImpl.java')
-rw-r--r--extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/CameraSystemImpl.java357
1 files changed, 139 insertions, 218 deletions
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/CameraSystemImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/CameraSystemImpl.java
index 02dc1cc5bf8..2964a6d069f 100644
--- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/CameraSystemImpl.java
+++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/CameraSystemImpl.java
@@ -1,23 +1,18 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Saadia Dhouib (CEA LIST) saadia.dhouib@cea.fr - Initial API and implementation
- *****************************************************************************/
+/**
+ */
package org.eclipse.papyrus.RobotML.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.papyrus.RobotML.CameraSystem;
import org.eclipse.papyrus.RobotML.RobotMLPackage;
+
import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.geometry_datatypes.Point32;
/**
@@ -27,27 +22,25 @@ import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTyp
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.RobotML.impl.CameraSystemImpl#getWidth <em>Width</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotML.impl.CameraSystemImpl#getHeight <em>Height</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotML.impl.CameraSystemImpl#getAlpha_u <em>Alpha u</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotML.impl.CameraSystemImpl#getAlpha_v <em>Alpha v</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotML.impl.CameraSystemImpl#getU0 <em>U0</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotML.impl.CameraSystemImpl#getV0 <em>V0</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotML.impl.CameraSystemImpl#getColor_format <em>Color format</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotML.impl.CameraSystemImpl#getTranslate <em>Translate</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotML.impl.CameraSystemImpl#getRotate <em>Rotate</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotML.impl.CameraSystemImpl#getWidth <em>Width</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotML.impl.CameraSystemImpl#getHeight <em>Height</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotML.impl.CameraSystemImpl#getAlpha_u <em>Alpha u</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotML.impl.CameraSystemImpl#getAlpha_v <em>Alpha v</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotML.impl.CameraSystemImpl#getU0 <em>U0</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotML.impl.CameraSystemImpl#getV0 <em>V0</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotML.impl.CameraSystemImpl#getColor_format <em>Color format</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotML.impl.CameraSystemImpl#getTranslate <em>Translate</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotML.impl.CameraSystemImpl#getRotate <em>Rotate</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSystem {
-
/**
* The default value of the '{@link #getWidth() <em>Width</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getWidth()
* @generated
* @ordered
@@ -58,7 +51,6 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
* The cached value of the '{@link #getWidth() <em>Width</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getWidth()
* @generated
* @ordered
@@ -69,7 +61,6 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
* The default value of the '{@link #getHeight() <em>Height</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getHeight()
* @generated
* @ordered
@@ -80,7 +71,6 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
* The cached value of the '{@link #getHeight() <em>Height</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getHeight()
* @generated
* @ordered
@@ -91,7 +81,6 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
* The default value of the '{@link #getAlpha_u() <em>Alpha u</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getAlpha_u()
* @generated
* @ordered
@@ -102,7 +91,6 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
* The cached value of the '{@link #getAlpha_u() <em>Alpha u</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getAlpha_u()
* @generated
* @ordered
@@ -113,7 +101,6 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
* The default value of the '{@link #getAlpha_v() <em>Alpha v</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getAlpha_v()
* @generated
* @ordered
@@ -124,7 +111,6 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
* The cached value of the '{@link #getAlpha_v() <em>Alpha v</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getAlpha_v()
* @generated
* @ordered
@@ -135,7 +121,6 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
* The default value of the '{@link #getU0() <em>U0</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getU0()
* @generated
* @ordered
@@ -146,7 +131,6 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
* The cached value of the '{@link #getU0() <em>U0</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getU0()
* @generated
* @ordered
@@ -157,7 +141,6 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
* The default value of the '{@link #getV0() <em>V0</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getV0()
* @generated
* @ordered
@@ -168,7 +151,6 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
* The cached value of the '{@link #getV0() <em>V0</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getV0()
* @generated
* @ordered
@@ -179,7 +161,6 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
* The default value of the '{@link #getColor_format() <em>Color format</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getColor_format()
* @generated
* @ordered
@@ -190,7 +171,6 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
* The cached value of the '{@link #getColor_format() <em>Color format</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getColor_format()
* @generated
* @ordered
@@ -198,21 +178,9 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
protected String color_format = COLOR_FORMAT_EDEFAULT;
/**
- * The default value of the '{@link #getTranslate() <em>Translate</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getTranslate()
- * @generated
- * @ordered
- */
-
-
- /**
* The cached value of the '{@link #getTranslate() <em>Translate</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getTranslate()
* @generated
* @ordered
@@ -220,21 +188,9 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
protected Point32 translate;
/**
- * The default value of the '{@link #getRotate() <em>Rotate</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getRotate()
- * @generated
- * @ordered
- */
-
-
- /**
* The cached value of the '{@link #getRotate() <em>Rotate</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getRotate()
* @generated
* @ordered
@@ -244,7 +200,6 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected CameraSystemImpl() {
@@ -254,7 +209,6 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -265,7 +219,6 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public long getWidth() {
@@ -275,20 +228,18 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setWidth(long newWidth) {
long oldWidth = width;
width = newWidth;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, RobotMLPackage.CAMERA_SYSTEM__WIDTH, oldWidth, width));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public long getHeight() {
@@ -298,20 +249,18 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setHeight(long newHeight) {
long oldHeight = height;
height = newHeight;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, RobotMLPackage.CAMERA_SYSTEM__HEIGHT, oldHeight, height));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public float getAlpha_u() {
@@ -321,20 +270,18 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setAlpha_u(float newAlpha_u) {
float oldAlpha_u = alpha_u;
alpha_u = newAlpha_u;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, RobotMLPackage.CAMERA_SYSTEM__ALPHA_U, oldAlpha_u, alpha_u));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public float getAlpha_v() {
@@ -344,20 +291,18 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setAlpha_v(float newAlpha_v) {
float oldAlpha_v = alpha_v;
alpha_v = newAlpha_v;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, RobotMLPackage.CAMERA_SYSTEM__ALPHA_V, oldAlpha_v, alpha_v));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public float getU0() {
@@ -367,20 +312,18 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setU0(float newU0) {
float oldU0 = u0;
u0 = newU0;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, RobotMLPackage.CAMERA_SYSTEM__U0, oldU0, u0));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public float getV0() {
@@ -390,20 +333,18 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setV0(float newV0) {
float oldV0 = v0;
v0 = newV0;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, RobotMLPackage.CAMERA_SYSTEM__V0, oldV0, v0));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public String getColor_format() {
@@ -413,20 +354,18 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setColor_format(String newColor_format) {
String oldColor_format = color_format;
color_format = newColor_format;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, RobotMLPackage.CAMERA_SYSTEM__COLOR_FORMAT, oldColor_format, color_format));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Point32 getTranslate() {
@@ -436,18 +375,14 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public NotificationChain basicSetTranslate(Point32 newTranslate, NotificationChain msgs) {
Point32 oldTranslate = translate;
translate = newTranslate;
- if(eNotificationRequired()) {
+ if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RobotMLPackage.CAMERA_SYSTEM__TRANSLATE, oldTranslate, newTranslate);
- if(msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
@@ -455,27 +390,25 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setTranslate(Point32 newTranslate) {
- if(newTranslate != translate) {
+ if (newTranslate != translate) {
NotificationChain msgs = null;
- if(translate != null)
+ if (translate != null)
msgs = ((InternalEObject)translate).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RobotMLPackage.CAMERA_SYSTEM__TRANSLATE, null, msgs);
- if(newTranslate != null)
+ if (newTranslate != null)
msgs = ((InternalEObject)newTranslate).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RobotMLPackage.CAMERA_SYSTEM__TRANSLATE, null, msgs);
msgs = basicSetTranslate(newTranslate, msgs);
- if(msgs != null)
- msgs.dispatch();
- } else if(eNotificationRequired())
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, RobotMLPackage.CAMERA_SYSTEM__TRANSLATE, newTranslate, newTranslate));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Point32 getRotate() {
@@ -485,18 +418,14 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public NotificationChain basicSetRotate(Point32 newRotate, NotificationChain msgs) {
Point32 oldRotate = rotate;
rotate = newRotate;
- if(eNotificationRequired()) {
+ if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RobotMLPackage.CAMERA_SYSTEM__ROTATE, oldRotate, newRotate);
- if(msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
@@ -504,36 +433,34 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setRotate(Point32 newRotate) {
- if(newRotate != rotate) {
+ if (newRotate != rotate) {
NotificationChain msgs = null;
- if(rotate != null)
+ if (rotate != null)
msgs = ((InternalEObject)rotate).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RobotMLPackage.CAMERA_SYSTEM__ROTATE, null, msgs);
- if(newRotate != null)
+ if (newRotate != null)
msgs = ((InternalEObject)newRotate).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RobotMLPackage.CAMERA_SYSTEM__ROTATE, null, msgs);
msgs = basicSetRotate(newRotate, msgs);
- if(msgs != null)
- msgs.dispatch();
- } else if(eNotificationRequired())
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, RobotMLPackage.CAMERA_SYSTEM__ROTATE, newRotate, newRotate));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch(featureID) {
- case RobotMLPackage.CAMERA_SYSTEM__TRANSLATE:
- return basicSetTranslate(null, msgs);
- case RobotMLPackage.CAMERA_SYSTEM__ROTATE:
- return basicSetRotate(null, msgs);
+ switch (featureID) {
+ case RobotMLPackage.CAMERA_SYSTEM__TRANSLATE:
+ return basicSetTranslate(null, msgs);
+ case RobotMLPackage.CAMERA_SYSTEM__ROTATE:
+ return basicSetRotate(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -541,30 +468,29 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case RobotMLPackage.CAMERA_SYSTEM__WIDTH:
- return getWidth();
- case RobotMLPackage.CAMERA_SYSTEM__HEIGHT:
- return getHeight();
- case RobotMLPackage.CAMERA_SYSTEM__ALPHA_U:
- return getAlpha_u();
- case RobotMLPackage.CAMERA_SYSTEM__ALPHA_V:
- return getAlpha_v();
- case RobotMLPackage.CAMERA_SYSTEM__U0:
- return getU0();
- case RobotMLPackage.CAMERA_SYSTEM__V0:
- return getV0();
- case RobotMLPackage.CAMERA_SYSTEM__COLOR_FORMAT:
- return getColor_format();
- case RobotMLPackage.CAMERA_SYSTEM__TRANSLATE:
- return getTranslate();
- case RobotMLPackage.CAMERA_SYSTEM__ROTATE:
- return getRotate();
+ switch (featureID) {
+ case RobotMLPackage.CAMERA_SYSTEM__WIDTH:
+ return getWidth();
+ case RobotMLPackage.CAMERA_SYSTEM__HEIGHT:
+ return getHeight();
+ case RobotMLPackage.CAMERA_SYSTEM__ALPHA_U:
+ return getAlpha_u();
+ case RobotMLPackage.CAMERA_SYSTEM__ALPHA_V:
+ return getAlpha_v();
+ case RobotMLPackage.CAMERA_SYSTEM__U0:
+ return getU0();
+ case RobotMLPackage.CAMERA_SYSTEM__V0:
+ return getV0();
+ case RobotMLPackage.CAMERA_SYSTEM__COLOR_FORMAT:
+ return getColor_format();
+ case RobotMLPackage.CAMERA_SYSTEM__TRANSLATE:
+ return getTranslate();
+ case RobotMLPackage.CAMERA_SYSTEM__ROTATE:
+ return getRotate();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -572,39 +498,38 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case RobotMLPackage.CAMERA_SYSTEM__WIDTH:
- setWidth((Long)newValue);
- return;
- case RobotMLPackage.CAMERA_SYSTEM__HEIGHT:
- setHeight((Long)newValue);
- return;
- case RobotMLPackage.CAMERA_SYSTEM__ALPHA_U:
- setAlpha_u((Float)newValue);
- return;
- case RobotMLPackage.CAMERA_SYSTEM__ALPHA_V:
- setAlpha_v((Float)newValue);
- return;
- case RobotMLPackage.CAMERA_SYSTEM__U0:
- setU0((Float)newValue);
- return;
- case RobotMLPackage.CAMERA_SYSTEM__V0:
- setV0((Float)newValue);
- return;
- case RobotMLPackage.CAMERA_SYSTEM__COLOR_FORMAT:
- setColor_format((String)newValue);
- return;
- case RobotMLPackage.CAMERA_SYSTEM__TRANSLATE:
- setTranslate((Point32)newValue);
- return;
- case RobotMLPackage.CAMERA_SYSTEM__ROTATE:
- setRotate((Point32)newValue);
- return;
+ switch (featureID) {
+ case RobotMLPackage.CAMERA_SYSTEM__WIDTH:
+ setWidth((Long)newValue);
+ return;
+ case RobotMLPackage.CAMERA_SYSTEM__HEIGHT:
+ setHeight((Long)newValue);
+ return;
+ case RobotMLPackage.CAMERA_SYSTEM__ALPHA_U:
+ setAlpha_u((Float)newValue);
+ return;
+ case RobotMLPackage.CAMERA_SYSTEM__ALPHA_V:
+ setAlpha_v((Float)newValue);
+ return;
+ case RobotMLPackage.CAMERA_SYSTEM__U0:
+ setU0((Float)newValue);
+ return;
+ case RobotMLPackage.CAMERA_SYSTEM__V0:
+ setV0((Float)newValue);
+ return;
+ case RobotMLPackage.CAMERA_SYSTEM__COLOR_FORMAT:
+ setColor_format((String)newValue);
+ return;
+ case RobotMLPackage.CAMERA_SYSTEM__TRANSLATE:
+ setTranslate((Point32)newValue);
+ return;
+ case RobotMLPackage.CAMERA_SYSTEM__ROTATE:
+ setRotate((Point32)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -612,39 +537,38 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch(featureID) {
- case RobotMLPackage.CAMERA_SYSTEM__WIDTH:
- setWidth(WIDTH_EDEFAULT);
- return;
- case RobotMLPackage.CAMERA_SYSTEM__HEIGHT:
- setHeight(HEIGHT_EDEFAULT);
- return;
- case RobotMLPackage.CAMERA_SYSTEM__ALPHA_U:
- setAlpha_u(ALPHA_U_EDEFAULT);
- return;
- case RobotMLPackage.CAMERA_SYSTEM__ALPHA_V:
- setAlpha_v(ALPHA_V_EDEFAULT);
- return;
- case RobotMLPackage.CAMERA_SYSTEM__U0:
- setU0(U0_EDEFAULT);
- return;
- case RobotMLPackage.CAMERA_SYSTEM__V0:
- setV0(V0_EDEFAULT);
- return;
- case RobotMLPackage.CAMERA_SYSTEM__COLOR_FORMAT:
- setColor_format(COLOR_FORMAT_EDEFAULT);
- return;
- case RobotMLPackage.CAMERA_SYSTEM__TRANSLATE:
- setTranslate((Point32)null);
- return;
- case RobotMLPackage.CAMERA_SYSTEM__ROTATE:
- setRotate((Point32)null);
- return;
+ switch (featureID) {
+ case RobotMLPackage.CAMERA_SYSTEM__WIDTH:
+ setWidth(WIDTH_EDEFAULT);
+ return;
+ case RobotMLPackage.CAMERA_SYSTEM__HEIGHT:
+ setHeight(HEIGHT_EDEFAULT);
+ return;
+ case RobotMLPackage.CAMERA_SYSTEM__ALPHA_U:
+ setAlpha_u(ALPHA_U_EDEFAULT);
+ return;
+ case RobotMLPackage.CAMERA_SYSTEM__ALPHA_V:
+ setAlpha_v(ALPHA_V_EDEFAULT);
+ return;
+ case RobotMLPackage.CAMERA_SYSTEM__U0:
+ setU0(U0_EDEFAULT);
+ return;
+ case RobotMLPackage.CAMERA_SYSTEM__V0:
+ setV0(V0_EDEFAULT);
+ return;
+ case RobotMLPackage.CAMERA_SYSTEM__COLOR_FORMAT:
+ setColor_format(COLOR_FORMAT_EDEFAULT);
+ return;
+ case RobotMLPackage.CAMERA_SYSTEM__TRANSLATE:
+ setTranslate((Point32)null);
+ return;
+ case RobotMLPackage.CAMERA_SYSTEM__ROTATE:
+ setRotate((Point32)null);
+ return;
}
super.eUnset(featureID);
}
@@ -652,30 +576,29 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
- case RobotMLPackage.CAMERA_SYSTEM__WIDTH:
- return width != WIDTH_EDEFAULT;
- case RobotMLPackage.CAMERA_SYSTEM__HEIGHT:
- return height != HEIGHT_EDEFAULT;
- case RobotMLPackage.CAMERA_SYSTEM__ALPHA_U:
- return alpha_u != ALPHA_U_EDEFAULT;
- case RobotMLPackage.CAMERA_SYSTEM__ALPHA_V:
- return alpha_v != ALPHA_V_EDEFAULT;
- case RobotMLPackage.CAMERA_SYSTEM__U0:
- return u0 != U0_EDEFAULT;
- case RobotMLPackage.CAMERA_SYSTEM__V0:
- return v0 != V0_EDEFAULT;
- case RobotMLPackage.CAMERA_SYSTEM__COLOR_FORMAT:
- return COLOR_FORMAT_EDEFAULT == null ? color_format != null : !COLOR_FORMAT_EDEFAULT.equals(color_format);
- case RobotMLPackage.CAMERA_SYSTEM__TRANSLATE:
- return translate != null;
- case RobotMLPackage.CAMERA_SYSTEM__ROTATE:
- return rotate != null;
+ switch (featureID) {
+ case RobotMLPackage.CAMERA_SYSTEM__WIDTH:
+ return width != WIDTH_EDEFAULT;
+ case RobotMLPackage.CAMERA_SYSTEM__HEIGHT:
+ return height != HEIGHT_EDEFAULT;
+ case RobotMLPackage.CAMERA_SYSTEM__ALPHA_U:
+ return alpha_u != ALPHA_U_EDEFAULT;
+ case RobotMLPackage.CAMERA_SYSTEM__ALPHA_V:
+ return alpha_v != ALPHA_V_EDEFAULT;
+ case RobotMLPackage.CAMERA_SYSTEM__U0:
+ return u0 != U0_EDEFAULT;
+ case RobotMLPackage.CAMERA_SYSTEM__V0:
+ return v0 != V0_EDEFAULT;
+ case RobotMLPackage.CAMERA_SYSTEM__COLOR_FORMAT:
+ return COLOR_FORMAT_EDEFAULT == null ? color_format != null : !COLOR_FORMAT_EDEFAULT.equals(color_format);
+ case RobotMLPackage.CAMERA_SYSTEM__TRANSLATE:
+ return translate != null;
+ case RobotMLPackage.CAMERA_SYSTEM__ROTATE:
+ return rotate != null;
}
return super.eIsSet(featureID);
}
@@ -683,13 +606,11 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public String toString() {
- if(eIsProxy())
- return super.toString();
+ if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (width: ");

Back to the top