(RosParameter.class, this, ComponentInterfacePackage.COMPONENT_INTERFACE__ROSPARAMETER);
- }
- return rosparameter;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public Node getFromRosNode() {
- if (fromRosNode != null && fromRosNode.eIsProxy()) {
- InternalEObject oldFromRosNode = (InternalEObject)fromRosNode;
- fromRosNode = (Node)eResolveProxy(oldFromRosNode);
- if (fromRosNode != oldFromRosNode) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ComponentInterfacePackage.COMPONENT_INTERFACE__FROM_ROS_NODE, oldFromRosNode, fromRosNode));
- }
- }
- return fromRosNode;
- }
-
- /**
- *
- *
- * @generated
- */
- public Node basicGetFromRosNode() {
- return fromRosNode;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void setFromRosNode(Node newFromRosNode) {
- Node oldFromRosNode = fromRosNode;
- fromRosNode = newFromRosNode;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ComponentInterfacePackage.COMPONENT_INTERFACE__FROM_ROS_NODE, oldFromRosNode, fromRosNode));
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSPUBLISHER:
- return ((InternalEList>)getRospublisher()).basicRemove(otherEnd, msgs);
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSSUBSCRIBER:
- return ((InternalEList>)getRossubscriber()).basicRemove(otherEnd, msgs);
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSSERVICESERVER:
- return ((InternalEList>)getRosserviceserver()).basicRemove(otherEnd, msgs);
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSSERVICECLIENT:
- return ((InternalEList>)getRosserviceclient()).basicRemove(otherEnd, msgs);
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSACTIONSERVER:
- return ((InternalEList>)getRosactionserver()).basicRemove(otherEnd, msgs);
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSACTIONCLIENT:
- return ((InternalEList>)getRosactionclient()).basicRemove(otherEnd, msgs);
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSPARAMETER:
- return ((InternalEList>)getRosparameter()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case ComponentInterfacePackage.COMPONENT_INTERFACE__NAME:
- return getName();
- case ComponentInterfacePackage.COMPONENT_INTERFACE__NAME_SPACE:
- return getNameSpace();
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSPUBLISHER:
- return getRospublisher();
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSSUBSCRIBER:
- return getRossubscriber();
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSSERVICESERVER:
- return getRosserviceserver();
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSSERVICECLIENT:
- return getRosserviceclient();
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSACTIONSERVER:
- return getRosactionserver();
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSACTIONCLIENT:
- return getRosactionclient();
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSPARAMETER:
- return getRosparameter();
- case ComponentInterfacePackage.COMPONENT_INTERFACE__FROM_ROS_NODE:
- if (resolve) return getFromRosNode();
- return basicGetFromRosNode();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- *
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case ComponentInterfacePackage.COMPONENT_INTERFACE__NAME:
- setName((String)newValue);
- return;
- case ComponentInterfacePackage.COMPONENT_INTERFACE__NAME_SPACE:
- setNameSpace((String)newValue);
- return;
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSPUBLISHER:
- getRospublisher().clear();
- getRospublisher().addAll((Collection extends RosPublisher>)newValue);
- return;
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSSUBSCRIBER:
- getRossubscriber().clear();
- getRossubscriber().addAll((Collection extends RosSubscriber>)newValue);
- return;
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSSERVICESERVER:
- getRosserviceserver().clear();
- getRosserviceserver().addAll((Collection extends RosServiceServer>)newValue);
- return;
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSSERVICECLIENT:
- getRosserviceclient().clear();
- getRosserviceclient().addAll((Collection extends RosServiceClient>)newValue);
- return;
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSACTIONSERVER:
- getRosactionserver().clear();
- getRosactionserver().addAll((Collection extends RosActionServer>)newValue);
- return;
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSACTIONCLIENT:
- getRosactionclient().clear();
- getRosactionclient().addAll((Collection extends RosActionClient>)newValue);
- return;
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSPARAMETER:
- getRosparameter().clear();
- getRosparameter().addAll((Collection extends RosParameter>)newValue);
- return;
- case ComponentInterfacePackage.COMPONENT_INTERFACE__FROM_ROS_NODE:
- setFromRosNode((Node)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case ComponentInterfacePackage.COMPONENT_INTERFACE__NAME:
- setName(NAME_EDEFAULT);
- return;
- case ComponentInterfacePackage.COMPONENT_INTERFACE__NAME_SPACE:
- setNameSpace(NAME_SPACE_EDEFAULT);
- return;
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSPUBLISHER:
- getRospublisher().clear();
- return;
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSSUBSCRIBER:
- getRossubscriber().clear();
- return;
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSSERVICESERVER:
- getRosserviceserver().clear();
- return;
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSSERVICECLIENT:
- getRosserviceclient().clear();
- return;
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSACTIONSERVER:
- getRosactionserver().clear();
- return;
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSACTIONCLIENT:
- getRosactionclient().clear();
- return;
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSPARAMETER:
- getRosparameter().clear();
- return;
- case ComponentInterfacePackage.COMPONENT_INTERFACE__FROM_ROS_NODE:
- setFromRosNode((Node)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case ComponentInterfacePackage.COMPONENT_INTERFACE__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case ComponentInterfacePackage.COMPONENT_INTERFACE__NAME_SPACE:
- return NAME_SPACE_EDEFAULT == null ? nameSpace != null : !NAME_SPACE_EDEFAULT.equals(nameSpace);
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSPUBLISHER:
- return rospublisher != null && !rospublisher.isEmpty();
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSSUBSCRIBER:
- return rossubscriber != null && !rossubscriber.isEmpty();
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSSERVICESERVER:
- return rosserviceserver != null && !rosserviceserver.isEmpty();
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSSERVICECLIENT:
- return rosserviceclient != null && !rosserviceclient.isEmpty();
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSACTIONSERVER:
- return rosactionserver != null && !rosactionserver.isEmpty();
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSACTIONCLIENT:
- return rosactionclient != null && !rosactionclient.isEmpty();
- case ComponentInterfacePackage.COMPONENT_INTERFACE__ROSPARAMETER:
- return rosparameter != null && !rosparameter.isEmpty();
- case ComponentInterfacePackage.COMPONENT_INTERFACE__FROM_ROS_NODE:
- return fromRosNode != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuilder result = new StringBuilder(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(", NameSpace: ");
- result.append(nameSpace);
- result.append(')');
- return result.toString();
- }
-
-} //ComponentInterfaceImpl
diff --git a/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/impl/ComponentInterfacePackageImpl.java b/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/impl/ComponentInterfacePackageImpl.java
deleted file mode 100644
index 04792a189..000000000
--- a/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/impl/ComponentInterfacePackageImpl.java
+++ /dev/null
@@ -1,764 +0,0 @@
-/**
- */
-package componentInterface.impl;
-
-import componentInterface.ComponentInterface;
-import componentInterface.ComponentInterfaceFactory;
-import componentInterface.ComponentInterfacePackage;
-import componentInterface.NameSpaceComponent;
-import componentInterface.RosActionClient;
-import componentInterface.RosActionServer;
-import componentInterface.RosParameter;
-import componentInterface.RosPublisher;
-import componentInterface.RosServiceClient;
-import componentInterface.RosServiceServer;
-import componentInterface.RosSubscriber;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-
-import primitives.PrimitivesPackage;
-import ros.RosPackage;
-
-/**
- *
- * An implementation of the model Package.
- *
- * @generated
- */
-public class ComponentInterfacePackageImpl extends EPackageImpl implements ComponentInterfacePackage {
- /**
- *
- *
- * @generated
- */
- private EClass componentInterfaceEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass rosPublisherEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass rosSubscriberEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass rosServiceServerEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass rosServiceClientEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass nameSpaceComponentEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass rosActionServerEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass rosActionClientEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass rosParameterEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EDataType nsEDataType = null;
-
- /**
- * Creates an instance of the model Package, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
- * package URI value.
- * 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.
- *
- *
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see componentInterface.ComponentInterfacePackage#eNS_URI
- * @see #init()
- * @generated
- */
- private ComponentInterfacePackageImpl() {
- super(eNS_URI, ComponentInterfaceFactory.eINSTANCE);
- }
-
- /**
- *
- *
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the Package for this model, and for any others upon which it depends.
- *
- *
This method is used to initialize {@link ComponentInterfacePackage#eINSTANCE} when that field is accessed.
- * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
- *
- *
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static ComponentInterfacePackage init() {
- if (isInited) return (ComponentInterfacePackage)EPackage.Registry.INSTANCE.getEPackage(ComponentInterfacePackage.eNS_URI);
-
- // Obtain or create and register package
- Object registeredComponentInterfacePackage = EPackage.Registry.INSTANCE.get(eNS_URI);
- ComponentInterfacePackageImpl theComponentInterfacePackage = registeredComponentInterfacePackage instanceof ComponentInterfacePackageImpl ? (ComponentInterfacePackageImpl)registeredComponentInterfacePackage : new ComponentInterfacePackageImpl();
-
- isInited = true;
-
- // Initialize simple dependencies
- RosPackage.eINSTANCE.eClass();
- PrimitivesPackage.eINSTANCE.eClass();
-
- // Create package meta-data objects
- theComponentInterfacePackage.createPackageContents();
-
- // Initialize created meta-data
- theComponentInterfacePackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theComponentInterfacePackage.freeze();
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(ComponentInterfacePackage.eNS_URI, theComponentInterfacePackage);
- return theComponentInterfacePackage;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getComponentInterface() {
- return componentInterfaceEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getComponentInterface_Rospublisher() {
- return (EReference)componentInterfaceEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getComponentInterface_Rossubscriber() {
- return (EReference)componentInterfaceEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getComponentInterface_Rosserviceserver() {
- return (EReference)componentInterfaceEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getComponentInterface_Rosserviceclient() {
- return (EReference)componentInterfaceEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getComponentInterface_Rosactionserver() {
- return (EReference)componentInterfaceEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getComponentInterface_Rosactionclient() {
- return (EReference)componentInterfaceEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getComponentInterface_Rosparameter() {
- return (EReference)componentInterfaceEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getComponentInterface_FromRosNode() {
- return (EReference)componentInterfaceEClass.getEStructuralFeatures().get(7);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getRosPublisher() {
- return rosPublisherEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getRosPublisher_Publisher() {
- return (EReference)rosPublisherEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRosPublisher_Name() {
- return (EAttribute)rosPublisherEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRosPublisher_Ns() {
- return (EAttribute)rosPublisherEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getRosSubscriber() {
- return rosSubscriberEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getRosSubscriber_Subscriber() {
- return (EReference)rosSubscriberEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRosSubscriber_Name() {
- return (EAttribute)rosSubscriberEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRosSubscriber_Ns() {
- return (EAttribute)rosSubscriberEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getRosServiceServer() {
- return rosServiceServerEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getRosServiceServer_Srvserver() {
- return (EReference)rosServiceServerEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRosServiceServer_Name() {
- return (EAttribute)rosServiceServerEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRosServiceServer_Ns() {
- return (EAttribute)rosServiceServerEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getRosServiceClient() {
- return rosServiceClientEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getRosServiceClient_Srvclient() {
- return (EReference)rosServiceClientEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRosServiceClient_Name() {
- return (EAttribute)rosServiceClientEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRosServiceClient_Ns() {
- return (EAttribute)rosServiceClientEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getNameSpaceComponent() {
- return nameSpaceComponentEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getNameSpaceComponent_Name() {
- return (EAttribute)nameSpaceComponentEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getNameSpaceComponent_NameSpace() {
- return (EAttribute)nameSpaceComponentEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getRosActionServer() {
- return rosActionServerEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getRosActionServer_Actserver() {
- return (EReference)rosActionServerEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRosActionServer_Name() {
- return (EAttribute)rosActionServerEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRosActionServer_Ns() {
- return (EAttribute)rosActionServerEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getRosActionClient() {
- return rosActionClientEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getRosActionClient_Actclient() {
- return (EReference)rosActionClientEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRosActionClient_Name() {
- return (EAttribute)rosActionClientEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRosActionClient_Ns() {
- return (EAttribute)rosActionClientEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EClass getRosParameter() {
- return rosParameterEClass;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getRosParameter_Parameter() {
- return (EReference)rosParameterEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRosParameter_Name() {
- return (EAttribute)rosParameterEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EAttribute getRosParameter_Ns() {
- return (EAttribute)rosParameterEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EReference getRosParameter_Value() {
- return (EReference)rosParameterEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EDataType getNS() {
- return nsEDataType;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public ComponentInterfaceFactory getComponentInterfaceFactory() {
- return (ComponentInterfaceFactory)getEFactoryInstance();
- }
-
- /**
- *
- *
- * @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.
- *
- *
- * @generated
- */
- public void createPackageContents() {
- if (isCreated) return;
- isCreated = true;
-
- // Create classes and their features
- componentInterfaceEClass = createEClass(COMPONENT_INTERFACE);
- createEReference(componentInterfaceEClass, COMPONENT_INTERFACE__ROSPUBLISHER);
- createEReference(componentInterfaceEClass, COMPONENT_INTERFACE__ROSSUBSCRIBER);
- createEReference(componentInterfaceEClass, COMPONENT_INTERFACE__ROSSERVICESERVER);
- createEReference(componentInterfaceEClass, COMPONENT_INTERFACE__ROSSERVICECLIENT);
- createEReference(componentInterfaceEClass, COMPONENT_INTERFACE__ROSACTIONSERVER);
- createEReference(componentInterfaceEClass, COMPONENT_INTERFACE__ROSACTIONCLIENT);
- createEReference(componentInterfaceEClass, COMPONENT_INTERFACE__ROSPARAMETER);
- createEReference(componentInterfaceEClass, COMPONENT_INTERFACE__FROM_ROS_NODE);
-
- rosPublisherEClass = createEClass(ROS_PUBLISHER);
- createEReference(rosPublisherEClass, ROS_PUBLISHER__PUBLISHER);
- createEAttribute(rosPublisherEClass, ROS_PUBLISHER__NAME);
- createEAttribute(rosPublisherEClass, ROS_PUBLISHER__NS);
-
- rosSubscriberEClass = createEClass(ROS_SUBSCRIBER);
- createEReference(rosSubscriberEClass, ROS_SUBSCRIBER__SUBSCRIBER);
- createEAttribute(rosSubscriberEClass, ROS_SUBSCRIBER__NAME);
- createEAttribute(rosSubscriberEClass, ROS_SUBSCRIBER__NS);
-
- rosServiceServerEClass = createEClass(ROS_SERVICE_SERVER);
- createEReference(rosServiceServerEClass, ROS_SERVICE_SERVER__SRVSERVER);
- createEAttribute(rosServiceServerEClass, ROS_SERVICE_SERVER__NAME);
- createEAttribute(rosServiceServerEClass, ROS_SERVICE_SERVER__NS);
-
- rosServiceClientEClass = createEClass(ROS_SERVICE_CLIENT);
- createEReference(rosServiceClientEClass, ROS_SERVICE_CLIENT__SRVCLIENT);
- createEAttribute(rosServiceClientEClass, ROS_SERVICE_CLIENT__NAME);
- createEAttribute(rosServiceClientEClass, ROS_SERVICE_CLIENT__NS);
-
- nameSpaceComponentEClass = createEClass(NAME_SPACE_COMPONENT);
- createEAttribute(nameSpaceComponentEClass, NAME_SPACE_COMPONENT__NAME);
- createEAttribute(nameSpaceComponentEClass, NAME_SPACE_COMPONENT__NAME_SPACE);
-
- rosActionServerEClass = createEClass(ROS_ACTION_SERVER);
- createEReference(rosActionServerEClass, ROS_ACTION_SERVER__ACTSERVER);
- createEAttribute(rosActionServerEClass, ROS_ACTION_SERVER__NAME);
- createEAttribute(rosActionServerEClass, ROS_ACTION_SERVER__NS);
-
- rosActionClientEClass = createEClass(ROS_ACTION_CLIENT);
- createEReference(rosActionClientEClass, ROS_ACTION_CLIENT__ACTCLIENT);
- createEAttribute(rosActionClientEClass, ROS_ACTION_CLIENT__NAME);
- createEAttribute(rosActionClientEClass, ROS_ACTION_CLIENT__NS);
-
- rosParameterEClass = createEClass(ROS_PARAMETER);
- createEReference(rosParameterEClass, ROS_PARAMETER__PARAMETER);
- createEAttribute(rosParameterEClass, ROS_PARAMETER__NAME);
- createEAttribute(rosParameterEClass, ROS_PARAMETER__NS);
- createEReference(rosParameterEClass, ROS_PARAMETER__VALUE);
-
- // Create data types
- nsEDataType = createEDataType(NS);
- }
-
- /**
- *
- *
- * @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.
- *
- *
- * @generated
- */
- public void initializePackageContents() {
- if (isInitialized) return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Obtain other dependent packages
- RosPackage theRosPackage = (RosPackage)EPackage.Registry.INSTANCE.getEPackage(RosPackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- componentInterfaceEClass.getESuperTypes().add(this.getNameSpaceComponent());
-
- // Initialize classes, features, and operations; add parameters
- initEClass(componentInterfaceEClass, ComponentInterface.class, "ComponentInterface", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getComponentInterface_Rospublisher(), this.getRosPublisher(), null, "rospublisher", null, 0, -1, ComponentInterface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getComponentInterface_Rossubscriber(), this.getRosSubscriber(), null, "rossubscriber", null, 0, -1, ComponentInterface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getComponentInterface_Rosserviceserver(), this.getRosServiceServer(), null, "rosserviceserver", null, 0, -1, ComponentInterface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getComponentInterface_Rosserviceclient(), this.getRosServiceClient(), null, "rosserviceclient", null, 0, -1, ComponentInterface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getComponentInterface_Rosactionserver(), this.getRosActionServer(), null, "rosactionserver", null, 0, -1, ComponentInterface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getComponentInterface_Rosactionclient(), this.getRosActionClient(), null, "rosactionclient", null, 0, -1, ComponentInterface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getComponentInterface_Rosparameter(), this.getRosParameter(), null, "rosparameter", null, 0, -1, ComponentInterface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getComponentInterface_FromRosNode(), theRosPackage.getNode(), null, "FromRosNode", null, 0, 1, ComponentInterface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(rosPublisherEClass, RosPublisher.class, "RosPublisher", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getRosPublisher_Publisher(), theRosPackage.getPublisher(), null, "publisher", null, 0, 1, RosPublisher.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRosPublisher_Name(), ecorePackage.getEString(), "name", null, 0, 1, RosPublisher.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRosPublisher_Ns(), this.getNS(), "ns", "", 0, 1, RosPublisher.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(rosSubscriberEClass, RosSubscriber.class, "RosSubscriber", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getRosSubscriber_Subscriber(), theRosPackage.getSubscriber(), null, "subscriber", null, 0, 1, RosSubscriber.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRosSubscriber_Name(), ecorePackage.getEString(), "name", null, 0, 1, RosSubscriber.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRosSubscriber_Ns(), this.getNS(), "ns", null, 0, 1, RosSubscriber.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(rosServiceServerEClass, RosServiceServer.class, "RosServiceServer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getRosServiceServer_Srvserver(), theRosPackage.getServiceServer(), null, "srvserver", null, 0, 1, RosServiceServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRosServiceServer_Name(), ecorePackage.getEString(), "name", null, 0, 1, RosServiceServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRosServiceServer_Ns(), this.getNS(), "ns", null, 0, 1, RosServiceServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(rosServiceClientEClass, RosServiceClient.class, "RosServiceClient", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getRosServiceClient_Srvclient(), theRosPackage.getServiceClient(), null, "srvclient", null, 0, 1, RosServiceClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRosServiceClient_Name(), ecorePackage.getEString(), "name", null, 0, 1, RosServiceClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRosServiceClient_Ns(), this.getNS(), "ns", null, 0, 1, RosServiceClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(nameSpaceComponentEClass, NameSpaceComponent.class, "NameSpaceComponent", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getNameSpaceComponent_Name(), ecorePackage.getEString(), "name", null, 1, 1, NameSpaceComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getNameSpaceComponent_NameSpace(), this.getNS(), "NameSpace", null, 0, 1, NameSpaceComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(rosActionServerEClass, RosActionServer.class, "RosActionServer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getRosActionServer_Actserver(), theRosPackage.getActionServer(), null, "actserver", null, 0, 1, RosActionServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRosActionServer_Name(), ecorePackage.getEString(), "name", null, 0, 1, RosActionServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRosActionServer_Ns(), this.getNS(), "ns", null, 0, 1, RosActionServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(rosActionClientEClass, RosActionClient.class, "RosActionClient", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getRosActionClient_Actclient(), theRosPackage.getActionClient(), null, "actclient", null, 0, 1, RosActionClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRosActionClient_Name(), ecorePackage.getEString(), "name", null, 0, 1, RosActionClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRosActionClient_Ns(), this.getNS(), "ns", null, 0, 1, RosActionClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(rosParameterEClass, RosParameter.class, "RosParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getRosParameter_Parameter(), theRosPackage.getParameter(), null, "parameter", null, 0, 1, RosParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRosParameter_Name(), ecorePackage.getEString(), "name", null, 0, 1, RosParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRosParameter_Ns(), this.getNS(), "ns", "", 0, 1, RosParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getRosParameter_Value(), theRosPackage.getParameterValue(), null, "value", null, 0, 1, RosParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Initialize data types
- initEDataType(nsEDataType, String.class, "NS", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} //ComponentInterfacePackageImpl
diff --git a/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/impl/RosActionClientImpl.java b/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/impl/RosActionClientImpl.java
deleted file mode 100644
index ca8340d67..000000000
--- a/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/impl/RosActionClientImpl.java
+++ /dev/null
@@ -1,286 +0,0 @@
-/**
- */
-package componentInterface.impl;
-
-import componentInterface.ComponentInterfacePackage;
-import componentInterface.RosActionClient;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import ros.ActionClient;
-
-/**
- *
- * An implementation of the model object 'Ros Action Client'.
- *
- *
- * The following features are implemented:
- *
- *
- * - {@link componentInterface.impl.RosActionClientImpl#getActclient Actclient}
- * - {@link componentInterface.impl.RosActionClientImpl#getName Name}
- * - {@link componentInterface.impl.RosActionClientImpl#getNs Ns}
- *
- *
- * @generated
- */
-public class RosActionClientImpl extends MinimalEObjectImpl.Container implements RosActionClient {
- /**
- * The cached value of the '{@link #getActclient() Actclient}' reference.
- *
- *
- * @see #getActclient()
- * @generated
- * @ordered
- */
- protected ActionClient actclient;
-
- /**
- * The default value of the '{@link #getName() Name}' attribute.
- *
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() Name}' attribute.
- *
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getNs() Ns}' attribute.
- *
- *
- * @see #getNs()
- * @generated
- * @ordered
- */
- protected static final String NS_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getNs() Ns}' attribute.
- *
- *
- * @see #getNs()
- * @generated
- * @ordered
- */
- protected String ns = NS_EDEFAULT;
-
- /**
- *
- *
- * @generated NOT
- */
- public RosActionClientImpl() {
- super();
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ComponentInterfacePackage.Literals.ROS_ACTION_CLIENT;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public ActionClient getActclient() {
- if (actclient != null && actclient.eIsProxy()) {
- InternalEObject oldActclient = (InternalEObject)actclient;
- actclient = (ActionClient)eResolveProxy(oldActclient);
- if (actclient != oldActclient) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ComponentInterfacePackage.ROS_ACTION_CLIENT__ACTCLIENT, oldActclient, actclient));
- }
- }
- return actclient;
- }
-
- /**
- *
- *
- * @generated
- */
- public ActionClient basicGetActclient() {
- return actclient;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void setActclient(ActionClient newActclient) {
- ActionClient oldActclient = actclient;
- actclient = newActclient;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ComponentInterfacePackage.ROS_ACTION_CLIENT__ACTCLIENT, oldActclient, actclient));
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public String getName() {
- return name;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ComponentInterfacePackage.ROS_ACTION_CLIENT__NAME, oldName, name));
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public String getNs() {
- return ns;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void setNs(String newNs) {
- String oldNs = ns;
- ns = newNs;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ComponentInterfacePackage.ROS_ACTION_CLIENT__NS, oldNs, ns));
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_ACTION_CLIENT__ACTCLIENT:
- if (resolve) return getActclient();
- return basicGetActclient();
- case ComponentInterfacePackage.ROS_ACTION_CLIENT__NAME:
- return getName();
- case ComponentInterfacePackage.ROS_ACTION_CLIENT__NS:
- return getNs();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_ACTION_CLIENT__ACTCLIENT:
- setActclient((ActionClient)newValue);
- return;
- case ComponentInterfacePackage.ROS_ACTION_CLIENT__NAME:
- setName((String)newValue);
- return;
- case ComponentInterfacePackage.ROS_ACTION_CLIENT__NS:
- setNs((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_ACTION_CLIENT__ACTCLIENT:
- setActclient((ActionClient)null);
- return;
- case ComponentInterfacePackage.ROS_ACTION_CLIENT__NAME:
- setName(NAME_EDEFAULT);
- return;
- case ComponentInterfacePackage.ROS_ACTION_CLIENT__NS:
- setNs(NS_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_ACTION_CLIENT__ACTCLIENT:
- return actclient != null;
- case ComponentInterfacePackage.ROS_ACTION_CLIENT__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case ComponentInterfacePackage.ROS_ACTION_CLIENT__NS:
- return NS_EDEFAULT == null ? ns != null : !NS_EDEFAULT.equals(ns);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuilder result = new StringBuilder(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(", ns: ");
- result.append(ns);
- result.append(')');
- return result.toString();
- }
-
-} //RosActionClientImpl
diff --git a/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/impl/RosActionServerImpl.java b/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/impl/RosActionServerImpl.java
deleted file mode 100644
index bb73ea744..000000000
--- a/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/impl/RosActionServerImpl.java
+++ /dev/null
@@ -1,286 +0,0 @@
-/**
- */
-package componentInterface.impl;
-
-import componentInterface.ComponentInterfacePackage;
-import componentInterface.RosActionServer;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import ros.ActionServer;
-
-/**
- *
- * An implementation of the model object 'Ros Action Server'.
- *
- *
- * The following features are implemented:
- *
- *
- * - {@link componentInterface.impl.RosActionServerImpl#getActserver Actserver}
- * - {@link componentInterface.impl.RosActionServerImpl#getName Name}
- * - {@link componentInterface.impl.RosActionServerImpl#getNs Ns}
- *
- *
- * @generated
- */
-public class RosActionServerImpl extends MinimalEObjectImpl.Container implements RosActionServer {
- /**
- * The cached value of the '{@link #getActserver() Actserver}' reference.
- *
- *
- * @see #getActserver()
- * @generated
- * @ordered
- */
- protected ActionServer actserver;
-
- /**
- * The default value of the '{@link #getName() Name}' attribute.
- *
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() Name}' attribute.
- *
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getNs() Ns}' attribute.
- *
- *
- * @see #getNs()
- * @generated
- * @ordered
- */
- protected static final String NS_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getNs() Ns}' attribute.
- *
- *
- * @see #getNs()
- * @generated
- * @ordered
- */
- protected String ns = NS_EDEFAULT;
-
- /**
- *
- *
- * @generated NOT
- */
- public RosActionServerImpl() {
- super();
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ComponentInterfacePackage.Literals.ROS_ACTION_SERVER;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public ActionServer getActserver() {
- if (actserver != null && actserver.eIsProxy()) {
- InternalEObject oldActserver = (InternalEObject)actserver;
- actserver = (ActionServer)eResolveProxy(oldActserver);
- if (actserver != oldActserver) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ComponentInterfacePackage.ROS_ACTION_SERVER__ACTSERVER, oldActserver, actserver));
- }
- }
- return actserver;
- }
-
- /**
- *
- *
- * @generated
- */
- public ActionServer basicGetActserver() {
- return actserver;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void setActserver(ActionServer newActserver) {
- ActionServer oldActserver = actserver;
- actserver = newActserver;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ComponentInterfacePackage.ROS_ACTION_SERVER__ACTSERVER, oldActserver, actserver));
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public String getName() {
- return name;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ComponentInterfacePackage.ROS_ACTION_SERVER__NAME, oldName, name));
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public String getNs() {
- return ns;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void setNs(String newNs) {
- String oldNs = ns;
- ns = newNs;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ComponentInterfacePackage.ROS_ACTION_SERVER__NS, oldNs, ns));
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_ACTION_SERVER__ACTSERVER:
- if (resolve) return getActserver();
- return basicGetActserver();
- case ComponentInterfacePackage.ROS_ACTION_SERVER__NAME:
- return getName();
- case ComponentInterfacePackage.ROS_ACTION_SERVER__NS:
- return getNs();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_ACTION_SERVER__ACTSERVER:
- setActserver((ActionServer)newValue);
- return;
- case ComponentInterfacePackage.ROS_ACTION_SERVER__NAME:
- setName((String)newValue);
- return;
- case ComponentInterfacePackage.ROS_ACTION_SERVER__NS:
- setNs((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_ACTION_SERVER__ACTSERVER:
- setActserver((ActionServer)null);
- return;
- case ComponentInterfacePackage.ROS_ACTION_SERVER__NAME:
- setName(NAME_EDEFAULT);
- return;
- case ComponentInterfacePackage.ROS_ACTION_SERVER__NS:
- setNs(NS_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_ACTION_SERVER__ACTSERVER:
- return actserver != null;
- case ComponentInterfacePackage.ROS_ACTION_SERVER__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case ComponentInterfacePackage.ROS_ACTION_SERVER__NS:
- return NS_EDEFAULT == null ? ns != null : !NS_EDEFAULT.equals(ns);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuilder result = new StringBuilder(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(", ns: ");
- result.append(ns);
- result.append(')');
- return result.toString();
- }
-
-} //RosActionServerImpl
diff --git a/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/impl/RosPublisherImpl.java b/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/impl/RosPublisherImpl.java
deleted file mode 100644
index 138440240..000000000
--- a/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/impl/RosPublisherImpl.java
+++ /dev/null
@@ -1,325 +0,0 @@
-/**
- */
-package componentInterface.impl;
-
-import componentInterface.ComponentInterfacePackage;
-import componentInterface.RosPublisher;
-import componentInterface.ComponentInterface;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-import ros.Publisher;
-
-/**
- *
- * An implementation of the model object 'Ros Publisher'.
- *
- *
- * The following features are implemented:
- *
- *
- * - {@link componentInterface.impl.RosPublisherImpl#getPublisher Publisher}
- * - {@link componentInterface.impl.RosPublisherImpl#getName Name}
- * - {@link componentInterface.impl.RosPublisherImpl#getNs Ns}
- *
- *
- * @generated
- */
-public class RosPublisherImpl extends MinimalEObjectImpl.Container implements RosPublisher {
- /**
- * The cached value of the '{@link #getPublisher() Publisher}' reference.
- *
- *
- * @see #getPublisher()
- * @generated
- * @ordered
- */
- protected Publisher publisher;
-
- /**
- * The default value of the '{@link #getName() Name}' attribute.
- *
- *
- * @see #getName()
- * @generated NOT
- * @ordered
- */
- protected static String NAME_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getName() Name}' attribute.
- *
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
- /**
- * The default value of the '{@link #getNs() Ns}' attribute.
- *
- *
- * @see #getNs()
- * @generated NOT
- * @ordered
- */
- protected static String NS_EDEFAULT = "";
- /**
- * The cached value of the '{@link #getNs() Ns}' attribute.
- *
- *
- * @see #getNs()
- * @generated
- * @ordered
- */
- protected String ns = NS_EDEFAULT;
-
- /**
- *
- *
- * @generated NOT
- */
- public RosPublisherImpl() {
- super();
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ComponentInterfacePackage.Literals.ROS_PUBLISHER;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public Publisher getPublisher() {
- if (publisher != null && publisher.eIsProxy()) {
- InternalEObject oldPublisher = (InternalEObject)publisher;
- publisher = (Publisher)eResolveProxy(oldPublisher);
- if (publisher != oldPublisher) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ComponentInterfacePackage.ROS_PUBLISHER__PUBLISHER, oldPublisher, publisher));
- }
- }
- return publisher;
- }
-
- /**
- *
- *
- * @generated
- */
- public Publisher basicGetPublisher() {
- return publisher;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void setPublisher(Publisher newPublisher) {
- Publisher oldPublisher = publisher;
- publisher = newPublisher;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ComponentInterfacePackage.ROS_PUBLISHER__PUBLISHER, oldPublisher, publisher));
- }
-
- /**
- *
- *
- * @generated NOT
- */
- public String getName() {
- /**if (name!=null) {
- if (name.length()>0) {
- return name;
- }if (ns != null && publisher != null) {
- String composed_name = String.format("/%s/%s", ns.replaceFirst("/",""), publisher.getName().replaceFirst("/",""));
- return composed_name.replaceFirst("//","/");
- }else if (publisher != null) {
- return String.format("/%s", publisher.getName().replaceFirst("/",""));
- }else {
- return name;
- }
- }else {
- return name;
- }*/
- return name;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ComponentInterfacePackage.ROS_PUBLISHER__NAME, oldName, name));
- }
-
- /**
- *
- *
- * @generated NOT
- */
- public String getComponentNs() {
- ComponentInterface component = (ComponentInterface) publisher.eContainer();
- String component_ns = component.getNameSpace();
- if (component_ns.length()>0) {
- return component_ns;
- }else {
- return NS_EDEFAULT;
- }
- }
-
- /**
- *
- *
- * @generated NOT
- */
- public void setDefaultValues() {
- NS_EDEFAULT = getComponentNs();
- }
-
- /**
- *
- *
- * @generated NOT
- */
- public String getNs() {
- /**setDefaultValues();
- if (ns.isEmpty()) {
- ns = NS_EDEFAULT;
- return NS_EDEFAULT;
- }else {
- return ns;
- }*/
- return ns;
- }
-
- /**
- *
- *
- * @generated NOT
- */
- public void setNs(String newNs) {
- /*setDefaultValues();*/
- String oldNs = ns;
- ns = newNs;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ComponentInterfacePackage.ROS_PUBLISHER__NS, oldNs, ns));
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_PUBLISHER__PUBLISHER:
- if (resolve) return getPublisher();
- return basicGetPublisher();
- case ComponentInterfacePackage.ROS_PUBLISHER__NAME:
- return getName();
- case ComponentInterfacePackage.ROS_PUBLISHER__NS:
- return getNs();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_PUBLISHER__PUBLISHER:
- setPublisher((Publisher)newValue);
- return;
- case ComponentInterfacePackage.ROS_PUBLISHER__NAME:
- setName((String)newValue);
- return;
- case ComponentInterfacePackage.ROS_PUBLISHER__NS:
- setNs((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_PUBLISHER__PUBLISHER:
- setPublisher((Publisher)null);
- return;
- case ComponentInterfacePackage.ROS_PUBLISHER__NAME:
- setName(NAME_EDEFAULT);
- return;
- case ComponentInterfacePackage.ROS_PUBLISHER__NS:
- setNs(NS_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_PUBLISHER__PUBLISHER:
- return publisher != null;
- case ComponentInterfacePackage.ROS_PUBLISHER__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case ComponentInterfacePackage.ROS_PUBLISHER__NS:
- return NS_EDEFAULT == null ? ns != null : !NS_EDEFAULT.equals(ns);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuilder result = new StringBuilder(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(", ns: ");
- result.append(ns);
- result.append(')');
- return result.toString();
- }
-
-} //RosPublisherImpl
diff --git a/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/impl/RosServiceClientImpl.java b/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/impl/RosServiceClientImpl.java
deleted file mode 100644
index bb2b90e7c..000000000
--- a/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/impl/RosServiceClientImpl.java
+++ /dev/null
@@ -1,326 +0,0 @@
-/**
- */
-package componentInterface.impl;
-
-import componentInterface.ComponentInterface;
-import componentInterface.ComponentInterfacePackage;
-import componentInterface.RosServiceClient;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-import ros.ServiceClient;
-
-/**
- *
- * An implementation of the model object 'Ros Service Client'.
- *
- *
- * The following features are implemented:
- *
- *
- * - {@link componentInterface.impl.RosServiceClientImpl#getSrvclient Srvclient}
- * - {@link componentInterface.impl.RosServiceClientImpl#getName Name}
- * - {@link componentInterface.impl.RosServiceClientImpl#getNs Ns}
- *
- *
- * @generated
- */
-public class RosServiceClientImpl extends MinimalEObjectImpl.Container implements RosServiceClient {
- /**
- * The cached value of the '{@link #getSrvclient() Srvclient}' reference.
- *
- *
- * @see #getSrvclient()
- * @generated
- * @ordered
- */
- protected ServiceClient srvclient;
-
- /**
- * The default value of the '{@link #getName() Name}' attribute.
- *
- *
- * @see #getName()
- * @generated NOT
- * @ordered
- */
- protected static String NAME_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getName() Name}' attribute.
- *
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
- /**
- * The default value of the '{@link #getNs() Ns}' attribute.
- *
- *
- * @see #getNs()
- * @generated NOT
- * @ordered
- */
- protected static String NS_EDEFAULT = "";
- /**
- * The cached value of the '{@link #getNs() Ns}' attribute.
- *
- *
- * @see #getNs()
- * @generated
- * @ordered
- */
- protected String ns = NS_EDEFAULT;
-
- /**
- *
- *
- * @generated NOT
- */
- public RosServiceClientImpl() {
- super();
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ComponentInterfacePackage.Literals.ROS_SERVICE_CLIENT;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public ServiceClient getSrvclient() {
- if (srvclient != null && srvclient.eIsProxy()) {
- InternalEObject oldSrvclient = (InternalEObject)srvclient;
- srvclient = (ServiceClient)eResolveProxy(oldSrvclient);
- if (srvclient != oldSrvclient) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ComponentInterfacePackage.ROS_SERVICE_CLIENT__SRVCLIENT, oldSrvclient, srvclient));
- }
- }
- return srvclient;
- }
-
- /**
- *
- *
- * @generated
- */
- public ServiceClient basicGetSrvclient() {
- return srvclient;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void setSrvclient(ServiceClient newSrvclient) {
- ServiceClient oldSrvclient = srvclient;
- srvclient = newSrvclient;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ComponentInterfacePackage.ROS_SERVICE_CLIENT__SRVCLIENT, oldSrvclient, srvclient));
- }
-
- /**
- *
- *
- * @generated NOT
- */
- public String getName() {
- /**if (name!=null) {
- if (name.length()>0) {
- return name;
- }if (ns != null && srvclient != null) {
- String composed_name = String.format("/%s/%s", ns.replaceFirst("/",""), srvclient.getName().replaceFirst("/",""));
- return composed_name.replaceFirst("//","/");
- }else if (srvclient != null) {
- return String.format("/%s", srvclient.getName().replaceFirst("/",""));
- }else {
- return name;
- }
- }else {
- return name;
- }*/
- return name;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ComponentInterfacePackage.ROS_SERVICE_CLIENT__NAME, oldName, name));
- }
-
- /**
- *
- *
- * @generated NOT
- */
- public String getComponentNs() {
- ComponentInterface component = (ComponentInterface) srvclient.eContainer();
- String component_ns = component.getNameSpace();
- if (component_ns.length()>0) {
- return component_ns;
- }else {
- return NS_EDEFAULT;
- }
- }
-
- /**
- *
- *
- * @generated NOT
- */
- public void setDefaultValues() {
- NS_EDEFAULT = getComponentNs();
- }
-
- /**
- *
- *
- * @generated NOT
- */
- public String getNs() {
- /**setDefaultValues();
- if (ns.isEmpty()) {
- ns = NS_EDEFAULT;
- return NS_EDEFAULT;
- }else {
- return ns;
- }*/
- return ns;
- }
-
- /**
- *
- *
- * @generated NOT
- */
- public void setNs(String newNs) {
- /*setDefaultValues();*/
- String oldNs = ns;
- ns = newNs;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ComponentInterfacePackage.ROS_SERVICE_CLIENT__NS, oldNs, ns));
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_SERVICE_CLIENT__SRVCLIENT:
- if (resolve) return getSrvclient();
- return basicGetSrvclient();
- case ComponentInterfacePackage.ROS_SERVICE_CLIENT__NAME:
- return getName();
- case ComponentInterfacePackage.ROS_SERVICE_CLIENT__NS:
- return getNs();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_SERVICE_CLIENT__SRVCLIENT:
- setSrvclient((ServiceClient)newValue);
- return;
- case ComponentInterfacePackage.ROS_SERVICE_CLIENT__NAME:
- setName((String)newValue);
- return;
- case ComponentInterfacePackage.ROS_SERVICE_CLIENT__NS:
- setNs((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_SERVICE_CLIENT__SRVCLIENT:
- setSrvclient((ServiceClient)null);
- return;
- case ComponentInterfacePackage.ROS_SERVICE_CLIENT__NAME:
- setName(NAME_EDEFAULT);
- return;
- case ComponentInterfacePackage.ROS_SERVICE_CLIENT__NS:
- setNs(NS_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_SERVICE_CLIENT__SRVCLIENT:
- return srvclient != null;
- case ComponentInterfacePackage.ROS_SERVICE_CLIENT__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case ComponentInterfacePackage.ROS_SERVICE_CLIENT__NS:
- return NS_EDEFAULT == null ? ns != null : !NS_EDEFAULT.equals(ns);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuilder result = new StringBuilder(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(", ns: ");
- result.append(ns);
- result.append(')');
- return result.toString();
- }
-
-} //RosServiceClientImpl
diff --git a/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/impl/RosServiceServerImpl.java b/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/impl/RosServiceServerImpl.java
deleted file mode 100644
index 1037558db..000000000
--- a/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/impl/RosServiceServerImpl.java
+++ /dev/null
@@ -1,326 +0,0 @@
-/**
- */
-package componentInterface.impl;
-
-import componentInterface.ComponentInterface;
-import componentInterface.ComponentInterfacePackage;
-import componentInterface.RosServiceServer;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-import ros.ServiceServer;
-
-/**
- *
- * An implementation of the model object 'Ros Service Server'.
- *
- *
- * The following features are implemented:
- *
- *
- * - {@link componentInterface.impl.RosServiceServerImpl#getSrvserver Srvserver}
- * - {@link componentInterface.impl.RosServiceServerImpl#getName Name}
- * - {@link componentInterface.impl.RosServiceServerImpl#getNs Ns}
- *
- *
- * @generated
- */
-public class RosServiceServerImpl extends MinimalEObjectImpl.Container implements RosServiceServer {
- /**
- * The cached value of the '{@link #getSrvserver() Srvserver}' reference.
- *
- *
- * @see #getSrvserver()
- * @generated
- * @ordered
- */
- protected ServiceServer srvserver;
-
- /**
- * The default value of the '{@link #getName() Name}' attribute.
- *
- *
- * @see #getName()
- * @generated NOT
- * @ordered
- */
- protected static String NAME_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getName() Name}' attribute.
- *
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
- /**
- * The default value of the '{@link #getNs() Ns}' attribute.
- *
- *
- * @see #getNs()
- * @generated NOT
- * @ordered
- */
- protected static String NS_EDEFAULT = "";
- /**
- * The cached value of the '{@link #getNs() Ns}' attribute.
- *
- *
- * @see #getNs()
- * @generated
- * @ordered
- */
- protected String ns = NS_EDEFAULT;
-
- /**
- *
- *
- * @generated NOT
- */
- public RosServiceServerImpl() {
- super();
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ComponentInterfacePackage.Literals.ROS_SERVICE_SERVER;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public ServiceServer getSrvserver() {
- if (srvserver != null && srvserver.eIsProxy()) {
- InternalEObject oldSrvserver = (InternalEObject)srvserver;
- srvserver = (ServiceServer)eResolveProxy(oldSrvserver);
- if (srvserver != oldSrvserver) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ComponentInterfacePackage.ROS_SERVICE_SERVER__SRVSERVER, oldSrvserver, srvserver));
- }
- }
- return srvserver;
- }
-
- /**
- *
- *
- * @generated
- */
- public ServiceServer basicGetSrvserver() {
- return srvserver;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void setSrvserver(ServiceServer newSrvserver) {
- ServiceServer oldSrvserver = srvserver;
- srvserver = newSrvserver;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ComponentInterfacePackage.ROS_SERVICE_SERVER__SRVSERVER, oldSrvserver, srvserver));
- }
-
- /**
- *
- *
- * @generated NOT
- */
- public String getName() {
- /**if (name!=null) {
- if (name.length()>0) {
- return name;
- }if (ns != null && srvserver != null) {
- String composed_name = String.format("/%s/%s", ns.replaceFirst("/",""), srvserver.getName().replaceFirst("/",""));
- return composed_name.replaceFirst("//","/");
- }else if (srvserver != null) {
- return String.format("/%s", srvserver.getName().replaceFirst("/",""));
- }else {
- return name;
- }
- }else {
- return name;
- }*/
- return name;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ComponentInterfacePackage.ROS_SERVICE_SERVER__NAME, oldName, name));
- }
-
- /**
- *
- *
- * @generated NOT
- */
- public String getComponentNs() {
- ComponentInterface component = (ComponentInterface) srvserver.eContainer();
- String component_ns = component.getNameSpace();
- if (component_ns.length()>0) {
- return component_ns;
- }else {
- return NS_EDEFAULT;
- }
- }
-
- /**
- *
- *
- * @generated NOT
- */
- public void setDefaultValues() {
- NS_EDEFAULT = getComponentNs();
- }
-
- /**
- *
- *
- * @generated NOT
- */
- public String getNs() {
- /**setDefaultValues();
- if (ns.isEmpty()) {
- ns = NS_EDEFAULT;
- return NS_EDEFAULT;
- }else {
- return ns;
- }*/
- return ns;
- }
-
- /**
- *
- *
- * @generated NOT
- */
- public void setNs(String newNs) {
- /*setDefaultValues();*/
- String oldNs = ns;
- ns = newNs;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ComponentInterfacePackage.ROS_SERVICE_SERVER__NS, oldNs, ns));
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_SERVICE_SERVER__SRVSERVER:
- if (resolve) return getSrvserver();
- return basicGetSrvserver();
- case ComponentInterfacePackage.ROS_SERVICE_SERVER__NAME:
- return getName();
- case ComponentInterfacePackage.ROS_SERVICE_SERVER__NS:
- return getNs();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_SERVICE_SERVER__SRVSERVER:
- setSrvserver((ServiceServer)newValue);
- return;
- case ComponentInterfacePackage.ROS_SERVICE_SERVER__NAME:
- setName((String)newValue);
- return;
- case ComponentInterfacePackage.ROS_SERVICE_SERVER__NS:
- setNs((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_SERVICE_SERVER__SRVSERVER:
- setSrvserver((ServiceServer)null);
- return;
- case ComponentInterfacePackage.ROS_SERVICE_SERVER__NAME:
- setName(NAME_EDEFAULT);
- return;
- case ComponentInterfacePackage.ROS_SERVICE_SERVER__NS:
- setNs(NS_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_SERVICE_SERVER__SRVSERVER:
- return srvserver != null;
- case ComponentInterfacePackage.ROS_SERVICE_SERVER__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case ComponentInterfacePackage.ROS_SERVICE_SERVER__NS:
- return NS_EDEFAULT == null ? ns != null : !NS_EDEFAULT.equals(ns);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuilder result = new StringBuilder(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(", ns: ");
- result.append(ns);
- result.append(')');
- return result.toString();
- }
-
-} //RosServiceServerImpl
diff --git a/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/impl/RosSubscriberImpl.java b/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/impl/RosSubscriberImpl.java
deleted file mode 100644
index c655da942..000000000
--- a/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/impl/RosSubscriberImpl.java
+++ /dev/null
@@ -1,326 +0,0 @@
-/**
- */
-package componentInterface.impl;
-
-import componentInterface.ComponentInterface;
-import componentInterface.ComponentInterfacePackage;
-import componentInterface.RosSubscriber;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-import ros.Subscriber;
-
-/**
- *
- * An implementation of the model object 'Ros Subscriber'.
- *
- *
- * The following features are implemented:
- *
- *
- * - {@link componentInterface.impl.RosSubscriberImpl#getSubscriber Subscriber}
- * - {@link componentInterface.impl.RosSubscriberImpl#getName Name}
- * - {@link componentInterface.impl.RosSubscriberImpl#getNs Ns}
- *
- *
- * @generated
- */
-public class RosSubscriberImpl extends MinimalEObjectImpl.Container implements RosSubscriber {
- /**
- * The cached value of the '{@link #getSubscriber() Subscriber}' reference.
- *
- *
- * @see #getSubscriber()
- * @generated
- * @ordered
- */
- protected Subscriber subscriber;
-
- /**
- * The default value of the '{@link #getName() Name}' attribute.
- *
- *
- * @see #getName()
- * @generated NOT
- * @ordered
- */
- protected static String NAME_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getName() Name}' attribute.
- *
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
- /**
- * The default value of the '{@link #getNs() Ns}' attribute.
- *
- *
- * @see #getNs()
- * @generated NOT
- * @ordered
- */
- protected static String NS_EDEFAULT = "";
- /**
- * The cached value of the '{@link #getNs() Ns}' attribute.
- *
- *
- * @see #getNs()
- * @generated
- * @ordered
- */
- protected String ns = NS_EDEFAULT;
-
- /**
- *
- *
- * @generated NOT
- */
- public RosSubscriberImpl() {
- super();
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ComponentInterfacePackage.Literals.ROS_SUBSCRIBER;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public Subscriber getSubscriber() {
- if (subscriber != null && subscriber.eIsProxy()) {
- InternalEObject oldSubscriber = (InternalEObject)subscriber;
- subscriber = (Subscriber)eResolveProxy(oldSubscriber);
- if (subscriber != oldSubscriber) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, ComponentInterfacePackage.ROS_SUBSCRIBER__SUBSCRIBER, oldSubscriber, subscriber));
- }
- }
- return subscriber;
- }
-
- /**
- *
- *
- * @generated
- */
- public Subscriber basicGetSubscriber() {
- return subscriber;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void setSubscriber(Subscriber newSubscriber) {
- Subscriber oldSubscriber = subscriber;
- subscriber = newSubscriber;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ComponentInterfacePackage.ROS_SUBSCRIBER__SUBSCRIBER, oldSubscriber, subscriber));
- }
-
- /**
- *
- *
- * @generated NOT
- */
- public String getName() {
- /**if (name!=null) {
- if (name.length()>0) {
- return name;
- }if (ns != null && subscriber != null) {
- String composed_name = String.format("/%s/%s", ns.replaceFirst("/",""), subscriber.getName().replaceFirst("/",""));
- return composed_name.replaceFirst("//","/");
- }else if (subscriber != null) {
- return String.format("/%s", subscriber.getName().replaceFirst("/",""));
- }else {
- return name;
- }
- }else {
- return name;
- }*/
- return name;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ComponentInterfacePackage.ROS_SUBSCRIBER__NAME, oldName, name));
- }
-
- /**
- *
- *
- * @generated NOT
- */
- public String getComponentNs() {
- ComponentInterface component = (ComponentInterface) subscriber.eContainer();
- String component_ns = component.getNameSpace();
- if (component_ns.length()>0) {
- return component_ns;
- }else {
- return NS_EDEFAULT;
- }
- }
-
- /**
- *
- *
- * @generated NOT
- */
- public void setDefaultValues() {
- NS_EDEFAULT = getComponentNs();
- }
-
- /**
- *
- *
- * @generated NOT
- */
- public String getNs() {
- /**setDefaultValues();
- if (ns.isEmpty()) {
- ns = NS_EDEFAULT;
- return NS_EDEFAULT;
- }else {
- return ns;
- }*/
- return ns;
- }
-
- /**
- *
- *
- * @generated NOT
- */
- public void setNs(String newNs) {
- /*setDefaultValues();*/
- String oldNs = ns;
- ns = newNs;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, ComponentInterfacePackage.ROS_SUBSCRIBER__NS, oldNs, ns));
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_SUBSCRIBER__SUBSCRIBER:
- if (resolve) return getSubscriber();
- return basicGetSubscriber();
- case ComponentInterfacePackage.ROS_SUBSCRIBER__NAME:
- return getName();
- case ComponentInterfacePackage.ROS_SUBSCRIBER__NS:
- return getNs();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_SUBSCRIBER__SUBSCRIBER:
- setSubscriber((Subscriber)newValue);
- return;
- case ComponentInterfacePackage.ROS_SUBSCRIBER__NAME:
- setName((String)newValue);
- return;
- case ComponentInterfacePackage.ROS_SUBSCRIBER__NS:
- setNs((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_SUBSCRIBER__SUBSCRIBER:
- setSubscriber((Subscriber)null);
- return;
- case ComponentInterfacePackage.ROS_SUBSCRIBER__NAME:
- setName(NAME_EDEFAULT);
- return;
- case ComponentInterfacePackage.ROS_SUBSCRIBER__NS:
- setNs(NS_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case ComponentInterfacePackage.ROS_SUBSCRIBER__SUBSCRIBER:
- return subscriber != null;
- case ComponentInterfacePackage.ROS_SUBSCRIBER__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case ComponentInterfacePackage.ROS_SUBSCRIBER__NS:
- return NS_EDEFAULT == null ? ns != null : !NS_EDEFAULT.equals(ns);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuilder result = new StringBuilder(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(", ns: ");
- result.append(ns);
- result.append(')');
- return result.toString();
- }
-
-} //RosSubscriberImpl
diff --git a/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/util/ComponentInterfaceAdapterFactory.java b/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/util/ComponentInterfaceAdapterFactory.java
deleted file mode 100644
index a70d31376..000000000
--- a/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/util/ComponentInterfaceAdapterFactory.java
+++ /dev/null
@@ -1,264 +0,0 @@
-/**
- */
-package componentInterface.util;
-
-import componentInterface.*;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notifier;
-
-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- *
- * The Adapter Factory for the model.
- * It provides an adapter createXXX method for each class of the model.
- *
- * @see componentInterface.ComponentInterfacePackage
- * @generated
- */
-public class ComponentInterfaceAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- *
- *
- * @generated
- */
- protected static ComponentInterfacePackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- *
- *
- * @generated
- */
- public ComponentInterfaceAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = ComponentInterfacePackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- *
- * This implementation returns true if the object is either the model's package or is an instance object of the model.
- *
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object) {
- if (object == modelPackage) {
- return true;
- }
- if (object instanceof EObject) {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch that delegates to the createXXX methods.
- *
- *
- * @generated
- */
- protected ComponentInterfaceSwitch modelSwitch =
- new ComponentInterfaceSwitch() {
- @Override
- public Adapter caseComponentInterface(ComponentInterface object) {
- return createComponentInterfaceAdapter();
- }
- @Override
- public Adapter caseRosPublisher(RosPublisher object) {
- return createRosPublisherAdapter();
- }
- @Override
- public Adapter caseRosSubscriber(RosSubscriber object) {
- return createRosSubscriberAdapter();
- }
- @Override
- public Adapter caseRosServiceServer(RosServiceServer object) {
- return createRosServiceServerAdapter();
- }
- @Override
- public Adapter caseRosServiceClient(RosServiceClient object) {
- return createRosServiceClientAdapter();
- }
- @Override
- public Adapter caseNameSpaceComponent(NameSpaceComponent object) {
- return createNameSpaceComponentAdapter();
- }
- @Override
- public Adapter caseRosActionServer(RosActionServer object) {
- return createRosActionServerAdapter();
- }
- @Override
- public Adapter caseRosActionClient(RosActionClient object) {
- return createRosActionClientAdapter();
- }
- @Override
- public Adapter caseRosParameter(RosParameter object) {
- return createRosParameterAdapter();
- }
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the target.
- *
- *
- * @param target the object to adapt.
- * @return the adapter for the target.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch((EObject)target);
- }
-
-
- /**
- * Creates a new adapter for an object of class '{@link componentInterface.ComponentInterface Component Interface}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see componentInterface.ComponentInterface
- * @generated
- */
- public Adapter createComponentInterfaceAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link componentInterface.RosPublisher Ros Publisher}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see componentInterface.RosPublisher
- * @generated
- */
- public Adapter createRosPublisherAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link componentInterface.RosSubscriber Ros Subscriber}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see componentInterface.RosSubscriber
- * @generated
- */
- public Adapter createRosSubscriberAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link componentInterface.RosServiceServer Ros Service Server}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see componentInterface.RosServiceServer
- * @generated
- */
- public Adapter createRosServiceServerAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link componentInterface.RosServiceClient Ros Service Client}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see componentInterface.RosServiceClient
- * @generated
- */
- public Adapter createRosServiceClientAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link componentInterface.NameSpaceComponent Name Space Component}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see componentInterface.NameSpaceComponent
- * @generated
- */
- public Adapter createNameSpaceComponentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link componentInterface.RosActionServer Ros Action Server}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see componentInterface.RosActionServer
- * @generated
- */
- public Adapter createRosActionServerAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link componentInterface.RosActionClient Ros Action Client}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see componentInterface.RosActionClient
- * @generated
- */
- public Adapter createRosActionClientAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link componentInterface.RosParameter Ros Parameter}'.
- *
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see componentInterface.RosParameter
- * @generated
- */
- public Adapter createRosParameterAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- *
- * This default implementation returns null.
- *
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter() {
- return null;
- }
-
-} //ComponentInterfaceAdapterFactory
diff --git a/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/util/ComponentInterfaceSwitch.java b/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/util/ComponentInterfaceSwitch.java
deleted file mode 100644
index 00b600635..000000000
--- a/plugins/de.fraunhofer.ipa.componentInterface/src/componentInterface/util/ComponentInterfaceSwitch.java
+++ /dev/null
@@ -1,279 +0,0 @@
-/**
- */
-package componentInterface.util;
-
-import componentInterface.*;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.util.Switch;
-
-/**
- *
- * The Switch for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the caseXXX method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- *
- * @see componentInterface.ComponentInterfacePackage
- * @generated
- */
-public class ComponentInterfaceSwitch extends Switch {
- /**
- * The cached model package
- *
- *
- * @generated
- */
- protected static ComponentInterfacePackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- *
- *
- * @generated
- */
- public ComponentInterfaceSwitch() {
- if (modelPackage == null) {
- modelPackage = ComponentInterfacePackage.eINSTANCE;
- }
- }
-
- /**
- * Checks whether this is a switch for the given package.
- *
- *
- * @param ePackage the package in question.
- * @return whether this is a switch for the given package.
- * @generated
- */
- @Override
- protected boolean isSwitchFor(EPackage ePackage) {
- return ePackage == modelPackage;
- }
-
- /**
- * Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
- *
- *
- * @return the first non-null result returned by a caseXXX call.
- * @generated
- */
- @Override
- protected T doSwitch(int classifierID, EObject theEObject) {
- switch (classifierID) {
- case ComponentInterfacePackage.COMPONENT_INTERFACE: {
- ComponentInterface componentInterface = (ComponentInterface)theEObject;
- T result = caseComponentInterface(componentInterface);
- if (result == null) result = caseNameSpaceComponent(componentInterface);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ComponentInterfacePackage.ROS_PUBLISHER: {
- RosPublisher rosPublisher = (RosPublisher)theEObject;
- T result = caseRosPublisher(rosPublisher);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ComponentInterfacePackage.ROS_SUBSCRIBER: {
- RosSubscriber rosSubscriber = (RosSubscriber)theEObject;
- T result = caseRosSubscriber(rosSubscriber);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ComponentInterfacePackage.ROS_SERVICE_SERVER: {
- RosServiceServer rosServiceServer = (RosServiceServer)theEObject;
- T result = caseRosServiceServer(rosServiceServer);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ComponentInterfacePackage.ROS_SERVICE_CLIENT: {
- RosServiceClient rosServiceClient = (RosServiceClient)theEObject;
- T result = caseRosServiceClient(rosServiceClient);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ComponentInterfacePackage.NAME_SPACE_COMPONENT: {
- NameSpaceComponent nameSpaceComponent = (NameSpaceComponent)theEObject;
- T result = caseNameSpaceComponent(nameSpaceComponent);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ComponentInterfacePackage.ROS_ACTION_SERVER: {
- RosActionServer rosActionServer = (RosActionServer)theEObject;
- T result = caseRosActionServer(rosActionServer);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ComponentInterfacePackage.ROS_ACTION_CLIENT: {
- RosActionClient rosActionClient = (RosActionClient)theEObject;
- T result = caseRosActionClient(rosActionClient);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ComponentInterfacePackage.ROS_PARAMETER: {
- RosParameter rosParameter = (RosParameter)theEObject;
- T result = caseRosParameter(rosParameter);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Component Interface'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Component Interface'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseComponentInterface(ComponentInterface object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Ros Publisher'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Ros Publisher'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRosPublisher(RosPublisher object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Ros Subscriber'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Ros Subscriber'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRosSubscriber(RosSubscriber object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Ros Service Server'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Ros Service Server'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRosServiceServer(RosServiceServer object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Ros Service Client'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Ros Service Client'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRosServiceClient(RosServiceClient object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Name Space Component'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Name Space Component'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseNameSpaceComponent(NameSpaceComponent object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Ros Action Server'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Ros Action Server'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRosActionServer(RosActionServer object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Ros Action Client'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Ros Action Client'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRosActionClient(RosActionClient object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Ros Parameter'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'Ros Parameter'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRosParameter(RosParameter object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'EObject'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'EObject'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- @Override
- public T defaultCase(EObject object) {
- return null;
- }
-
-} //ComponentInterfaceSwitch
diff --git a/plugins/de.fraunhofer.ipa.componentInterface.edit/icons/full/ctool16/CreateComponentInterface_RosServiceClient_RosServiceClient.gif b/plugins/de.fraunhofer.ipa.ros.edit/icons/full/ctool16/CreateInterfaceType_namespace_GlobalNamespace.gif
similarity index 71%
rename from plugins/de.fraunhofer.ipa.componentInterface.edit/icons/full/ctool16/CreateComponentInterface_RosServiceClient_RosServiceClient.gif
rename to plugins/de.fraunhofer.ipa.ros.edit/icons/full/ctool16/CreateInterfaceType_namespace_GlobalNamespace.gif
index ca9cabaa9..931730f4e 100644
Binary files a/plugins/de.fraunhofer.ipa.componentInterface.edit/icons/full/ctool16/CreateComponentInterface_RosServiceClient_RosServiceClient.gif and b/plugins/de.fraunhofer.ipa.ros.edit/icons/full/ctool16/CreateInterfaceType_namespace_GlobalNamespace.gif differ
diff --git a/plugins/de.fraunhofer.ipa.componentInterface.edit/icons/full/ctool16/CreateComponentInterface_RosServiceServer_RosServiceServer.gif b/plugins/de.fraunhofer.ipa.ros.edit/icons/full/ctool16/CreateInterfaceType_namespace_PrivateNamespace.gif
similarity index 71%
rename from plugins/de.fraunhofer.ipa.componentInterface.edit/icons/full/ctool16/CreateComponentInterface_RosServiceServer_RosServiceServer.gif
rename to plugins/de.fraunhofer.ipa.ros.edit/icons/full/ctool16/CreateInterfaceType_namespace_PrivateNamespace.gif
index 045200f3e..e5db9ceef 100644
Binary files a/plugins/de.fraunhofer.ipa.componentInterface.edit/icons/full/ctool16/CreateComponentInterface_RosServiceServer_RosServiceServer.gif and b/plugins/de.fraunhofer.ipa.ros.edit/icons/full/ctool16/CreateInterfaceType_namespace_PrivateNamespace.gif differ
diff --git a/plugins/de.fraunhofer.ipa.componentInterface.edit/icons/full/ctool16/CreateComponentInterface_RosTopicPublisher_RosPublisher.gif b/plugins/de.fraunhofer.ipa.ros.edit/icons/full/ctool16/CreateInterfaceType_namespace_RelativeNamespace.gif
similarity index 71%
rename from plugins/de.fraunhofer.ipa.componentInterface.edit/icons/full/ctool16/CreateComponentInterface_RosTopicPublisher_RosPublisher.gif
rename to plugins/de.fraunhofer.ipa.ros.edit/icons/full/ctool16/CreateInterfaceType_namespace_RelativeNamespace.gif
index dd919f9b1..6b0229f02 100644
Binary files a/plugins/de.fraunhofer.ipa.componentInterface.edit/icons/full/ctool16/CreateComponentInterface_RosTopicPublisher_RosPublisher.gif and b/plugins/de.fraunhofer.ipa.ros.edit/icons/full/ctool16/CreateInterfaceType_namespace_RelativeNamespace.gif differ
diff --git a/plugins/de.fraunhofer.ipa.componentInterface.edit/icons/full/obj16/ComponentInterface.gif b/plugins/de.fraunhofer.ipa.ros.edit/icons/full/obj16/InterfaceType.gif
similarity index 50%
rename from plugins/de.fraunhofer.ipa.componentInterface.edit/icons/full/obj16/ComponentInterface.gif
rename to plugins/de.fraunhofer.ipa.ros.edit/icons/full/obj16/InterfaceType.gif
index 136e3b272..9250fecbf 100644
Binary files a/plugins/de.fraunhofer.ipa.componentInterface.edit/icons/full/obj16/ComponentInterface.gif and b/plugins/de.fraunhofer.ipa.ros.edit/icons/full/obj16/InterfaceType.gif differ
diff --git a/plugins/de.fraunhofer.ipa.ros.edit/plugin.properties b/plugins/de.fraunhofer.ipa.ros.edit/plugin.properties
index 757a134d8..59e9aa641 100644
--- a/plugins/de.fraunhofer.ipa.ros.edit/plugin.properties
+++ b/plugins/de.fraunhofer.ipa.ros.edit/plugin.properties
@@ -182,3 +182,13 @@ _UI_Parameter_value_feature = Value
_UI_Package_fromGitRepo_feature = From Git Repo
_UI_Package_dependency_feature = Dependency
_UI_AmentPackage_type = Ament Package
+_UI_InterfaceType_type = Interface Type
+_UI_QualityOfService_type = Quality Of Service
+_UI_InterfaceType_namespace_feature = Namespace
+_UI_InterfaceType_name_feature = Name
+_UI_InterfaceType_qos_feature = Qos
+_UI_QualityOfService_QoSProfile_feature = Qo SProfile
+_UI_QualityOfService_History_feature = History
+_UI_QualityOfService_Depth_feature = Depth
+_UI_QualityOfService_Reliability_feature = Reliability
+_UI_QualityOfService_Durability_feature = Durability
diff --git a/plugins/de.fraunhofer.ipa.ros.edit/src/ros/provider/ActionClientItemProvider.java b/plugins/de.fraunhofer.ipa.ros.edit/src/ros/provider/ActionClientItemProvider.java
index 34d0eae2d..cdc94917b 100644
--- a/plugins/de.fraunhofer.ipa.ros.edit/src/ros/provider/ActionClientItemProvider.java
+++ b/plugins/de.fraunhofer.ipa.ros.edit/src/ros/provider/ActionClientItemProvider.java
@@ -21,7 +21,7 @@
*
* @generated
*/
-public class ActionClientItemProvider extends NamespacedElementItemProvider {
+public class ActionClientItemProvider extends InterfaceTypeItemProvider {
/**
* This constructs an instance from a factory and a notifier.
*
diff --git a/plugins/de.fraunhofer.ipa.ros.edit/src/ros/provider/ActionServerItemProvider.java b/plugins/de.fraunhofer.ipa.ros.edit/src/ros/provider/ActionServerItemProvider.java
index 98e354497..b42b8224c 100644
--- a/plugins/de.fraunhofer.ipa.ros.edit/src/ros/provider/ActionServerItemProvider.java
+++ b/plugins/de.fraunhofer.ipa.ros.edit/src/ros/provider/ActionServerItemProvider.java
@@ -21,7 +21,7 @@
*
* @generated
*/
-public class ActionServerItemProvider extends NamespacedElementItemProvider {
+public class ActionServerItemProvider extends InterfaceTypeItemProvider {
/**
* This constructs an instance from a factory and a notifier.
*
diff --git a/plugins/de.fraunhofer.ipa.ros.edit/src/ros/provider/NamespacedElementItemProvider.java b/plugins/de.fraunhofer.ipa.ros.edit/src/ros/provider/InterfaceTypeItemProvider.java
similarity index 75%
rename from plugins/de.fraunhofer.ipa.ros.edit/src/ros/provider/NamespacedElementItemProvider.java
rename to plugins/de.fraunhofer.ipa.ros.edit/src/ros/provider/InterfaceTypeItemProvider.java
index 5943ded6e..e9d8c9094 100644
--- a/plugins/de.fraunhofer.ipa.ros.edit/src/ros/provider/NamespacedElementItemProvider.java
+++ b/plugins/de.fraunhofer.ipa.ros.edit/src/ros/provider/InterfaceTypeItemProvider.java
@@ -24,17 +24,17 @@
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import ros.NamespacedElement;
+import ros.InterfaceType;
import ros.RosFactory;
import ros.RosPackage;
/**
- * This is the item provider adapter for a {@link ros.NamespacedElement} object.
+ * This is the item provider adapter for a {@link ros.InterfaceType} object.
*
*
* @generated
*/
-public class NamespacedElementItemProvider
+public class InterfaceTypeItemProvider
extends ItemProviderAdapter
implements
IEditingDomainItemProvider,
@@ -48,7 +48,7 @@ public class NamespacedElementItemProvider
*
* @generated
*/
- public NamespacedElementItemProvider(AdapterFactory adapterFactory) {
+ public InterfaceTypeItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
}
@@ -64,6 +64,7 @@ public List getPropertyDescriptors(Object object) {
super.getPropertyDescriptors(object);
addNamePropertyDescriptor(object);
+ addQosPropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
@@ -79,9 +80,9 @@ protected void addNamePropertyDescriptor(Object object) {
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
- getString("_UI_NamespacedElement_name_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_NamespacedElement_name_feature", "_UI_NamespacedElement_type"),
- RosPackage.Literals.NAMESPACED_ELEMENT__NAME,
+ getString("_UI_InterfaceType_name_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_InterfaceType_name_feature", "_UI_InterfaceType_type"),
+ RosPackage.Literals.INTERFACE_TYPE__NAME,
true,
false,
false,
@@ -90,6 +91,28 @@ protected void addNamePropertyDescriptor(Object object) {
null));
}
+ /**
+ * This adds a property descriptor for the Qos feature.
+ *
+ *
+ * @generated
+ */
+ protected void addQosPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_InterfaceType_qos_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_InterfaceType_qos_feature", "_UI_InterfaceType_type"),
+ RosPackage.Literals.INTERFACE_TYPE__QOS,
+ true,
+ false,
+ true,
+ null,
+ null,
+ null));
+ }
+
/**
* This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
* {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
@@ -102,7 +125,7 @@ protected void addNamePropertyDescriptor(Object object) {
public Collection extends EStructuralFeature> getChildrenFeatures(Object object) {
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
- childrenFeatures.add(RosPackage.Literals.NAMESPACED_ELEMENT__NAMESPACE);
+ childrenFeatures.add(RosPackage.Literals.INTERFACE_TYPE__NAMESPACE);
}
return childrenFeatures;
}
@@ -121,14 +144,14 @@ protected EStructuralFeature getChildFeature(Object object, Object child) {
}
/**
- * This returns NamespacedElement.gif.
+ * This returns InterfaceType.gif.
*
*
* @generated
*/
@Override
public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/NamespacedElement"));
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/InterfaceType"));
}
/**
@@ -139,12 +162,12 @@ public Object getImage(Object object) {
*/
@Override
public String getText(Object object) {
- String label = ((NamespacedElement)object).getName();
+ String label = ((InterfaceType)object).getName();
return label == null || label.length() == 0 ?
- getString("_UI_NamespacedElement_type") :
- getString("_UI_NamespacedElement_type") + " " + label;
+ getString("_UI_InterfaceType_type") :
+ getString("_UI_InterfaceType_type") + " " + label;
}
-
+
/**
* This handles model notifications by calling {@link #updateChildren} to update any cached
@@ -157,11 +180,11 @@ public String getText(Object object) {
public void notifyChanged(Notification notification) {
updateChildren(notification);
- switch (notification.getFeatureID(NamespacedElement.class)) {
- case RosPackage.NAMESPACED_ELEMENT__NAME:
+ switch (notification.getFeatureID(InterfaceType.class)) {
+ case RosPackage.INTERFACE_TYPE__NAME:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
- case RosPackage.NAMESPACED_ELEMENT__NAMESPACE:
+ case RosPackage.INTERFACE_TYPE__NAMESPACE:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;
}
@@ -181,17 +204,17 @@ protected void collectNewChildDescriptors(Collection