edu.cmu.sei.aadl.model.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.model.core.impl.AObjectImpl
                  extended by edu.cmu.sei.aadl.model.core.impl.NamedElementImpl
                      extended by edu.cmu.sei.aadl.model.core.impl.PropertyHolderImpl
                          extended by edu.cmu.sei.aadl.model.instance.impl.InstanceObjectImpl
                              extended by edu.cmu.sei.aadl.model.instance.impl.ComponentInstanceImpl
All Implemented Interfaces:
AObject, NamedElement, PropertyHolder, ComponentInstance, InstanceObject, 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 InstanceObjectImpl
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
          The cached value of the 'Component Instance' containment reference list
static java.lang.String copyright
           
protected  org.eclipse.emf.common.util.EList endToEndFlowInstance
          The cached value of the 'End To End Flow Instance' containment reference list
protected  org.eclipse.emf.common.util.EList featureInstance
          The cached value of the 'Feature Instance' containment reference list
protected  org.eclipse.emf.common.util.EList flowSpecInstance
          The cached value of the 'Flow Spec Instance' containment reference list
protected  org.eclipse.emf.common.util.EList inModes
          The cached value of the 'In Modes' reference list
protected  org.eclipse.emf.common.util.EList modeInstance
          The cached value of the 'Mode Instance' containment reference list
protected  org.eclipse.emf.common.util.EList modeTransitionInstance
          The cached value of the 'Mode Transition Instance' containment reference list
protected  org.eclipse.emf.common.util.EList srcAccessConnection
          The cached value of the 'Src Access Connection' reference list
protected  Subcomponent subcomponent
          The cached value of the 'Subcomponent' reference
 
Fields inherited from class edu.cmu.sei.aadl.model.core.impl.PropertyHolderImpl
properties
 
Fields inherited from class edu.cmu.sei.aadl.model.core.impl.NamedElementImpl
name, NAME_EDEFAULT
 
Fields inherited from class edu.cmu.sei.aadl.model.core.impl.AObjectImpl
comment, 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 org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected ComponentInstanceImpl()
           
 
Method Summary
 boolean acceptsProperty(PropertyDefinition property)
          Query whether this object accepts values for the given property.
 void addComponentInstance(ComponentInstance newComponentInstance)
          phf: add element to multiplicity EList
 void addEndToEndFlowInstance(EndToEndFlowInstance newEndToEndFlowInstance)
          phf: add element to multiplicity EList
 void addFeatureInstance(FeatureInstance newFeatureInstance)
          phf: add element to multiplicity EList
 void addFlowSpecInstance(FlowSpecInstance newFlowSpecInstance)
          phf: add element to multiplicity EList
 void addInModes(ModeInstance newInModes)
          phf: add element to multiplicity EList
 void addModeInstance(ModeInstance newModeInstance)
          phf: add element to multiplicity EList
 void addModeTransitionInstance(ModeTransitionInstance newModeTransitionInstance)
          phf: add element to multiplicity EList
 void addSrcAccessConnection(AccessConnectionInstance newSrcAccessConnection)
          phf: add element to multiplicity EList
 Subcomponent basicGetSubcomponent()
           
 void doFlowSpecInstances()
          add flowspec instances to the component instance
protected  void doGetPreOrderComponentInstance(org.eclipse.emf.common.util.EList result, ComponentCategory cat)
          helper method for getPreOrderComponentInstance
 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)
           
 boolean exists()
          Does the component exist in the current system operation mode of its containing system instance?
 org.eclipse.emf.common.util.EList 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
 FlowSpecInstance findFlowSpecInstance(FeatureInstance srcFeatureInstance)
          find the flowspec instance of this component instance
 FlowSpecInstance findFlowSpecInstance(FlowSpec flowspec)
          find the flowspec instance of this component instance
 java.util.Collection findInstanceObject(org.eclipse.emf.common.util.EList referencePath)
          Find the instance object based on the referencePath relative to this component instance.
 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 getAllComponentInstances()
          return all component instances in the containment structure including the root The root being this
 ComponentCategory getCategory()
           
 org.eclipse.emf.common.util.EList getChildren()
          get the children of a ComponentInstance object This will be the content or in case of modal ComponentInstance the subset that is active in a given mode (Overridden by SystemInstanceImpl!)
 org.eclipse.emf.common.util.EList getChildren(ModeInstance mode)
          Get the child of a component instance object that exist in the given mode.
 org.eclipse.emf.common.util.EList getComponentInstance()
           
 org.eclipse.emf.common.util.EList getComponentInstance(ModeInstance mode)
          retrieve the subset of sub-component instances that are part of the specified mode
 ModeInstance getCurrentMode()
          Get the mode this component is currently projected into.
 org.eclipse.emf.common.util.EList getEndToEndFlowInstance()
           
protected  java.util.List getExistsInModes()
          Returns the System Operation Modes in which the element exists, or null if the element always exists.
 org.eclipse.emf.common.util.EList getFeatureInstance()
           
 org.eclipse.emf.common.util.EList getFlowSpecInstance()
           
 org.eclipse.emf.common.util.EList getIncomingConnection(Feature feature)
          get incoming connections for specified feature
 org.eclipse.emf.common.util.EList getIngoingConnection(Feature feature)
          get ingoing connections for specified feature connections to within the component for which this feature is the source
 org.eclipse.emf.common.util.EList getInModes()
           
 java.util.List getInstantiatedObjects()
          Return the declarative objects that define this instance.
 org.eclipse.emf.common.util.EList getModeInstance()
           
 org.eclipse.emf.common.util.EList getModeTransitionInstance()
           
 org.eclipse.emf.common.util.EList getOutcomingConnection(Feature feature)
          get outcoming connections for specified feature connections from within the component for which this feature is the destination
 org.eclipse.emf.common.util.EList getOutgoingAccessConnection()
          get outgoing access connections for bus/data component
 org.eclipse.emf.common.util.EList getOutgoingConnection(Feature feature)
          get outgoing connections for specified feature
 org.eclipse.emf.common.util.EList getPreOrderComponentInstance(ComponentCategory cat)
          returns preorder list of component instances of the specified category.
 java.util.List getReferencePathTo()
          Get a List containing the subcomponent path that references the subcomponent associated the component instance.
 ReferenceValue getReferenceTo()
          Create a ReferenceValue that references the subcomponent associated with the component instance.
 AObject getSecondReferencedObject()
          return as src of connection as referenced object
 org.eclipse.emf.common.util.EList getSrcAccessConnection()
           
 Subcomponent getSubcomponent()
           
 ComponentClassifier getXComponentClassifier()
          Get the ComponentClassifierassociated with this component instance.
 ComponentImpl getXComponentImpl()
          Get the ComponentImplassociated with this component instance.
 ComponentType getXComponentType()
          Get the ComponentTypeassociated with this component instance.
 boolean isModal()
          Is the component modal?
 boolean isModalSubcomponent()
          Is the component a modal subcompnent?
 void setCategory(ComponentCategory newCategory)
           
 void setCurrentMode(ModeInstance newMode)
          Project this component into the given mode.
 void setSubcomponent(Subcomponent newSubcomponent)
           
 boolean testClassifier(java.util.Set classifiers)
          Test a component against a set of classifiers.
 java.lang.String toString()
           
 
Methods inherited from class edu.cmu.sei.aadl.model.instance.impl.InstanceObjectImpl
createAccumulator, getComponentInstanceList, getComponentInstancePath, getContainingComponentInstance, getContainingComponentInstanceOrSelf, getInstanceObjectPath, getPropertyValueFromDeclarativeModel, getPropertyValueInternal, getSystemInstance
 
Methods inherited from class edu.cmu.sei.aadl.model.core.impl.PropertyHolderImpl
addProperty, addPropertyValue, basicSetProperties, checkPropertyAssociation, createPropertyAssociation, findPropertyAssociation, getProperties, getPropertyAssociation, getPropertyValue, getPropertyValueList, getSimplePropertyValue, isModalPropertyValue, removeContainedPropertyAssociations, removeContainedPropertyAssociations, removePropertyAssociations, removePropertyAssociations, setContainedPropertyValue, setContainedPropertyValue, setContainedPropertyValue, setContainedPropertyValue, setProperties, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue
 
Methods inherited from class edu.cmu.sei.aadl.model.core.impl.NamedElementImpl
checkName, getName, setName
 
Methods inherited from class edu.cmu.sei.aadl.model.core.impl.AObjectImpl
addComment, eObjectForURIFragmentSegment, eURIFragmentSegment, getAadlSpec, getAdapter, getAObjectRoot, getComment, getContainingClassifier, getContainingClassifierNameSpace, getContainingComponentImpl, getContainingComponentType, getContainingPropertyAssociationDefinitionConstant, getContainingSubcomponent, getLocationReference, getReferencedObject, 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, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, 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, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, 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 edu.cmu.sei.aadl.model.instance.InstanceObject
getComponentInstanceList, getComponentInstancePath, getContainingComponentInstance, getInstanceObjectPath, getSystemInstance
 
Methods inherited from interface edu.cmu.sei.aadl.model.core.PropertyHolder
addProperty, addPropertyValue, checkPropertyAssociation, findPropertyAssociation, getProperties, getPropertyAssociation, getPropertyValue, getPropertyValueInternal, getPropertyValueList, getSimplePropertyValue, isModalPropertyValue, removeContainedPropertyAssociations, removeContainedPropertyAssociations, removePropertyAssociations, removePropertyAssociations, setContainedPropertyValue, setContainedPropertyValue, setContainedPropertyValue, setContainedPropertyValue, setProperties, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue
 
Methods inherited from interface edu.cmu.sei.aadl.model.core.NamedElement
getName, setName
 
Methods inherited from interface edu.cmu.sei.aadl.model.core.AObject
addComment, getAadlSpec, getAObjectRoot, getComment, getContainingClassifier, getContainingClassifierNameSpace, getContainingComponentImpl, getContainingComponentType, getContainingPropertyAssociationDefinitionConstant, getContainingSubcomponent, getLocationReference, getReferencedObject, 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

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values

featureInstance

protected org.eclipse.emf.common.util.EList featureInstance
The cached value of the 'Feature Instance' containment reference list.

See Also:
getFeatureInstance()

componentInstance

protected org.eclipse.emf.common.util.EList componentInstance
The cached value of the 'Component Instance' containment reference list.

See Also:
getComponentInstance()

subcomponent

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

See Also:
getSubcomponent()

srcAccessConnection

protected org.eclipse.emf.common.util.EList srcAccessConnection
The cached value of the 'Src Access Connection' reference list.

See Also:
getSrcAccessConnection()

modeInstance

protected org.eclipse.emf.common.util.EList modeInstance
The cached value of the 'Mode Instance' containment reference list.

See Also:
getModeInstance()

modeTransitionInstance

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

See Also:
getModeTransitionInstance()

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 inModes
The cached value of the 'In Modes' reference list.

See Also:
getInModes()

flowSpecInstance

protected org.eclipse.emf.common.util.EList flowSpecInstance
The cached value of the 'Flow Spec Instance' containment reference list.

See Also:
getFlowSpecInstance()

endToEndFlowInstance

protected org.eclipse.emf.common.util.EList endToEndFlowInstance
The cached value of the 'End To End Flow Instance' containment reference list.

See Also:
getEndToEndFlowInstance()
Constructor Detail

ComponentInstanceImpl

protected ComponentInstanceImpl()

Method Detail

eStaticClass

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

Overrides:
eStaticClass in class InstanceObjectImpl

getFeatureInstance

public org.eclipse.emf.common.util.EList getFeatureInstance()

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

addFeatureInstance

public void addFeatureInstance(FeatureInstance newFeatureInstance)
phf: add element to multiplicity EList

Specified by:
addFeatureInstance in interface ComponentInstance
Parameters:
newFeatureInstance - the value to add to 'Feature Instance' containment reference list.

getComponentInstance

public org.eclipse.emf.common.util.EList getComponentInstance()

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

getAllComponentInstances

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

Specified by:
getAllComponentInstances in interface ComponentInstance

addComponentInstance

public void addComponentInstance(ComponentInstance newComponentInstance)
phf: add element to multiplicity EList

Specified by:
addComponentInstance in interface ComponentInstance
Parameters:
newComponentInstance - the value to add to 'Component Instance' containment reference list.

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()

getSrcAccessConnection

public org.eclipse.emf.common.util.EList getSrcAccessConnection()

Specified by:
getSrcAccessConnection in interface ComponentInstance
Returns:
the value of the 'Src Access Connection' reference list.
See Also:
InstancePackage.getComponentInstance_SrcAccessConnection(), AccessConnectionInstance.getSrc()

addSrcAccessConnection

public void addSrcAccessConnection(AccessConnectionInstance newSrcAccessConnection)
phf: add element to multiplicity EList

Specified by:
addSrcAccessConnection in interface ComponentInstance
Parameters:
newSrcAccessConnection - the value to add to 'Src Access Connection' reference list.

getModeInstance

public org.eclipse.emf.common.util.EList getModeInstance()

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

addModeInstance

public void addModeInstance(ModeInstance newModeInstance)
phf: add element to multiplicity EList

Specified by:
addModeInstance in interface ComponentInstance
Parameters:
newModeInstance - the value to add to 'Mode Instance' containment reference list.

getModeTransitionInstance

public org.eclipse.emf.common.util.EList getModeTransitionInstance()

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

addModeTransitionInstance

public void addModeTransitionInstance(ModeTransitionInstance newModeTransitionInstance)
phf: add element to multiplicity EList

Specified by:
addModeTransitionInstance in interface ComponentInstance
Parameters:
newModeTransitionInstance - the value to add to 'Mode Transition Instance' containment reference list.

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 getInModes()

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

addInModes

public void addInModes(ModeInstance newInModes)
phf: add element to multiplicity EList

Specified by:
addInModes in interface ComponentInstance
Parameters:
newInModes - the value to add to 'In Modes' reference list.

getFlowSpecInstance

public org.eclipse.emf.common.util.EList getFlowSpecInstance()

Specified by:
getFlowSpecInstance in interface ComponentInstance
Returns:
the value of the 'Flow Spec Instance' containment reference list.
See Also:
InstancePackage.getComponentInstance_FlowSpecInstance()

addFlowSpecInstance

public void addFlowSpecInstance(FlowSpecInstance newFlowSpecInstance)
phf: add element to multiplicity EList

Specified by:
addFlowSpecInstance in interface ComponentInstance
Parameters:
newFlowSpecInstance - the value to add to 'Flow Spec Instance' containment reference list.

getEndToEndFlowInstance

public org.eclipse.emf.common.util.EList getEndToEndFlowInstance()

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

addEndToEndFlowInstance

public void addEndToEndFlowInstance(EndToEndFlowInstance newEndToEndFlowInstance)
phf: add element to multiplicity EList

Specified by:
addEndToEndFlowInstance in interface ComponentInstance
Parameters:
newEndToEndFlowInstance - the value to add to 'End To End Flow Instance' containment reference list.

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 org.eclipse.emf.ecore.impl.BasicEObjectImpl

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 PropertyHolderImpl

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 PropertyHolderImpl

eSet

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

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

eUnset

public void eUnset(int featureID)

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

eIsSet

public boolean eIsSet(int featureID)

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

toString

public java.lang.String toString()

Overrides:
toString in class NamedElementImpl

acceptsProperty

public final boolean acceptsProperty(PropertyDefinition property)
Description copied from interface: PropertyHolder
Query whether this object accepts values for the given property. That is, does the given property apply to this element?

Specified by:
acceptsProperty in interface PropertyHolder
Overrides:
acceptsProperty in class PropertyHolderImpl
Parameters:
property - The property definition to test.
Returns:
true if the given property applies to this element.

getInstantiatedObjects

public java.util.List 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 PropertyHolder objects that should be declarative model elements. Returns an empty list if no named declarative object exists, such as in the case of ModeTransitionInstances.

getExistsInModes

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

Overrides:
getExistsInModes in class InstanceObjectImpl

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

findFlowSpecInstance

public FlowSpecInstance findFlowSpecInstance(FlowSpec 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

findFlowSpecInstance

public FlowSpecInstance findFlowSpecInstance(FeatureInstance srcFeatureInstance)
find the flowspec instance of this component instance

Specified by:
findFlowSpecInstance in interface ComponentInstance
Parameters:
srcFeatureInstance - feature instance that is the source of the flowspecinstance
Returns:
flowspec instance with the specified flowspec, or null

doFlowSpecInstances

public void doFlowSpecInstances()
add flowspec instances to the component instance

Specified by:
doFlowSpecInstances in interface ComponentInstance

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

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

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 instance with the specified mode transition, or null

findConnectionInstance

public org.eclipse.emf.common.util.EList 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

getXComponentImpl

public ComponentImpl getXComponentImpl()
Get the ComponentImplassociated with this component instance.

Specified by:
getXComponentImpl in interface ComponentInstance
Returns:
The component implementation associated with this instance, or null if one cannot be found.

getXComponentClassifier

public ComponentClassifier getXComponentClassifier()
Get the ComponentClassifierassociated with this component instance.

Specified by:
getXComponentClassifier in interface ComponentInstance
Returns:
The component classifier associated with this instance, or null if one cannot be found.

getXComponentType

public ComponentType getXComponentType()
Get the ComponentTypeassociated with this component instance.

Specified by:
getXComponentType in interface ComponentInstance
Returns:
The component type associated with this instance, or null if one cannot be found.

getComponentInstance

public org.eclipse.emf.common.util.EList getComponentInstance(ModeInstance mode)
retrieve the subset of sub-component instances that are part of the specified mode

Specified by:
getComponentInstance in interface ComponentInstance
Parameters:
mode - ModeInstance to be used to select the subset, if null return all
Returns:
EList of ComponentInstance of the subcomponent subset

setCurrentMode

public final void setCurrentMode(ModeInstance newMode)
Project this component into the given mode. The mode must be an element of getModeInstance(), 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.

getCurrentMode

public final ModeInstance getCurrentMode()
Description copied from interface: ComponentInstance
Get the mode this component is currently projected into.

Specified by:
getCurrentMode in interface ComponentInstance
Returns:
The mode this component is projected into, or null if it is not projected into any mode.

getPreOrderComponentInstance

public org.eclipse.emf.common.util.EList getPreOrderComponentInstance(ComponentCategory cat)
returns preorder list of component instances of the specified category. Takes into account SOMIterator when traversing the content hierarchy of model instances

Specified by:
getPreOrderComponentInstance in interface ComponentInstance
Parameters:
cat - component category
Returns:
result EList of component instance of the given category

doGetPreOrderComponentInstance

protected void doGetPreOrderComponentInstance(org.eclipse.emf.common.util.EList result,
                                              ComponentCategory cat)
helper method for getPreOrderComponentInstance

Parameters:
result -
cat -

getChildren

public org.eclipse.emf.common.util.EList getChildren()
get the children of a ComponentInstance object This will be the content or in case of modal ComponentInstance the subset that is active in a given mode

(Overridden by SystemInstanceImpl!)

Specified by:
getChildren in interface AObject
Specified by:
getChildren in interface ComponentInstance
Overrides:
getChildren in class AObjectImpl
Returns:
EList AObject

getChildren

public final org.eclipse.emf.common.util.EList getChildren(ModeInstance mode)
Description copied from interface: ComponentInstance
Get the child of a component instance object that exist in the given mode.

Specified by:
getChildren in interface ComponentInstance
Parameters:
mode - The mode instance
Returns:
The list of children that exist in the given mode.

testClassifier

public boolean testClassifier(java.util.Set classifiers)
Test a component against a set of classifiers.

Specified by:
testClassifier in interface ComponentInstance
Returns:
Whether the component's classifier type is a descendent of any of the given component classifiers. Returns true if the given set is empty!

getReferenceTo

public ReferenceValue getReferenceTo()
Description copied from interface: ComponentInstance
Create a ReferenceValue that references the subcomponent associated with the component instance. The reference is rooted at the system implementation associated with the system instance that contains the component instance. Returns null if ci is a SystemInstance. The resulting value is useful, for example, for being use the value of a contained property association.

Specified by:
getReferenceTo in interface ComponentInstance

getReferencePathTo

public java.util.List getReferencePathTo()
Description copied from interface: ComponentInstance
Get a List containing the subcomponent path that references the subcomponent associated the component instance. The reference is rooted at the system implementation associated with the system instance that contains the component instance. The resulting list is useful for setting the "applies to" clause of a contained property association.

Specified by:
getReferencePathTo in interface ComponentInstance
Returns:
A list of Subcomponent objects describing the path to the component.

findInstanceObject

public java.util.Collection findInstanceObject(org.eclipse.emf.common.util.EList referencePath)
Description copied from interface: ComponentInstance
Find the instance object based on the referencePath relative to this component instance.

This method is sensitive to the current system operation mode of the containing system instance. The object is only returned if it exists in the current som.

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

getSecondReferencedObject

public AObject getSecondReferencedObject()
return as src of connection as referenced object

Specified by:
getSecondReferencedObject in interface AObject
Overrides:
getSecondReferencedObject in class AObjectImpl

getOutgoingConnection

public org.eclipse.emf.common.util.EList getOutgoingConnection(Feature feature)
get outgoing connections for specified feature

Specified by:
getOutgoingConnection in interface ComponentInstance
Parameters:
feature - subcomponent feature that is the source of a connection
Returns:
EList Connection connections with feature as source for ConnectionInstances see methods on FeatureInstance

getOutgoingAccessConnection

public org.eclipse.emf.common.util.EList getOutgoingAccessConnection()
get outgoing access connections for bus/data component

Specified by:
getOutgoingAccessConnection in interface ComponentInstance
Returns:
EList Connection access connections with subcomponent as source

getIncomingConnection

public org.eclipse.emf.common.util.EList getIncomingConnection(Feature feature)
get incoming connections for specified feature

Specified by:
getIncomingConnection in interface ComponentInstance
Parameters:
feature - subcomponent feature that is the destination of a connection
Returns:
EList Connection connections with feature as destination

getOutcomingConnection

public org.eclipse.emf.common.util.EList getOutcomingConnection(Feature feature)
get outcoming connections for specified feature connections from within the component for which this feature is the destination

Specified by:
getOutcomingConnection in interface ComponentInstance
Parameters:
feature - feature that is the destination of a connection
Returns:
EList Connection connections with feature as destination

getIngoingConnection

public org.eclipse.emf.common.util.EList getIngoingConnection(Feature feature)
get ingoing connections for specified feature connections to within the component for which this feature is the source

Specified by:
getIngoingConnection in interface ComponentInstance
Parameters:
feature - feature that is the source of a connection
Returns:
EList Connection connections with feature as destination

isModal

public final boolean isModal()
Description copied from interface: ComponentInstance
Is the component modal? That is, does the component have modes? A component is modal if it has a non-empty set of ModeInstances. This method is equivalent to !getModeInstance().isEmpty(), but communicates a clearer semantic message and the model.

Specified by:
isModal in interface ComponentInstance

isModalSubcomponent

public final boolean isModalSubcomponent()
Description copied from interface: ComponentInstance
Is the component a modal subcompnent? That is, does the existence of this component depend on the current mode of its parent? A component is a modal subcomponent if it has a non-empty set of "inModes". This methods is equivalent to !getInModes().isEmpty(), but communicates a clearer semantic message about the model.

Specified by:
isModalSubcomponent in interface ComponentInstance

exists

public boolean exists()
Description copied from interface: ComponentInstance
Does the component exist in the current system operation mode of its containing system instance? A component exists if it is the system instance, or if its parent exists and the component exists in the current mode of its parent. A component exists in the current mode of its parent if the component is not a modal subcomponent or if the current mode of the parent is contained in the component's mode list.

If the containing system instance does not have a current system operation mode set, then this returns true.

Specified by:
exists in interface ComponentInstance