Java 类org.eclipse.emf.ecore.impl.ENotificationImpl 实例源码

项目:neoscada    文件:MasterImportImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setMaster ( MasterServer newMaster )
{
    if ( newMaster != eInternalContainer () || ( eContainerFeatureID () != InfrastructurePackage.MASTER_IMPORT__MASTER && newMaster != null ) )
    {
        if ( EcoreUtil.isAncestor ( this, newMaster ) )
            throw new IllegalArgumentException ( "Recursive containment not allowed for " + toString () ); //$NON-NLS-1$
        NotificationChain msgs = null;
        if ( eInternalContainer () != null )
            msgs = eBasicRemoveFromContainer ( msgs );
        if ( newMaster != null )
            msgs = ( (InternalEObject)newMaster ).eInverseAdd ( this, InfrastructurePackage.MASTER_SERVER__IMPORT_MASTER, MasterServer.class, msgs );
        msgs = basicSetMaster ( newMaster, msgs );
        if ( msgs != null )
            msgs.dispatch ();
    }
    else if ( eNotificationRequired () )
        eNotify ( new ENotificationImpl ( this, Notification.SET, InfrastructurePackage.MASTER_IMPORT__MASTER, newMaster, newMaster ) );
}
项目:lcdsl    文件:LaunchConfigImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setFavorites(Favorites newFavorites)
{
  if (newFavorites != favorites)
  {
    NotificationChain msgs = null;
    if (favorites != null)
      msgs = ((InternalEObject)favorites).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LcDslPackage.LAUNCH_CONFIG__FAVORITES, null, msgs);
    if (newFavorites != null)
      msgs = ((InternalEObject)newFavorites).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LcDslPackage.LAUNCH_CONFIG__FAVORITES, null, msgs);
    msgs = basicSetFavorites(newFavorites, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, LcDslPackage.LAUNCH_CONFIG__FAVORITES, newFavorites, newFavorites));
}
项目:Saturn    文件:JSONComplexValueImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setResource(NamedResourceDefinition newResource)
{
  if (newResource != resource)
  {
    NotificationChain msgs = null;
    if (resource != null)
      msgs = ((InternalEObject)resource).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ValuesPackage.JSON_COMPLEX_VALUE__RESOURCE, null, msgs);
    if (newResource != null)
      msgs = ((InternalEObject)newResource).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ValuesPackage.JSON_COMPLEX_VALUE__RESOURCE, null, msgs);
    msgs = basicSetResource(newResource, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ValuesPackage.JSON_COMPLEX_VALUE__RESOURCE, newResource, newResource));
}
项目:org.xtext.dsl.restaurante    文件:IngredienteImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setName(String newName)
{
  String oldName = name;
  name = newName;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, RestaurantePackage.INGREDIENTE__NAME, oldName, name));
}
项目:ttc2017smartGrids    文件:ZCAPImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public SPC getCapDS() {
    if (capDS != null && capDS.eIsProxy()) {
        InternalEObject oldCapDS = (InternalEObject)capDS;
        capDS = (SPC)eResolveProxy(oldCapDS);
        if (capDS != oldCapDS) {
            if (eNotificationRequired())
                eNotify(new ENotificationImpl(this, Notification.RESOLVE, LNGroupZPackage.ZCAP__CAP_DS, oldCapDS, capDS));
        }
    }
    return capDS;
}
项目:Saturn    文件:XMLNamespaceDefinitionImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetURI(ComplexValue newURI, NotificationChain msgs)
{
  ComplexValue oldURI = uRI;
  uRI = newURI;
  if (eNotificationRequired())
  {
    ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FileResourcePackage.XML_NAMESPACE_DEFINITION__URI, oldURI, newURI);
    if (msgs == null) msgs = notification; else msgs.add(notification);
  }
  return msgs;
}
项目:ttc2017smartGrids    文件:ErpInvoiceLineItemImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetErpQuoteLineItem(ErpQuoteLineItem newErpQuoteLineItem, NotificationChain msgs) {
    ErpQuoteLineItem oldErpQuoteLineItem = erpQuoteLineItem;
    erpQuoteLineItem = newErpQuoteLineItem;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InfERPSupportPackage.ERP_INVOICE_LINE_ITEM__ERP_QUOTE_LINE_ITEM, oldErpQuoteLineItem, newErpQuoteLineItem);
        if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
}
项目:ttc2017smartGrids    文件:PhaseTapChangerImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetPhaseVariationCurve(PhaseVariationCurve newPhaseVariationCurve, NotificationChain msgs) {
    PhaseVariationCurve oldPhaseVariationCurve = phaseVariationCurve;
    phaseVariationCurve = newPhaseVariationCurve;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WiresPackage.PHASE_TAP_CHANGER__PHASE_VARIATION_CURVE, oldPhaseVariationCurve, newPhaseVariationCurve);
        if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
}
项目:ttc2017smartGrids    文件:TownDetailImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setSection(String newSection) {
    String oldSection = section;
    section = newSection;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TOWN_DETAIL__SECTION, oldSection, section));
}
项目:rgse.ttc17.emoflon.tgg    文件:LogicalDeviceImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetProgramEntries(ElectricityProgramEntries newProgramEntries, NotificationChain msgs) {
    ElectricityProgramEntries oldProgramEntries = programEntries;
    programEntries = newProgramEntries;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, COSEMPackage.LOGICAL_DEVICE__PROGRAM_ENTRIES, oldProgramEntries, newProgramEntries);
        if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
}
项目:neoscada    文件:SourceItemImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public DataAccessConnection getConnection ()
{
    if ( connection != null && connection.eIsProxy () )
    {
        InternalEObject oldConnection = (InternalEObject)connection;
        connection = (DataAccessConnection)eResolveProxy ( oldConnection );
        if ( connection != oldConnection )
        {
            if ( eNotificationRequired () )
                eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, OsgiPackage.SOURCE_ITEM__CONNECTION, oldConnection, connection ) );
        }
    }
    return connection;
}
项目:ttc2017smartGrids    文件:GmlGraphicImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setSymbolID(String newSymbolID) {
    String oldSymbolID = symbolID;
    symbolID = newSymbolID;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, InfGMLSupportPackage.GML_GRAPHIC__SYMBOL_ID, oldSymbolID, symbolID));
}
项目:ttc2017smartGrids    文件:AnalogueValueImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setI(int newI) {
    int oldI = i;
    i = newI;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, DataclassesPackage.ANALOGUE_VALUE__I, oldI, i));
}
项目:ttc2017smartGrids    文件:ref_ConformLoadGroup_ConformLoadGroup_LoadGroupImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setSource(ConformLoadGroup newSource) {
    ConformLoadGroup oldSource = source;
    source = newSource;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, OutagePreventionMjtracePackage.REF_CONFORM_LOAD_GROUP_CONFORM_LOAD_GROUP_LOAD_GROUP__SOURCE, oldSource, source));
}
项目:ttc2017smartGrids    文件:PDISImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ING getPhDlTmms() {
    if (phDlTmms != null && phDlTmms.eIsProxy()) {
        InternalEObject oldPhDlTmms = (InternalEObject)phDlTmms;
        phDlTmms = (ING)eResolveProxy(oldPhDlTmms);
        if (phDlTmms != oldPhDlTmms) {
            if (eNotificationRequired())
                eNotify(new ENotificationImpl(this, Notification.RESOLVE, LNGroupPPackage.PDIS__PH_DL_TMMS, oldPhDlTmms, phDlTmms));
        }
    }
    return phDlTmms;
}
项目:ttc2017smartGrids    文件:MHANImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public HMV getHaVolAmpr() {
    if (haVolAmpr != null && haVolAmpr.eIsProxy()) {
        InternalEObject oldHaVolAmpr = (InternalEObject)haVolAmpr;
        haVolAmpr = (HMV)eResolveProxy(oldHaVolAmpr);
        if (haVolAmpr != oldHaVolAmpr) {
            if (eNotificationRequired())
                eNotify(new ENotificationImpl(this, Notification.RESOLVE, LNGroupMPackage.MHAN__HA_VOL_AMPR, oldHaVolAmpr, haVolAmpr));
        }
    }
    return haVolAmpr;
}
项目:ttc2017smartGrids    文件:AssetModelCatalogueItemImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public AssetModelCatalogue getAssetModelCatalogue() {
    if (assetModelCatalogue != null && assetModelCatalogue.eIsProxy()) {
        InternalEObject oldAssetModelCatalogue = (InternalEObject)assetModelCatalogue;
        assetModelCatalogue = (AssetModelCatalogue)eResolveProxy(oldAssetModelCatalogue);
        if (assetModelCatalogue != oldAssetModelCatalogue) {
            if (eNotificationRequired())
                eNotify(new ENotificationImpl(this, Notification.RESOLVE, InfAssetModelsPackage.ASSET_MODEL_CATALOGUE_ITEM__ASSET_MODEL_CATALOGUE, oldAssetModelCatalogue, assetModelCatalogue));
        }
    }
    return assetModelCatalogue;
}
项目:n4js    文件:TObjectPrototypeImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetSuperType(ParameterizedTypeRef newSuperType, NotificationChain msgs) {
    ParameterizedTypeRef oldSuperType = superType;
    superType = newSuperType;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TypesPackage.TOBJECT_PROTOTYPE__SUPER_TYPE, oldSuperType, newSuperType);
        if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
}
项目:ttc2017smartGrids    文件:PDISImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setRisGndRch(ASG newRisGndRch) {
    ASG oldRisGndRch = risGndRch;
    risGndRch = newRisGndRch;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, LNGroupPPackage.PDIS__RIS_GND_RCH, oldRisGndRch, risGndRch));
}
项目:ttc2017smartGrids    文件:RangeConfigImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setLLim(AnalogueValue newLLim) {
    AnalogueValue oldLLim = lLim;
    lLim = newLLim;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, DataclassesPackage.RANGE_CONFIG__LLIM, oldLLim, lLim));
}
项目:ttc2017smartGrids    文件:ZAXNImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public MV getVol() {
    if (vol != null && vol.eIsProxy()) {
        InternalEObject oldVol = (InternalEObject)vol;
        vol = (MV)eResolveProxy(oldVol);
        if (vol != oldVol) {
            if (eNotificationRequired())
                eNotify(new ENotificationImpl(this, Notification.RESOLVE, LNGroupZPackage.ZAXN__VOL, oldVol, vol));
        }
    }
    return vol;
}
项目:ttc2017smartGrids    文件:InfoQuestionImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setQuestionText(String newQuestionText) {
    String oldQuestionText = questionText;
    questionText = newQuestionText;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, InfWorkPackage.INFO_QUESTION__QUESTION_TEXT, oldQuestionText, questionText));
}
项目:ttc2017smartGrids    文件:ErpOrganisationImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setGovernmentID(String newGovernmentID) {
    String oldGovernmentID = governmentID;
    governmentID = newGovernmentID;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, InfERPSupportPackage.ERP_ORGANISATION__GOVERNMENT_ID, oldGovernmentID, governmentID));
}
项目:ttc2017smartGrids    文件:SwitchingScheduleImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setInterval(DateTimeInterval newInterval) {
    DateTimeInterval oldInterval = interval;
    interval = newInterval;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, InfOperationsPackage.SWITCHING_SCHEDULE__INTERVAL, oldInterval, interval));
}
项目:ttc2017smartGrids    文件:PowerRatingImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setStage(int newStage) {
    int oldStage = stage;
    stage = newStage;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, InfAssetsPackage.POWER_RATING__STAGE, oldStage, stage));
}
项目:ttc2017smartGrids    文件:JointInfoImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setFillKind(JointFillKind newFillKind) {
    JointFillKind oldFillKind = fillKind;
    fillKind = newFillKind == null ? FILL_KIND_EDEFAULT : newFillKind;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, InfAssetsPackage.JOINT_INFO__FILL_KIND, oldFillKind, fillKind));
}
项目:rgse.ttc17.emoflon.tgg    文件:PTEFImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setOp(ACT newOp) {
    ACT oldOp = op;
    op = newOp;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, LNGroupPPackage.PTEF__OP, oldOp, op));
}
项目:TOSCA-Studio    文件:Tosca_nodes_computewithcapwithattrImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setCredential(arrayCredential newCredential) {
    if (newCredential != credential) {
        NotificationChain msgs = null;
        if (credential != null)
            msgs = ((InternalEObject)credential).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ExtendedtoscaPackage.TOSCA_NODES_COMPUTEWITHCAPWITHATTR__CREDENTIAL, null, msgs);
        if (newCredential != null)
            msgs = ((InternalEObject)newCredential).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ExtendedtoscaPackage.TOSCA_NODES_COMPUTEWITHCAPWITHATTR__CREDENTIAL, null, msgs);
        msgs = basicSetCredential(newCredential, msgs);
        if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ExtendedtoscaPackage.TOSCA_NODES_COMPUTEWITHCAPWITHATTR__CREDENTIAL, newCredential, newCredential));
}
项目:ttc2017smartGrids    文件:ElectronicAddressImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setWeb(String newWeb) {
    String oldWeb = web;
    web = newWeb;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.ELECTRONIC_ADDRESS__WEB, oldWeb, web));
}
项目:ttc2017smartGrids    文件:StaticVarCompensatorImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setInductiveRating(float newInductiveRating) {
    float oldInductiveRating = inductiveRating;
    inductiveRating = newInductiveRating;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, WiresPackage.STATIC_VAR_COMPENSATOR__INDUCTIVE_RATING, oldInductiveRating, inductiveRating));
}
项目:time4sys    文件:EventImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setTimestamp(Duration newTimestamp) {
    Duration oldTimestamp = timestamp;
    timestamp = newTimestamp;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, TracePackage.EVENT__TIMESTAMP, oldTimestamp, timestamp));
}
项目:ttc2017smartGrids    文件:PTOVImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setOp(ACT newOp) {
    ACT oldOp = op;
    op = newOp;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, LNGroupPPackage.PTOV__OP, oldOp, op));
}
项目:rgse.ttc17.emoflon.tgg    文件:MarketProductImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetMarket(Market newMarket, NotificationChain msgs) {
    Market oldMarket = market;
    market = newMarket;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, MarketOperationsPackage.MARKET_PRODUCT__MARKET, oldMarket, newMarket);
        if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
}
项目:ttc2017smartGrids    文件:ElectricityValuesImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setAmpere_squaredHours(double newAmpere_squaredHours) {
    double oldAmpere_squaredHours = ampere_squaredHours;
    ampere_squaredHours = newAmpere_squaredHours;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, COSEMObjectsPackage.ELECTRICITY_VALUES__AMPERE_SQUARED_HOURS, oldAmpere_squaredHours, ampere_squaredHours));
}
项目:ttc2017smartGrids    文件:SynchrocheckRelayImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setMaxAngleDiff(float newMaxAngleDiff) {
    float oldMaxAngleDiff = maxAngleDiff;
    maxAngleDiff = newMaxAngleDiff;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ProtectionPackage.SYNCHROCHECK_RELAY__MAX_ANGLE_DIFF, oldMaxAngleDiff, maxAngleDiff));
}
项目:ttc2017smartGrids    文件:ErpRecDelvLineItemImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetErpPOLineItem(ErpPOLineItem newErpPOLineItem, NotificationChain msgs) {
    ErpPOLineItem oldErpPOLineItem = erpPOLineItem;
    erpPOLineItem = newErpPOLineItem;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InfERPSupportPackage.ERP_REC_DELV_LINE_ITEM__ERP_PO_LINE_ITEM, oldErpPOLineItem, newErpPOLineItem);
        if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
}
项目:rgse.ttc17.emoflon.tgg    文件:ErpQuoteLineItemImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setStatus(Status newStatus) {
    Status oldStatus = status;
    status = newStatus;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, InfERPSupportPackage.ERP_QUOTE_LINE_ITEM__STATUS, oldStatus, status));
}
项目:ttc2017smartGrids    文件:GeneratingBidImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public StartUpCostCurve getStartUpCostCurve() {
    if (startUpCostCurve != null && startUpCostCurve.eIsProxy()) {
        InternalEObject oldStartUpCostCurve = (InternalEObject)startUpCostCurve;
        startUpCostCurve = (StartUpCostCurve)eResolveProxy(oldStartUpCostCurve);
        if (startUpCostCurve != oldStartUpCostCurve) {
            if (eNotificationRequired())
                eNotify(new ENotificationImpl(this, Notification.RESOLVE, MarketOperationsPackage.GENERATING_BID__START_UP_COST_CURVE, oldStartUpCostCurve, startUpCostCurve));
        }
    }
    return startUpCostCurve;
}
项目:ttc2017smartGrids    文件:PowerQualityPricingImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setPricingStructure(PricingStructure newPricingStructure) {
    if (newPricingStructure != pricingStructure) {
        NotificationChain msgs = null;
        if (pricingStructure != null)
            msgs = ((InternalEObject)pricingStructure).eInverseRemove(this, CustomersPackage.PRICING_STRUCTURE__POWER_QUALITY_PRICINGS, PricingStructure.class, msgs);
        if (newPricingStructure != null)
            msgs = ((InternalEObject)newPricingStructure).eInverseAdd(this, CustomersPackage.PRICING_STRUCTURE__POWER_QUALITY_PRICINGS, PricingStructure.class, msgs);
        msgs = basicSetPricingStructure(newPricingStructure, msgs);
        if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, InfCustomersPackage.POWER_QUALITY_PRICING__PRICING_STRUCTURE, newPricingStructure, newPricingStructure));
}
项目:ttc2017smartGrids    文件:MeasurementImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setUnit(Unit newUnit) {
    if (newUnit != unit) {
        NotificationChain msgs = null;
        if (unit != null)
            msgs = ((InternalEObject)unit).eInverseRemove(this, CorePackage.UNIT__MEASUREMENTS, Unit.class, msgs);
        if (newUnit != null)
            msgs = ((InternalEObject)newUnit).eInverseAdd(this, CorePackage.UNIT__MEASUREMENTS, Unit.class, msgs);
        msgs = basicSetUnit(newUnit, msgs);
        if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, MeasPackage.MEASUREMENT__UNIT, newUnit, newUnit));
}