edu.cmu.sei.aadl.aadl2.instance.impl
Class FeatureInstanceImpl

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.EObjectImpl
              extended by edu.cmu.sei.aadl.aadl2.parsesupport.AObjectImpl
                  extended by edu.cmu.sei.aadl.aadl2.impl.ElementImpl
                      extended by edu.cmu.sei.aadl.aadl2.impl.NamedElementImpl
                          extended by edu.cmu.sei.aadl.aadl2.instance.impl.InstanceObjectImpl
                              extended by edu.cmu.sei.aadl.aadl2.instance.impl.ConnectionInstanceEndImpl
                                  extended by edu.cmu.sei.aadl.aadl2.instance.impl.FeatureInstanceImpl
All Implemented Interfaces:
Element, ConnectionInstanceEnd, FeatureInstance, InstanceObject, NamedElement, AObject, org.eclipse.core.runtime.IAdaptable, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject

public class FeatureInstanceImpl
extends ConnectionInstanceEndImpl
implements FeatureInstance

An implementation of the model object 'Feature Instance'.

The following features are implemented:


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
protected  FeatureCategory category
          The cached value of the 'Category' attribute
protected static FeatureCategory CATEGORY_EDEFAULT
          The default value of the 'Category' attribute
protected  DirectionType direction
          The cached value of the 'Direction' attribute
protected static DirectionType DIRECTION_EDEFAULT
          The default value of the 'Direction' attribute
protected  org.eclipse.emf.common.util.EList<FlowSpecificationInstance> dstFlowSpecs
          The cached value of the 'Dst Flow Spec' reference list
protected  Feature feature
          The cached value of the 'Feature' reference
protected  org.eclipse.emf.common.util.EList<FeatureInstance> featureInstances
          The cached value of the 'Feature Instance' containment reference list
protected  org.eclipse.emf.common.util.EList<java.lang.Long> indices
          The cached value of the 'Index' attribute list
protected  org.eclipse.emf.common.util.EList<FlowSpecificationInstance> srcFlowSpecs
          The cached value of the 'Src Flow Spec' reference list
 
Fields inherited from class edu.cmu.sei.aadl.aadl2.instance.impl.ConnectionInstanceEndImpl
dstConnectionInstances, srcConnectionInstances
 
Fields inherited from class edu.cmu.sei.aadl.aadl2.impl.NamedElementImpl
name, NAME_EDEFAULT, ownedPropertyAssociations, QUALIFIED_NAME_EDEFAULT
 
Fields inherited from class edu.cmu.sei.aadl.aadl2.impl.ElementImpl
OWNED_ELEMENT_ESUBSETS, ownedComments
 
Fields inherited from class edu.cmu.sei.aadl.aadl2.parsesupport.AObjectImpl
copyright, locationReference
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
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 edu.cmu.sei.aadl.aadl2.parsesupport.AObject
copyright
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected FeatureInstanceImpl()
           
 
Method Summary
 Feature basicGetFeature()
           
 FeatureInstance createFeatureInstance()
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 void eUnset(int featureID)
           
 FeatureInstance findFeatureInstance(Feature feature)
          find the feature instance of this feature instance
 FeatureInstance findInverseFeatureGroup(FeatureGroupType targetpgt)
          find the matching inverse feature group instance in this feature group instance the contained feature group instance must have the inverse feature group type
 FeatureCategory getCategory()
           
 DirectionType getDirection()
           
 org.eclipse.emf.common.util.EList<FlowSpecificationInstance> getDstFlowSpecs()
           
 java.util.List<SystemOperationMode> getExistsInModes()
          Returns the System Operation Modes in which the element exists, or null if the element always exists.
 Feature getFeature()
           
 org.eclipse.emf.common.util.EList<FeatureInstance> getFeatureInstances()
           
 org.eclipse.emf.common.util.EList<java.lang.Long> getIndices()
           
 java.util.List<Feature> getInstantiatedObjects()
          Return the declarative objects that define this instance.
 org.eclipse.emf.common.util.EList<FlowSpecificationInstance> getSrcFlowSpecs()
           
 boolean isActive(SystemOperationMode som)
           
 void setCategory(Feature f)
          set the featureinstance category to that of the supplied feature
 void setCategory(FeatureCategory newCategory)
           
 void setDirection(DirectionType newDirection)
           
 void setFeature(Feature newFeature)
           
 java.lang.String toString()
           
 
Methods inherited from class edu.cmu.sei.aadl.aadl2.instance.impl.ConnectionInstanceEndImpl
getDstConnectionInstances, getSrcConnectionInstances
 
Methods inherited from class edu.cmu.sei.aadl.aadl2.instance.impl.InstanceObjectImpl
acceptsProperty, getComponentInstancePath, getContainingComponentInstance, getContainingComponentInstanceOrSelf, getInstanceObjectPath, getPropertyValueFromDeclarativeModel, getPropertyValueInternal, getSystemInstance
 
Methods inherited from class edu.cmu.sei.aadl.aadl2.impl.NamedElementImpl
allNamespaces, checkPropertyAssociation, createOwnedPropertyAssociation, eBasicRemoveFromContainerFeature, getName, getNamespace, getOwnedPropertyAssociations, getPropertyValue, getPropertyValueList, getQualifiedName, getSimplePropertyValue, has_no_qualified_name, has_qualified_name, hasName, isDistinguishableFrom, qualifiedName, removePropertyAssociations, removePropertyAssociations, separator, setName, setPropertyValue, setPropertyValue, setPropertyValue
 
Methods inherited from class edu.cmu.sei.aadl.aadl2.impl.ElementImpl
allOwnedElements, create, createOwnedComment, getCacheAdapter, getChildren, getContainingClassifier, getContainingComponentImpl, getElementRoot, getOwnedComments, getOwnedElements, getOwner, has_owner, isSetOwnedElements, isSetOwner, mustBeOwned, not_own_self
 
Methods inherited from class edu.cmu.sei.aadl.aadl2.parsesupport.AObjectImpl
getAdapter, getLocationReference, setLocationReference, setLocationReference
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.instance.ConnectionInstanceEnd
getDstConnectionInstances, getSrcConnectionInstances
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.instance.InstanceObject
getComponentInstancePath, getContainingComponentInstance, getInstanceObjectPath, getSystemInstance
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.NamedElement
acceptsProperty, allNamespaces, checkPropertyAssociation, createOwnedPropertyAssociation, getName, getNamespace, getOwnedPropertyAssociations, getPropertyValue, getPropertyValueInternal, getPropertyValueList, getQualifiedName, getSimplePropertyValue, has_no_qualified_name, has_qualified_name, hasName, isDistinguishableFrom, qualifiedName, removePropertyAssociations, removePropertyAssociations, separator, setName, setPropertyValue, setPropertyValue, setPropertyValue
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.Element
allOwnedElements, createOwnedComment, getChildren, getContainingClassifier, getContainingComponentImpl, getElementRoot, getOwnedComments, getOwnedElements, getOwner, has_owner, mustBeOwned, not_own_self
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.parsesupport.AObject
getLocationReference, setLocationReference, setLocationReference
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, 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.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

srcFlowSpecs

protected org.eclipse.emf.common.util.EList<FlowSpecificationInstance> srcFlowSpecs
The cached value of the 'Src Flow Spec' reference list.

See Also:
getSrcFlowSpecs()

dstFlowSpecs

protected org.eclipse.emf.common.util.EList<FlowSpecificationInstance> dstFlowSpecs
The cached value of the 'Dst Flow Spec' reference list.

See Also:
getDstFlowSpecs()

featureInstances

protected org.eclipse.emf.common.util.EList<FeatureInstance> featureInstances
The cached value of the 'Feature Instance' containment reference list.

See Also:
getFeatureInstances()

CATEGORY_EDEFAULT

protected static final FeatureCategory CATEGORY_EDEFAULT
The default value of the 'Category' attribute.

See Also:
getCategory()

category

protected FeatureCategory category
The cached value of the 'Category' attribute.

See Also:
getCategory()

DIRECTION_EDEFAULT

protected static final DirectionType DIRECTION_EDEFAULT
The default value of the 'Direction' attribute.

See Also:
getDirection()

direction

protected DirectionType direction
The cached value of the 'Direction' attribute.

See Also:
getDirection()

feature

protected Feature feature
The cached value of the 'Feature' reference.

See Also:
getFeature()

indices

protected org.eclipse.emf.common.util.EList<java.lang.Long> indices
The cached value of the 'Index' attribute list.

See Also:
getIndices()
Constructor Detail

FeatureInstanceImpl

protected FeatureInstanceImpl()

Method Detail

eStaticClass

protected org.eclipse.emf.ecore.EClass eStaticClass()

Overrides:
eStaticClass in class ConnectionInstanceEndImpl

getFeature

public Feature getFeature()

Specified by:
getFeature in interface FeatureInstance
Returns:
the value of the 'Feature' reference.
See Also:
FeatureInstance.setFeature(Feature), InstancePackage.getFeatureInstance_Feature()

basicGetFeature

public Feature basicGetFeature()


setFeature

public void setFeature(Feature newFeature)

Specified by:
setFeature in interface FeatureInstance
Parameters:
newFeature - the new value of the 'Feature' reference.
See Also:
FeatureInstance.getFeature()

getIndices

public org.eclipse.emf.common.util.EList<java.lang.Long> getIndices()

Specified by:
getIndices in interface FeatureInstance
Returns:
the value of the 'Index' attribute list.
See Also:
InstancePackage.getFeatureInstance_Index()

eInverseAdd

public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                   int featureID,
                                                                   org.eclipse.emf.common.notify.NotificationChain msgs)

Overrides:
eInverseAdd in class ConnectionInstanceEndImpl

getSrcFlowSpecs

public org.eclipse.emf.common.util.EList<FlowSpecificationInstance> getSrcFlowSpecs()

Specified by:
getSrcFlowSpecs in interface FeatureInstance
Returns:
the value of the 'Src Flow Spec' reference list.
See Also:
InstancePackage.getFeatureInstance_SrcFlowSpec(), FlowSpecificationInstance.getSource()

getDstFlowSpecs

public org.eclipse.emf.common.util.EList<FlowSpecificationInstance> getDstFlowSpecs()

Specified by:
getDstFlowSpecs in interface FeatureInstance
Returns:
the value of the 'Dst Flow Spec' reference list.
See Also:
InstancePackage.getFeatureInstance_DstFlowSpec(), FlowSpecificationInstance.getDestination()

getFeatureInstances

public org.eclipse.emf.common.util.EList<FeatureInstance> getFeatureInstances()

Specified by:
getFeatureInstances in interface FeatureInstance
Returns:
the value of the 'Feature Instance' containment reference list.
See Also:
InstancePackage.getFeatureInstance_FeatureInstance()

createFeatureInstance

public FeatureInstance createFeatureInstance()

Specified by:
createFeatureInstance in interface FeatureInstance
Returns:
The new FeatureInstance.
See Also:
FeatureInstance.getFeatureInstances()

getCategory

public FeatureCategory getCategory()

Specified by:
getCategory in interface FeatureInstance
Returns:
the value of the 'Category' attribute.
See Also:
FeatureCategory, FeatureInstance.setCategory(FeatureCategory), InstancePackage.getFeatureInstance_Category()

setCategory

public void setCategory(FeatureCategory newCategory)

Specified by:
setCategory in interface FeatureInstance
Parameters:
newCategory - the new value of the 'Category' attribute.
See Also:
FeatureCategory, FeatureInstance.getCategory()

getDirection

public DirectionType getDirection()

Specified by:
getDirection in interface FeatureInstance
Returns:
the value of the 'Direction' attribute.
See Also:
DirectionType, FeatureInstance.setDirection(DirectionType), InstancePackage.getFeatureInstance_Direction()

setDirection

public void setDirection(DirectionType newDirection)

Specified by:
setDirection in interface FeatureInstance
Parameters:
newDirection - the new value of the 'Direction' attribute.
See Also:
DirectionType, FeatureInstance.getDirection()

eInverseRemove

public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                      int featureID,
                                                                      org.eclipse.emf.common.notify.NotificationChain msgs)

Overrides:
eInverseRemove in class ConnectionInstanceEndImpl

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class ConnectionInstanceEndImpl

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class ConnectionInstanceEndImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class ConnectionInstanceEndImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class ConnectionInstanceEndImpl

toString

public java.lang.String toString()

Overrides:
toString in class NamedElementImpl

findInverseFeatureGroup

public FeatureInstance findInverseFeatureGroup(FeatureGroupType targetpgt)
find the matching inverse feature group instance in this feature group instance the contained feature group instance must have the inverse feature group type

Specified by:
findInverseFeatureGroup in interface FeatureInstance
Parameters:
targetpgt - feature group instance with feature group type to be found
Returns:
feature instance with the specified feature, or null

setCategory

public void setCategory(Feature f)
set the featureinstance category to that of the supplied feature

Specified by:
setCategory in interface FeatureInstance
Parameters:
f - Feature

findFeatureInstance

public FeatureInstance findFeatureInstance(Feature feature)
find the feature instance of this feature instance

Specified by:
findFeatureInstance in interface FeatureInstance
Parameters:
feature - feature whose instance is to be found
Returns:
feature instance with the specified feature, or null

getExistsInModes

public final java.util.List<SystemOperationMode> getExistsInModes()
Description copied from class: InstanceObjectImpl
Returns the System Operation Modes in which the element exists, or null if the element always exists.

Specified by:
getExistsInModes in interface InstanceObject
Overrides:
getExistsInModes in class InstanceObjectImpl
Returns:

getInstantiatedObjects

public java.util.List<Feature> getInstantiatedObjects()
Description copied from class: InstanceObjectImpl
Return the declarative objects that define this instance. Most of the time this will return a singleton list. But in the case of semantic connections, it will return a list of connection objects.

Specified by:
getInstantiatedObjects in interface InstanceObject
Overrides:
getInstantiatedObjects in class InstanceObjectImpl
Returns:
A List of NamedElement objects that should be declarative model elements. Returns an empty list if no named declarative object exists, such as in the case of ModeTransitionInstances.

isActive

public boolean isActive(SystemOperationMode som)
Specified by:
isActive in interface InstanceObject