org.eclipse.emf.henshin.statespace.impl
Class TransitionImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.MinimalEObjectImpl
              extended by org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
                  extended by org.eclipse.emf.henshin.statespace.impl.StorageImpl
                      extended by org.eclipse.emf.henshin.statespace.impl.TransitionImpl
All Implemented Interfaces:
Notifier, EObject, EStructuralFeature.Internal.DynamicValueHolder, InternalEObject, Storage, Transition

public class TransitionImpl
extends StorageImpl
implements Transition

Default implementation of the Transition interface.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
MinimalEObjectImpl.Container.Dynamic
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
MinimalEObjectImpl.Container
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList<E extends Object & Adapter>, BasicNotifierImpl.EObservableAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
 
Field Summary
protected static int MATCH_EDEFAULT
          The default value of the 'Match' attribute.
protected static int PARAMETER_COUNT_EDEFAULT
          The default value of the 'Parameter Count' attribute.
protected static int[] PARAMETER_KEYS_EDEFAULT
          The default value of the 'Parameter Keys' attribute.
protected  Rule rule
          The cached value of the 'Rule' attribute.
protected  State target
          The cached value of the 'Target' reference.
 
Fields inherited from class org.eclipse.emf.henshin.statespace.impl.StorageImpl
data, DATA_EDEFAULT, EMPTY_DATA
 
Fields inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
eContainer
 
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder
NIL
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
TransitionImpl()
           
 
Method Summary
 Rule basicGetRule()
           
 State basicGetTarget()
           
 NotificationChain basicSetSource(State newSource, NotificationChain msgs)
           
 NotificationChain basicSetTarget(State newTarget, NotificationChain msgs)
           
 NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
           
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 String getLabel()
          Labels are not cached by the transition! Should be cached externally, if needed.
 int getMatch()
          Returns the value of the 'Match' attribute.
 int getParameterCount()
          Get the number of parameters for this transition.
 int[] getParameterKeys()
          Get the parameter keys for this transition.
 Rule getRule()
          Returns the value of the 'Rule' attribute.
 State getSource()
          Returns the value of the 'Source' container reference.
 State getTarget()
          Returns the value of the 'Target' reference.
 void setMatch(int match)
          Sets the value of the 'Match' attribute.
 void setParameterCount(int paramCount)
          Set the number of parameters for this transition.
 void setParameterKeys(int[] paramIDs)
          Set the parameter keys for this transition.
 void setRule(Rule newRule)
           
 void setSource(State newSource)
          Sets the value of the 'Source' container reference.
 void setTarget(State newTarget)
          Sets the value of the 'Target' reference.
 String toString()
           
 
Methods inherited from class org.eclipse.emf.henshin.statespace.impl.StorageImpl
getData, getData, getData, setData, setData, setData, setData
 
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
eBasicSetContainer, eInternalContainer
 
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
dynamicGet, dynamicSet, dynamicUnset, eAdapters, eBasicAdapterArray, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetContainer, eBasicSetContainerFeatureID, eBasicSetSettings, eBasicSettings, eClass, eContainerFeatureID, eContents, eCrossReferences, eDeliver, eDirectResource, eDynamicClass, eHasSettings, eIsProxy, eProperties, eProxyURI, eSetClass, eSetDeliver, eSetDirectResource, eSetProxyURI, eSettings
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.henshin.statespace.Storage
getData, getData, getData, setData, setData, setData, setData
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

target

protected State target
The cached value of the 'Target' reference.

See Also:
getTarget()

rule

protected Rule rule
The cached value of the 'Rule' attribute.

See Also:
getRule()

MATCH_EDEFAULT

protected static final int MATCH_EDEFAULT
The default value of the 'Match' attribute.

See Also:
getMatch(), Constant Field Values

PARAMETER_COUNT_EDEFAULT

protected static final int PARAMETER_COUNT_EDEFAULT
The default value of the 'Parameter Count' attribute.

See Also:
getParameterCount(), Constant Field Values

PARAMETER_KEYS_EDEFAULT

protected static final int[] PARAMETER_KEYS_EDEFAULT
The default value of the 'Parameter Keys' attribute.

See Also:
getParameterKeys()
Constructor Detail

TransitionImpl

public TransitionImpl()
Method Detail

getLabel

public String getLabel()
Labels are not cached by the transition! Should be cached externally, if needed.

Specified by:
getLabel in interface Transition

getMatch

public int getMatch()
Description copied from interface: Transition
Returns the value of the 'Match' attribute.

Specified by:
getMatch in interface Transition
Returns:
the value of the 'Match' attribute.
See Also:
Transition.setMatch(int)

setMatch

public void setMatch(int match)
Description copied from interface: Transition
Sets the value of the 'Match' attribute.

Specified by:
setMatch in interface Transition
Parameters:
match - the new value of the 'Match' attribute.
See Also:
Transition.getMatch()

getParameterCount

public int getParameterCount()
Description copied from interface: Transition
Get the number of parameters for this transition.

Specified by:
getParameterCount in interface Transition
Returns:
the value of the 'Parameter Count' attribute.
See Also:
Transition.setParameterCount(int), StateSpacePackage.getTransition_ParameterCount()

setParameterCount

public void setParameterCount(int paramCount)
Description copied from interface: Transition
Set the number of parameters for this transition.

Specified by:
setParameterCount in interface Transition
Parameters:
paramCount - the new value of the 'Parameter Count' attribute.
See Also:
Transition.getParameterCount()

getParameterKeys

public int[] getParameterKeys()
Description copied from interface: Transition
Get the parameter keys for this transition.

Specified by:
getParameterKeys in interface Transition
See Also:
Transition.setParameterKeys(int[])

setParameterKeys

public void setParameterKeys(int[] paramIDs)
Description copied from interface: Transition
Set the parameter keys for this transition.

Specified by:
setParameterKeys in interface Transition
See Also:
Transition.getParameterKeys()

toString

public String toString()
Overrides:
toString in class StorageImpl

eStaticClass

protected EClass eStaticClass()
Overrides:
eStaticClass in class StorageImpl

getSource

public State getSource()
Description copied from interface: Transition
Returns the value of the 'Source' container reference. It is bidirectional and its opposite is 'Outgoing'.

Specified by:
getSource in interface Transition
Returns:
the value of the 'Source' container reference.
See Also:
Transition.setSource(State), State.getOutgoing()

basicSetSource

public NotificationChain basicSetSource(State newSource,
                                        NotificationChain msgs)

setSource

public void setSource(State newSource)
Description copied from interface: Transition
Sets the value of the 'Source' container reference.

Specified by:
setSource in interface Transition
Parameters:
newSource - the new value of the 'Source' container reference.
See Also:
Transition.getSource()

getTarget

public State getTarget()
Description copied from interface: Transition
Returns the value of the 'Target' reference. It is bidirectional and its opposite is 'Incoming'.

Specified by:
getTarget in interface Transition
Returns:
the value of the 'Target' reference.
See Also:
Transition.setTarget(State), State.getIncoming()

basicGetTarget

public State basicGetTarget()

basicSetTarget

public NotificationChain basicSetTarget(State newTarget,
                                        NotificationChain msgs)

setTarget

public void setTarget(State newTarget)
Description copied from interface: Transition
Sets the value of the 'Target' reference.

Specified by:
setTarget in interface Transition
Parameters:
newTarget - the new value of the 'Target' reference.
See Also:
Transition.getTarget()

getRule

public Rule getRule()
Description copied from interface: Transition
Returns the value of the 'Rule' attribute.

Specified by:
getRule in interface Transition
Returns:
the value of the 'Rule' attribute.
See Also:
#setRule(String)

basicGetRule

public Rule basicGetRule()


setRule

public void setRule(Rule newRule)

Specified by:
setRule in interface Transition
Parameters:
newRule - the new value of the 'Rule' reference.
See Also:
Transition.getRule()

eInverseAdd

public NotificationChain eInverseAdd(InternalEObject otherEnd,
                                     int featureID,
                                     NotificationChain msgs)
Overrides:
eInverseAdd in class BasicEObjectImpl

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        NotificationChain msgs)
Overrides:
eInverseRemove in class BasicEObjectImpl

eBasicRemoveFromContainerFeature

public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
Overrides:
eBasicRemoveFromContainerFeature in class BasicEObjectImpl

eGet

public Object eGet(int featureID,
                   boolean resolve,
                   boolean coreType)
Specified by:
eGet in interface InternalEObject
Overrides:
eGet in class StorageImpl

eSet

public void eSet(int featureID,
                 Object newValue)
Specified by:
eSet in interface InternalEObject
Overrides:
eSet in class StorageImpl

eUnset

public void eUnset(int featureID)
Specified by:
eUnset in interface InternalEObject
Overrides:
eUnset in class StorageImpl

eIsSet

public boolean eIsSet(int featureID)
Specified by:
eIsSet in interface InternalEObject
Overrides:
eIsSet in class StorageImpl