bpsim.impl.ControlParametersImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kie-wb-common-stunner-bpmn-emf Show documentation
Show all versions of kie-wb-common-stunner-bpmn-emf Show documentation
Kie Workbench - Common - Stunner - BPMN Definition Set - GWT Support for Eclipse EMF/XMI
/**
*/
package bpsim.impl;
import bpsim.BpsimPackage;
import bpsim.ControlParameters;
import bpsim.Parameter;
import com.google.gwt.user.client.rpc.GwtTransient;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
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.EObjectImpl;
/**
*
* An implementation of the model object 'Control Parameters'.
*
*
* The following features are implemented:
*
*
* - {@link bpsim.impl.ControlParametersImpl#getProbability Probability}
* - {@link bpsim.impl.ControlParametersImpl#getCondition Condition}
* - {@link bpsim.impl.ControlParametersImpl#getInterTriggerTimer Inter Trigger Timer}
* - {@link bpsim.impl.ControlParametersImpl#getTriggerCount Trigger Count}
*
*
* @generated
*/
public class ControlParametersImpl extends EObjectImpl implements ControlParameters {
/**
* The cached value of the '{@link #getProbability() Probability}' containment reference.
*
*
* @see #getProbability()
* @generated
* @ordered
*/
@GwtTransient
protected Parameter probability;
/**
* The cached value of the '{@link #getCondition() Condition}' containment reference.
*
*
* @see #getCondition()
* @generated
* @ordered
*/
@GwtTransient
protected Parameter condition;
/**
* The cached value of the '{@link #getInterTriggerTimer() Inter Trigger Timer}' containment reference.
*
*
* @see #getInterTriggerTimer()
* @generated
* @ordered
*/
@GwtTransient
protected Parameter interTriggerTimer;
/**
* The cached value of the '{@link #getTriggerCount() Trigger Count}' containment reference.
*
*
* @see #getTriggerCount()
* @generated
* @ordered
*/
@GwtTransient
protected Parameter triggerCount;
/**
*
*
* @generated
*/
protected ControlParametersImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return BpsimPackage.Literals.CONTROL_PARAMETERS;
}
/**
*
*
* @generated
*/
@Override
public Parameter getProbability() {
return probability;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetProbability(Parameter newProbability, NotificationChain msgs) {
Parameter oldProbability = probability;
probability = newProbability;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BpsimPackage.CONTROL_PARAMETERS__PROBABILITY, oldProbability, newProbability);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
*
*
* @generated
*/
@Override
public void setProbability(Parameter newProbability) {
if (newProbability != probability) {
NotificationChain msgs = null;
if (probability != null)
msgs = ((InternalEObject)probability).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - BpsimPackage.CONTROL_PARAMETERS__PROBABILITY, null, msgs);
if (newProbability != null)
msgs = ((InternalEObject)newProbability).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - BpsimPackage.CONTROL_PARAMETERS__PROBABILITY, null, msgs);
msgs = basicSetProbability(newProbability, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BpsimPackage.CONTROL_PARAMETERS__PROBABILITY, newProbability, newProbability));
}
/**
*
*
* @generated
*/
@Override
public Parameter getCondition() {
return condition;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetCondition(Parameter newCondition, NotificationChain msgs) {
Parameter oldCondition = condition;
condition = newCondition;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BpsimPackage.CONTROL_PARAMETERS__CONDITION, oldCondition, newCondition);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
*
*
* @generated
*/
@Override
public void setCondition(Parameter newCondition) {
if (newCondition != condition) {
NotificationChain msgs = null;
if (condition != null)
msgs = ((InternalEObject)condition).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - BpsimPackage.CONTROL_PARAMETERS__CONDITION, null, msgs);
if (newCondition != null)
msgs = ((InternalEObject)newCondition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - BpsimPackage.CONTROL_PARAMETERS__CONDITION, null, msgs);
msgs = basicSetCondition(newCondition, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BpsimPackage.CONTROL_PARAMETERS__CONDITION, newCondition, newCondition));
}
/**
*
*
* @generated
*/
@Override
public Parameter getInterTriggerTimer() {
return interTriggerTimer;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetInterTriggerTimer(Parameter newInterTriggerTimer, NotificationChain msgs) {
Parameter oldInterTriggerTimer = interTriggerTimer;
interTriggerTimer = newInterTriggerTimer;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BpsimPackage.CONTROL_PARAMETERS__INTER_TRIGGER_TIMER, oldInterTriggerTimer, newInterTriggerTimer);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
*
*
* @generated
*/
@Override
public void setInterTriggerTimer(Parameter newInterTriggerTimer) {
if (newInterTriggerTimer != interTriggerTimer) {
NotificationChain msgs = null;
if (interTriggerTimer != null)
msgs = ((InternalEObject)interTriggerTimer).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - BpsimPackage.CONTROL_PARAMETERS__INTER_TRIGGER_TIMER, null, msgs);
if (newInterTriggerTimer != null)
msgs = ((InternalEObject)newInterTriggerTimer).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - BpsimPackage.CONTROL_PARAMETERS__INTER_TRIGGER_TIMER, null, msgs);
msgs = basicSetInterTriggerTimer(newInterTriggerTimer, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BpsimPackage.CONTROL_PARAMETERS__INTER_TRIGGER_TIMER, newInterTriggerTimer, newInterTriggerTimer));
}
/**
*
*
* @generated
*/
@Override
public Parameter getTriggerCount() {
return triggerCount;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetTriggerCount(Parameter newTriggerCount, NotificationChain msgs) {
Parameter oldTriggerCount = triggerCount;
triggerCount = newTriggerCount;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BpsimPackage.CONTROL_PARAMETERS__TRIGGER_COUNT, oldTriggerCount, newTriggerCount);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
*
*
* @generated
*/
@Override
public void setTriggerCount(Parameter newTriggerCount) {
if (newTriggerCount != triggerCount) {
NotificationChain msgs = null;
if (triggerCount != null)
msgs = ((InternalEObject)triggerCount).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - BpsimPackage.CONTROL_PARAMETERS__TRIGGER_COUNT, null, msgs);
if (newTriggerCount != null)
msgs = ((InternalEObject)newTriggerCount).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - BpsimPackage.CONTROL_PARAMETERS__TRIGGER_COUNT, null, msgs);
msgs = basicSetTriggerCount(newTriggerCount, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BpsimPackage.CONTROL_PARAMETERS__TRIGGER_COUNT, newTriggerCount, newTriggerCount));
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case BpsimPackage.CONTROL_PARAMETERS__PROBABILITY:
return basicSetProbability(null, msgs);
case BpsimPackage.CONTROL_PARAMETERS__CONDITION:
return basicSetCondition(null, msgs);
case BpsimPackage.CONTROL_PARAMETERS__INTER_TRIGGER_TIMER:
return basicSetInterTriggerTimer(null, msgs);
case BpsimPackage.CONTROL_PARAMETERS__TRIGGER_COUNT:
return basicSetTriggerCount(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case BpsimPackage.CONTROL_PARAMETERS__PROBABILITY:
return getProbability();
case BpsimPackage.CONTROL_PARAMETERS__CONDITION:
return getCondition();
case BpsimPackage.CONTROL_PARAMETERS__INTER_TRIGGER_TIMER:
return getInterTriggerTimer();
case BpsimPackage.CONTROL_PARAMETERS__TRIGGER_COUNT:
return getTriggerCount();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case BpsimPackage.CONTROL_PARAMETERS__PROBABILITY:
setProbability((Parameter)newValue);
return;
case BpsimPackage.CONTROL_PARAMETERS__CONDITION:
setCondition((Parameter)newValue);
return;
case BpsimPackage.CONTROL_PARAMETERS__INTER_TRIGGER_TIMER:
setInterTriggerTimer((Parameter)newValue);
return;
case BpsimPackage.CONTROL_PARAMETERS__TRIGGER_COUNT:
setTriggerCount((Parameter)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case BpsimPackage.CONTROL_PARAMETERS__PROBABILITY:
setProbability((Parameter)null);
return;
case BpsimPackage.CONTROL_PARAMETERS__CONDITION:
setCondition((Parameter)null);
return;
case BpsimPackage.CONTROL_PARAMETERS__INTER_TRIGGER_TIMER:
setInterTriggerTimer((Parameter)null);
return;
case BpsimPackage.CONTROL_PARAMETERS__TRIGGER_COUNT:
setTriggerCount((Parameter)null);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case BpsimPackage.CONTROL_PARAMETERS__PROBABILITY:
return probability != null;
case BpsimPackage.CONTROL_PARAMETERS__CONDITION:
return condition != null;
case BpsimPackage.CONTROL_PARAMETERS__INTER_TRIGGER_TIMER:
return interTriggerTimer != null;
case BpsimPackage.CONTROL_PARAMETERS__TRIGGER_COUNT:
return triggerCount != null;
}
return super.eIsSet(featureID);
}
} //ControlParametersImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy