Search in sources :

Example 6 with Value

use of org.osate.ba.aadlba.Value in project osate2 by osate.

the class FactorImpl method basicSetFirstValue.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetFirstValue(Value newFirstValue, NotificationChain msgs) {
    Value oldFirstValue = firstValue;
    firstValue = newFirstValue;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AadlBaPackage.FACTOR__FIRST_VALUE, oldFirstValue, newFirstValue);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) Value(org.osate.ba.aadlba.Value)

Example 7 with Value

use of org.osate.ba.aadlba.Value in project osate2 by osate.

the class FactorImpl method basicSetSecondValue.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetSecondValue(Value newSecondValue, NotificationChain msgs) {
    Value oldSecondValue = secondValue;
    secondValue = newSecondValue;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AadlBaPackage.FACTOR__SECOND_VALUE, oldSecondValue, newSecondValue);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) Value(org.osate.ba.aadlba.Value)

Aggregations

Value (org.osate.ba.aadlba.Value)7 ClassifierValue (org.osate.aadl2.ClassifierValue)4 ListValue (org.osate.aadl2.ListValue)4 ModalPropertyValue (org.osate.aadl2.ModalPropertyValue)4 RangeValue (org.osate.aadl2.RangeValue)4 IntegerValue (org.osate.ba.aadlba.IntegerValue)4 RecordValue (org.osate.aadl2.RecordValue)3 ReferenceValue (org.osate.aadl2.ReferenceValue)3 Factor (org.osate.ba.aadlba.Factor)3 NamedValue (org.osate.ba.declarative.NamedValue)3 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)2 Relation (org.osate.ba.aadlba.Relation)2 SimpleExpression (org.osate.ba.aadlba.SimpleExpression)2 Term (org.osate.ba.aadlba.Term)2 DeclarativeClassifierValue (org.osate.ba.declarative.DeclarativeClassifierValue)2 DeclarativeReferenceValue (org.osate.ba.declarative.DeclarativeReferenceValue)2 NamedValue (org.osate.aadl2.NamedValue)1 NumberValue (org.osate.aadl2.NumberValue)1 BehaviorPropertyConstant (org.osate.ba.aadlba.BehaviorPropertyConstant)1 BinaryAddingOperator (org.osate.ba.aadlba.BinaryAddingOperator)1