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();
}
}
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;
}
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;
}
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;
}
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;
}
Aggregations