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

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.ComponentInstanceImpl
All Implemented Interfaces:
Element, ComponentInstance, ConnectionInstanceEnd, FlowElementInstance, InstanceObject, NamedElement, AObject, org.eclipse.core.runtime.IAdaptable, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject
Direct Known Subclasses:
SystemInstanceImpl

public class ComponentInstanceImpl
extends ConnectionInstanceEndImpl
implements ComponentInstance

An implementation of the model object 'Component 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  ComponentCategory category
          The cached value of the 'Category' attribute
protected static ComponentCategory CATEGORY_EDEFAULT
          The default value of the 'Category' attribute
protected  org.eclipse.emf.common.util.EList<ComponentInstance> componentInstances
          The cached value of the 'Component Instance' containment reference list
protected  org.eclipse.emf.common.util.EList<ConnectionInstance> connectionInstances
          The cached value of the 'Connection Instance' containment reference list
protected  org.eclipse.emf.common.util.EList<EndToEndFlowInstance> endToEndFlows
          The cached value of the 'End To End Flow' containment reference list
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<FlowSpecificationInstance> flowSpecifications
          The cached value of the 'Flow Specification' 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<ModeInstance> inModes
          The cached value of the 'In Modes' reference list
protected  org.eclipse.emf.common.util.EList<ModeInstance> modeInstances
          The cached value of the 'Mode Instance' containment reference list
protected  org.eclipse.emf.common.util.EList<ModeTransitionInstance> modeTransitionInstances
          The cached value of the 'Mode Transition Instance' containment reference list
protected  Subcomponent subcomponent
          The cached value of the 'Subcomponent' reference
 
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 ComponentInstanceImpl()
           
 
Method Summary
 Subcomponent basicGetSubcomponent()
           
 ComponentInstance createComponentInstance()
           
 ComponentInstance createComponentInstance(org.eclipse.emf.ecore.EClass eClass)
           
 ConnectionInstance createConnectionInstance()
           
 EndToEndFlowInstance createEndToEndFlow()
           
 FeatureInstance createFeatureInstance()
           
 FlowSpecificationInstance createFlowSpecification()
           
 ModeInstance createModeInstance()
           
 ModeTransitionInstance createModeTransitionInstance()
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 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)
           
 org.eclipse.emf.common.util.EList<ConnectionInstance> findConnectionInstance(Connection conn)
          find the Connection instance of this component instance
 EndToEndFlowInstance findEndToEndFlowInstance(EndToEndFlow ete)
          find the endtoendflow instance of this component instance
 FeatureInstance findFeatureInstance(Feature feature)
          find the feature instance of this component instance
 FlowSpecificationInstance findFlowSpecInstance(FlowSpecification flowspec)
          find the flowspec instance of this component instance
 java.util.Collection<? extends InstanceObject> findInstanceObjects(org.eclipse.emf.common.util.EList<ContainmentPathElement> referencePath)
          Get all instance objects that fit a given path.
 ModeInstance findModeInstance(Mode mode)
          find the mode instance of this component instance
 ModeTransitionInstance findModeTransitionInstance(ModeTransition mt)
          find the mode transition instance of this component instance
 ComponentInstance findSubcomponentInstance(Subcomponent sc)
          find the subcomponent instance of this component instance
 org.eclipse.emf.common.util.EList<ComponentInstance> getAllComponentInstances()
          return all component instances in the containment structure including the root The root being this
 ComponentCategory getCategory()
           
 org.eclipse.emf.common.util.EList<ComponentInstance> getComponentInstances()
           
 org.eclipse.emf.common.util.EList<ConnectionInstance> getConnectionInstances()
           
 org.eclipse.emf.common.util.EList<EndToEndFlowInstance> getEndToEndFlows()
           
 java.util.List<SystemOperationMode> getExistsInModes()
          Returns the System Operation Modes in which the element exists, or null if the element always exists.
 org.eclipse.emf.common.util.EList<FeatureInstance> getFeatureInstances()
           
 org.eclipse.emf.common.util.EList<FlowSpecificationInstance> getFlowSpecifications()
           
 org.eclipse.emf.common.util.EList<java.lang.Long> getIndices()
           
 org.eclipse.emf.common.util.EList<ModeInstance> getInModes()
           
 java.util.List<? extends NamedElement> getInstantiatedObjects()
          Return the declarative objects that define this instance.
 org.eclipse.emf.common.util.EList<ModeInstance> getModeInstances()
           
 org.eclipse.emf.common.util.EList<ModeTransitionInstance> getModeTransitionInstances()
           
 Subcomponent getSubcomponent()
           
 boolean isActive(SystemOperationMode som)
           
 void setCategory(ComponentCategory newCategory)
           
 void setCurrentMode(ModeInstance newMode)
          Project this component into the given mode.
 void setSubcomponent(Subcomponent newSubcomponent)
           
 java.lang.String toString()
           
 
Methods inherited from class edu.cmu.sei.aadl.aadl2.instance.impl.ConnectionInstanceEndImpl
eInverseAdd, 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.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

featureInstances

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

See Also:
getFeatureInstances()

componentInstances

protected org.eclipse.emf.common.util.EList<ComponentInstance> componentInstances
The cached value of the 'Component Instance' containment reference list.

See Also:
getComponentInstances()

modeInstances

protected org.eclipse.emf.common.util.EList<ModeInstance> modeInstances
The cached value of the 'Mode Instance' containment reference list.

See Also:
getModeInstances()

modeTransitionInstances

protected org.eclipse.emf.common.util.EList<ModeTransitionInstance> modeTransitionInstances
The cached value of the 'Mode Transition Instance' containment reference list.

See Also:
getModeTransitionInstances()

CATEGORY_EDEFAULT

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

See Also:
getCategory()

category

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

See Also:
getCategory()

inModes

protected org.eclipse.emf.common.util.EList<ModeInstance> inModes
The cached value of the 'In Modes' reference list.

See Also:
getInModes()

flowSpecifications

protected org.eclipse.emf.common.util.EList<FlowSpecificationInstance> flowSpecifications
The cached value of the 'Flow Specification' containment reference list.

See Also:
getFlowSpecifications()

endToEndFlows

protected org.eclipse.emf.common.util.EList<EndToEndFlowInstance> endToEndFlows
The cached value of the 'End To End Flow' containment reference list.

See Also:
getEndToEndFlows()

connectionInstances

protected org.eclipse.emf.common.util.EList<ConnectionInstance> connectionInstances
The cached value of the 'Connection Instance' containment reference list.

See Also:
getConnectionInstances()

subcomponent

protected Subcomponent subcomponent
The cached value of the 'Subcomponent' reference.

See Also:
getSubcomponent()

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

ComponentInstanceImpl

protected ComponentInstanceImpl()

Method Detail

eStaticClass

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

Overrides:
eStaticClass in class ConnectionInstanceEndImpl

getFeatureInstances

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

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

createFeatureInstance

public FeatureInstance createFeatureInstance()

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

getComponentInstances

public org.eclipse.emf.common.util.EList<ComponentInstance> getComponentInstances()

Specified by:
getComponentInstances in interface ComponentInstance
Returns:
the value of the 'Component Instance' containment reference list.
See Also:
InstancePackage.getComponentInstance_ComponentInstance()

createComponentInstance

public ComponentInstance createComponentInstance(org.eclipse.emf.ecore.EClass eClass)

Specified by:
createComponentInstance in interface ComponentInstance
Parameters:
eClass - The Ecore class of the ComponentInstance to create.
Returns:
The new ComponentInstance.
See Also:
ComponentInstance.getComponentInstances()

createComponentInstance

public ComponentInstance createComponentInstance()

Specified by:
createComponentInstance in interface ComponentInstance
Returns:
The new ComponentInstance.
See Also:
ComponentInstance.getComponentInstances()

getSubcomponent

public Subcomponent getSubcomponent()

Specified by:
getSubcomponent in interface ComponentInstance
Returns:
the value of the 'Subcomponent' reference.
See Also:
ComponentInstance.setSubcomponent(Subcomponent), InstancePackage.getComponentInstance_Subcomponent()

basicGetSubcomponent

public Subcomponent basicGetSubcomponent()


setSubcomponent

public void setSubcomponent(Subcomponent newSubcomponent)

Specified by:
setSubcomponent in interface ComponentInstance
Parameters:
newSubcomponent - the new value of the 'Subcomponent' reference.
See Also:
ComponentInstance.getSubcomponent()

getIndices

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

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

getModeInstances

public org.eclipse.emf.common.util.EList<ModeInstance> getModeInstances()

Specified by:
getModeInstances in interface ComponentInstance
Returns:
the value of the 'Mode Instance' containment reference list.
See Also:
InstancePackage.getComponentInstance_ModeInstance()

createModeInstance

public ModeInstance createModeInstance()

Specified by:
createModeInstance in interface ComponentInstance
Returns:
The new ModeInstance.
See Also:
ComponentInstance.getModeInstances()

getModeTransitionInstances

public org.eclipse.emf.common.util.EList<ModeTransitionInstance> getModeTransitionInstances()

Specified by:
getModeTransitionInstances in interface ComponentInstance
Returns:
the value of the 'Mode Transition Instance' containment reference list.
See Also:
InstancePackage.getComponentInstance_ModeTransitionInstance()

createModeTransitionInstance

public ModeTransitionInstance createModeTransitionInstance()

Specified by:
createModeTransitionInstance in interface ComponentInstance
Returns:
The new ModeTransitionInstance.
See Also:
ComponentInstance.getModeTransitionInstances()

getCategory

public ComponentCategory getCategory()

Specified by:
getCategory in interface ComponentInstance
Returns:
the value of the 'Category' attribute.
See Also:
ComponentCategory, ComponentInstance.setCategory(ComponentCategory), InstancePackage.getComponentInstance_Category()

setCategory

public void setCategory(ComponentCategory newCategory)

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

getInModes

public org.eclipse.emf.common.util.EList<ModeInstance> getInModes()

Specified by:
getInModes in interface ComponentInstance
Returns:
the value of the 'In Modes' reference list.
See Also:
InstancePackage.getComponentInstance_InModes()

getFlowSpecifications

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

Specified by:
getFlowSpecifications in interface ComponentInstance
Returns:
the value of the 'Flow Specification' containment reference list.
See Also:
InstancePackage.getComponentInstance_FlowSpecification()

createFlowSpecification

public FlowSpecificationInstance createFlowSpecification()

Specified by:
createFlowSpecification in interface ComponentInstance
Returns:
The new FlowSpecificationInstance.
See Also:
ComponentInstance.getFlowSpecifications()

getEndToEndFlows

public org.eclipse.emf.common.util.EList<EndToEndFlowInstance> getEndToEndFlows()

Specified by:
getEndToEndFlows in interface ComponentInstance
Returns:
the value of the 'End To End Flow' containment reference list.
See Also:
InstancePackage.getComponentInstance_EndToEndFlow()

createEndToEndFlow

public EndToEndFlowInstance createEndToEndFlow()

Specified by:
createEndToEndFlow in interface ComponentInstance
Returns:
The new EndToEndFlowInstance.
See Also:
ComponentInstance.getEndToEndFlows()

getConnectionInstances

public org.eclipse.emf.common.util.EList<ConnectionInstance> getConnectionInstances()

Specified by:
getConnectionInstances in interface ComponentInstance
Returns:
the value of the 'Connection Instance' containment reference list.
See Also:
InstancePackage.getComponentInstance_ConnectionInstance()

createConnectionInstance

public ConnectionInstance createConnectionInstance()

Specified by:
createConnectionInstance in interface ComponentInstance
Returns:
The new ConnectionInstance.
See Also:
ComponentInstance.getConnectionInstances()

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

findModeTransitionInstance

public ModeTransitionInstance findModeTransitionInstance(ModeTransition mt)
find the mode transition instance of this component instance

Specified by:
findModeTransitionInstance in interface ComponentInstance
Parameters:
mt - mode transition whose instance is to be found
Returns:
mode transition with the specified mode transition, or null

findModeInstance

public ModeInstance findModeInstance(Mode mode)
find the mode instance of this component instance

Specified by:
findModeInstance in interface ComponentInstance
Parameters:
mode - mode whose instance is to be found
Returns:
mode instance with the specified mode, or null

findSubcomponentInstance

public ComponentInstance findSubcomponentInstance(Subcomponent sc)
find the subcomponent instance of this component instance

Specified by:
findSubcomponentInstance in interface ComponentInstance
Parameters:
sc - subcomponent
Returns:
component instance with the specified subcomponent, or null

findFeatureInstance

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

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

setCurrentMode

public void setCurrentMode(ModeInstance newMode)
Project this component into the given mode. The mode must be an element of getModeInstances(), but this is not currently checked.

Specified by:
setCurrentMode in interface ComponentInstance
Parameters:
newMode - The mode to project this component into, or null if it is not projected into any mode.

findFlowSpecInstance

public FlowSpecificationInstance findFlowSpecInstance(FlowSpecification flowspec)
find the flowspec instance of this component instance

Specified by:
findFlowSpecInstance in interface ComponentInstance
Parameters:
flowspec - flowspec whose instance is to be found
Returns:
flowspec instance with the specified flowspec, or null

getExistsInModes

public 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:

findInstanceObjects

public java.util.Collection<? extends InstanceObject> findInstanceObjects(org.eclipse.emf.common.util.EList<ContainmentPathElement> referencePath)
Get all instance objects that fit a given path.

Specified by:
findInstanceObjects in interface ComponentInstance
Parameters:
referencePath - sequence of pointers into the declarative model to subcomponents, features, etc.
Returns:
InstanceObject collection

findConnectionInstance

public org.eclipse.emf.common.util.EList<ConnectionInstance> findConnectionInstance(Connection conn)
find the Connection instance of this component instance

Specified by:
findConnectionInstance in interface ComponentInstance
Parameters:
conn - Connection whose instance is to be found
Returns:
Connection instance list with the specified Connection

findEndToEndFlowInstance

public EndToEndFlowInstance findEndToEndFlowInstance(EndToEndFlow ete)
find the endtoendflow instance of this component instance

Specified by:
findEndToEndFlowInstance in interface ComponentInstance
Parameters:
ete - endtoendflow whose instance is to be found
Returns:
endtoendflow instance with the specified endtoendflow, or null

getInstantiatedObjects

public java.util.List<? extends NamedElement> 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.

getAllComponentInstances

public org.eclipse.emf.common.util.EList<ComponentInstance> getAllComponentInstances()
return all component instances in the containment structure including the root The root being this

Specified by:
getAllComponentInstances in interface ComponentInstance
Returns:

isActive

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