Search in sources :

Example 11 with ConnectedElement

use of org.osate.aadl2.ConnectedElement in project osate2 by osate.

the class AadlUtil method getConnectionEndName.

public static String getConnectionEndName(ConnectedElement ce) {
    Context cxt = ce.getContext();
    ConnectionEnd cend = ce.getConnectionEnd();
    if (cxt != null) {
        return cxt.getName() + '.' + cend.getName();
    } else {
        return cend.getName();
    }
}
Also used : Context(org.osate.aadl2.Context) ConnectionEnd(org.osate.aadl2.ConnectionEnd)

Example 12 with ConnectedElement

use of org.osate.aadl2.ConnectedElement in project osate2 by osate.

the class ConnectedElementImpl method basicSetNext.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetNext(ConnectedElement newNext, NotificationChain msgs) {
    ConnectedElement oldNext = next;
    next = newNext;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Aadl2Package.CONNECTED_ELEMENT__NEXT, oldNext, newNext);
        if (msgs == null) {
            msgs = notification;
        } else {
            msgs.add(notification);
        }
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) ConnectedElement(org.osate.aadl2.ConnectedElement)

Example 13 with ConnectedElement

use of org.osate.aadl2.ConnectedElement in project osate2 by osate.

the class ConnectionImpl method basicSetDestination.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetDestination(ConnectedElement newDestination, NotificationChain msgs) {
    ConnectedElement oldDestination = destination;
    destination = newDestination;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Aadl2Package.CONNECTION__DESTINATION, oldDestination, newDestination);
        if (msgs == null) {
            msgs = notification;
        } else {
            msgs.add(notification);
        }
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) ConnectedElement(org.osate.aadl2.ConnectedElement)

Example 14 with ConnectedElement

use of org.osate.aadl2.ConnectedElement in project osate2 by osate.

the class ConnectionImpl method basicSetSource.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetSource(ConnectedElement newSource, NotificationChain msgs) {
    ConnectedElement oldSource = source;
    source = newSource;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Aadl2Package.CONNECTION__SOURCE, oldSource, newSource);
        if (msgs == null) {
            msgs = notification;
        } else {
            msgs.add(notification);
        }
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) ConnectedElement(org.osate.aadl2.ConnectedElement)

Example 15 with ConnectedElement

use of org.osate.aadl2.ConnectedElement in project osate2 by osate.

the class ConnectedElementImpl method createNext.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ConnectedElement createNext() {
    ConnectedElement newNext = (ConnectedElement) create(Aadl2Package.eINSTANCE.getConnectedElement());
    setNext(newNext);
    return newNext;
}
Also used : ConnectedElement(org.osate.aadl2.ConnectedElement)

Aggregations

ConnectedElement (org.osate.aadl2.ConnectedElement)15 ConnectionEnd (org.osate.aadl2.ConnectionEnd)7 Subcomponent (org.osate.aadl2.Subcomponent)5 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)3 AccessConnection (org.osate.aadl2.AccessConnection)3 SubprogramSubcomponent (org.osate.aadl2.SubprogramSubcomponent)3 RelativeBusinessObjectReference (org.osate.ge.RelativeBusinessObjectReference)3 BusinessObjectNode (org.osate.ge.internal.diagram.runtime.updating.BusinessObjectNode)3 EObject (org.eclipse.emf.ecore.EObject)2 BasicPropertyAssociation (org.osate.aadl2.BasicPropertyAssociation)2 BusAccess (org.osate.aadl2.BusAccess)2 ComponentImplementation (org.osate.aadl2.ComponentImplementation)2 ContainedNamedElement (org.osate.aadl2.ContainedNamedElement)2 ContainmentPathElement (org.osate.aadl2.ContainmentPathElement)2 Context (org.osate.aadl2.Context)2 DataAccess (org.osate.aadl2.DataAccess)2 Feature (org.osate.aadl2.Feature)2 FeatureGroup (org.osate.aadl2.FeatureGroup)2 ImplementationExtension (org.osate.aadl2.ImplementationExtension)2 ParameterConnection (org.osate.aadl2.ParameterConnection)2