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.java323
1 files changed, 197 insertions, 126 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 2319dc8d91c..f90a793d086 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
@@ -22,15 +22,15 @@ 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>
*
@@ -41,6 +41,7 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
* The default value of the '{@link #getWidth() <em>Width</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getWidth()
* @generated
* @ordered
@@ -51,6 +52,7 @@ 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
@@ -61,6 +63,7 @@ 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
@@ -71,6 +74,7 @@ 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
@@ -81,6 +85,7 @@ 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
@@ -91,6 +96,7 @@ 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
@@ -101,6 +107,7 @@ 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
@@ -111,6 +118,7 @@ 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
@@ -121,6 +129,7 @@ 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
@@ -131,6 +140,7 @@ 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
@@ -141,6 +151,7 @@ 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
@@ -151,6 +162,7 @@ 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
@@ -161,6 +173,7 @@ 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
@@ -171,6 +184,7 @@ 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
@@ -181,6 +195,7 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
* The cached value of the '{@link #getTranslate() <em>Translate</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getTranslate()
* @generated
* @ordered
@@ -191,6 +206,7 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
* The cached value of the '{@link #getRotate() <em>Rotate</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getRotate()
* @generated
* @ordered
@@ -200,6 +216,7 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected CameraSystemImpl() {
@@ -209,6 +226,7 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -219,6 +237,7 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public long getWidth() {
@@ -228,18 +247,21 @@ 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() {
@@ -249,18 +271,21 @@ 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() {
@@ -270,18 +295,21 @@ 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() {
@@ -291,18 +319,21 @@ 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() {
@@ -312,18 +343,21 @@ 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() {
@@ -333,18 +367,21 @@ 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() {
@@ -354,18 +391,21 @@ 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() {
@@ -375,6 +415,7 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public NotificationChain basicSetTranslate(Point32 newTranslate, NotificationChain msgs) {
@@ -382,7 +423,11 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
translate = newTranslate;
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;
}
@@ -390,25 +435,32 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setTranslate(Point32 newTranslate) {
if (newTranslate != translate) {
NotificationChain msgs = null;
- if (translate != null)
- msgs = ((InternalEObject)translate).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RobotMLPackage.CAMERA_SYSTEM__TRANSLATE, null, msgs);
- if (newTranslate != null)
- msgs = ((InternalEObject)newTranslate).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RobotMLPackage.CAMERA_SYSTEM__TRANSLATE, null, msgs);
+ if (translate != null) {
+ msgs = ((InternalEObject) translate).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RobotMLPackage.CAMERA_SYSTEM__TRANSLATE, null, msgs);
+ }
+ 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();
+ if (msgs != null) {
+ msgs.dispatch();
+ }
}
- else if (eNotificationRequired())
+ 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() {
@@ -418,6 +470,7 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public NotificationChain basicSetRotate(Point32 newRotate, NotificationChain msgs) {
@@ -425,7 +478,11 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
rotate = newRotate;
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;
}
@@ -433,34 +490,41 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setRotate(Point32 newRotate) {
if (newRotate != rotate) {
NotificationChain msgs = null;
- if (rotate != null)
- msgs = ((InternalEObject)rotate).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RobotMLPackage.CAMERA_SYSTEM__ROTATE, null, msgs);
- if (newRotate != null)
- msgs = ((InternalEObject)newRotate).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RobotMLPackage.CAMERA_SYSTEM__ROTATE, null, msgs);
+ if (rotate != null) {
+ msgs = ((InternalEObject) rotate).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RobotMLPackage.CAMERA_SYSTEM__ROTATE, null, msgs);
+ }
+ 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();
+ if (msgs != null) {
+ msgs.dispatch();
+ }
}
- else if (eNotificationRequired())
+ 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);
+ case RobotMLPackage.CAMERA_SYSTEM__TRANSLATE:
+ return basicSetTranslate(null, msgs);
+ case RobotMLPackage.CAMERA_SYSTEM__ROTATE:
+ return basicSetRotate(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -468,29 +532,30 @@ 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();
+ 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);
}
@@ -498,38 +563,39 @@ 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;
+ 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);
}
@@ -537,38 +603,39 @@ 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;
+ 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);
}
@@ -576,29 +643,30 @@ 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;
+ 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);
}
@@ -606,11 +674,14 @@ 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: ");
@@ -631,4 +702,4 @@ public class CameraSystemImpl extends ImageSensorSystemImpl implements CameraSys
return result.toString();
}
-} //CameraSystemImpl
+} // CameraSystemImpl

Back to the top