edu.cmu.sei.aadl.model.core.impl
Class ComponentImplImpl

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.core.impl.ClassifierImpl
                              extended by edu.cmu.sei.aadl.model.core.impl.ComponentClassifierImpl
                                  extended by edu.cmu.sei.aadl.model.core.impl.ComponentImplImpl
All Implemented Interfaces:
FeatureContext, AObject, Classifier, ComponentClassifier, ComponentImpl, NamedElement, PropertyHolder, org.eclipse.core.runtime.IAdaptable, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject
Direct Known Subclasses:
BusImplImpl, DataImplImpl, DeviceImplImpl, MemoryImplImpl, ProcessImplImpl, ProcessorImplImpl, SubprogramImplImpl, SystemImplImpl, ThreadGroupImplImpl, ThreadImplImpl

public abstract class ComponentImplImpl
extends ComponentClassifierImpl
implements ComponentImpl

An implementation of the model object 'Component Impl'.

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  Connections connections
          The cached value of the 'Connections' containment reference
static java.lang.String copyright
           
protected  Flows flows
          The cached value of the 'Flows' containment reference
protected  Modes modes
          The cached value of the 'Modes' containment reference
protected  RefinesType refinesType
          The cached value of the 'Refines Type' containment reference
 
Fields inherited from class edu.cmu.sei.aadl.model.core.impl.ComponentClassifierImpl
extendedClassifierReference
 
Fields inherited from class edu.cmu.sei.aadl.model.core.impl.ClassifierImpl
annexSubclause
 
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 ComponentImplImpl()
           
 
Method Summary
 void addConnection(Connection conn)
          add connection to component impl
 void addSubcomponent(Subcomponent sc)
          add a subcomponent to a component implementation
 org.eclipse.emf.common.notify.NotificationChain basicSetConnections(Connections newConnections, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 org.eclipse.emf.common.notify.NotificationChain basicSetFlows(Flows newFlows, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 org.eclipse.emf.common.notify.NotificationChain basicSetModes(Modes newModes, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 org.eclipse.emf.common.notify.NotificationChain basicSetRefinesType(RefinesType newRefinesType, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 Subcomponents createXSubcomponents()
          create a Subcomponents object of the appropriate category
 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)
           
 Connection findConnection(java.lang.String name)
          Find a connection by name in this component implementation and its superimplementations.
 org.eclipse.emf.common.util.EList findFlowSequence(java.lang.String name)
          Find all flow sequences by name in implementation and its superimplementations.
 Mode findMode(java.lang.String name)
          Find a mode by name in this component implementation and its superimplementations.
 ModeTransition findModeTransition(java.lang.String srcName, java.lang.String dstName)
          Find mode transition by src and dst name in an component implementation and its superimplementations.
 Feature findRefinedFeature(java.lang.String name)
          Find a refined feature in this component implementation and its super implementations.
 Subcomponent findSubcomponent(java.lang.String name)
          Find a subcomponent by name in this component implementation and its superimplementations.
 SubprogramSubcomponent findSubprogram(java.lang.String name)
          Find subprogram in calls section of a thread or subprogram implementaton.
 org.eclipse.emf.common.util.EList getAllConnection()
          get list of all connections of a component impl, including ancestor features In case of refined connections the refined connection is returned in the list.
 org.eclipse.emf.common.util.EList getAllConnection(Mode mode)
          get list of all connections of a component impl in a given mode, including ancestor features In case of refined connections the refined connection is returned in the list.
 java.util.Map getAllFlowImpl(FlowSpec flowSpec)
          get the flow implementations for a given specificiation for all the modes.
 FlowImpl getAllFlowImpl(FlowSpec flowSpec, Mode mode)
          get the flow implementation for a given flow specification in the given mode.
 org.eclipse.emf.common.util.EList getAllFlowSequence()
          get list of all flow sequence objects of a component impl, including ancestor flow sequences In case of refined flow sequences the refined flow sequences is returned in the list.
 org.eclipse.emf.common.util.EList getAllFlowSequence(Mode mode)
          get list of all flow sequence objects of a component impl, including ancestor flow sequences that apply in the specified mode.
 org.eclipse.emf.common.util.EList getAllMode()
          get list of all mode objects of a component impl, including ancestor modes In case of refined modes the refined mode is returned in the list.
 org.eclipse.emf.common.util.EList getAllModeAndModeTransition()
          get list of all mode and mode transition objects of a component impl, including ancestor modes In case of refined modes the refined mode is returned in the list.
 org.eclipse.emf.common.util.EList getAllModeTransition()
          get list of all mode transition objects of a component impl, including ancestor modes
 ComponentType getComponentType()
          returns the component type of a given implementation
 org.eclipse.emf.common.util.EList getConnection()
          returns the connection objects of a given implementation
 org.eclipse.emf.common.util.EList getConnection(Mode mode)
          returns the connection objects of a given implementation for a given mode
 Connections getConnections()
           
 Connections getConnections(boolean create)
          retrieve Connections object.
 Flows getFlows()
           
 Flows getFlows(boolean create)
          retrieve Flows object.
 org.eclipse.emf.common.util.EList getFlowSequence()
          get the flow sequence objects list of a component implementation
 org.eclipse.emf.common.util.EList getFlowSequence(Mode mode)
          returns the flow sequence objects of a given implementation for a given mode
 java.lang.String getImplName()
          get implementation name without type name
 org.eclipse.emf.common.util.EList getIngoingConnection(Feature feature)
          get ingoing connections to subcomponents from a specified feature of the component impl
 org.eclipse.emf.common.util.EList getMode()
          returns the list of mode objects of a given implementation
 org.eclipse.emf.common.util.EList getModeAndModeTransition()
          returns the list of mode & mode transition objects of a given implementation
 Modes getModes()
           
 Modes getModes(boolean create)
          retrieve Modes object.
 org.eclipse.emf.common.util.EList getModeTransition()
          returns the list of mode transition objects of a given implementation
 org.eclipse.emf.common.util.EList getOutcomingConnection(Feature feature)
          get outcoming connections from subcomponents to a specified feature of the component impl
 void getPropertyValueInternal(PropertyDefinition property, ModalPropertyValueAccumulator pva, boolean fromInstanceSlaveCall)
          Helper routine for computing the value of the property.
 java.lang.String getQualifiedName()
          get qualified component impl name.
 java.lang.String getQualifiedTypeName()
          get qualified type name
 AObject getReferencedObject()
          get the first object being referenced by this object.
 org.eclipse.emf.common.util.EList getRefinedFeature()
          returns the list of refined features
 RefinesType getRefinesType()
           
 RefinesType getRefinesType(boolean create)
          retrieve RefinesType object.
 java.lang.String getTypeName()
          get type name from link or parsed name
 java.util.Collection getXAllAbstractPort()
          get list of all abstract ports (ports, port groups, parameters )of a component impl, including those of ancestors These are the abstract ports of its classifier In case of refined abstract ports the refined abstract ports is returned in the list.
 org.eclipse.emf.common.util.EList getXAllCallSequence()
          returns the call sequences of threads or subprograms including inherited call sequences
 org.eclipse.emf.common.util.EList getXAllFeature()
          get list of all features of a component impl, including ancestor features These are the features of its type augmented by the refines type declarations In case of refined features the refined features is returned in the list.
 org.eclipse.emf.common.util.EList getXAllSubcomponent()
          get list of all subcomponents of a component impl, including ancestor features In case of refined connections the refined connection is returned in the list.
 org.eclipse.emf.common.util.EList getXAllSubcomponent(Mode mode)
          get list of all subcomponents in the specified mode of a component impl, including ancestor features In case of refined connections the refined connection is returned in the list.
 org.eclipse.emf.common.util.EList getXCallSequence()
          returns the call sequences of threads or subprograms
 CallSequences getXCallSequences()
          returns the call sequences of threads or subprograms
 CallSequences getXCallSequences(boolean create)
          returns the call sequences of threads or subprograms
 org.eclipse.emf.common.util.EList getXSubcomponent()
          returns the subcomponents list of a given implementation null if no subcomponents clause does not exist and empty list if no subc.
 org.eclipse.emf.common.util.EList getXSubcomponent(Mode mode)
          returns the subcomponents list of a given mode in an implementation null if no subcomponents clause does not exist and empty list if no subc.
 Subcomponents getXSubcomponents()
          returns the subcomponents object of a given implementation null if no subcomponents clause
 Subcomponents getXSubcomponents(boolean create)
          get the subcomponents of a component impl create the object if it does not exist yet.
 boolean isDescendentOf(ComponentClassifier cc)
          Does this component implementation descend from the given classifier?
 void setComponentType(ComponentType ct)
          sets the component type of a given implementation
 void setConnections(Connections newConnections)
          phf: we want an add version for EList
 void setFlows(Flows newFlows)
          phf: we want an add version for EList
 void setModes(Modes newModes)
          phf: we want an add version for EList
 void setName(java.lang.String name)
          set the name.
 void setRefinesType(RefinesType newRefinesType)
          phf: we want an add version for EList
 
Methods inherited from class edu.cmu.sei.aadl.model.core.impl.ComponentClassifierImpl
checkAppliesToClassifier, getCategory, getName
 
Methods inherited from class edu.cmu.sei.aadl.model.core.impl.ClassifierImpl
addAnnexSubclause, getAllPropertyAssociation, getAnnexSubclause, getExtendedClassifierReference, getExtendedQualifiedName, getPackageName, getXAllExtend, getXAllExtendPlusSelf, getXExtend, hasExtends, setExtendedClassifierReference
 
Methods inherited from class edu.cmu.sei.aadl.model.core.impl.PropertyHolderImpl
acceptsProperty, addProperty, addPropertyValue, basicSetProperties, checkPropertyAssociation, createAccumulator, 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, toString
 
Methods inherited from class edu.cmu.sei.aadl.model.core.impl.AObjectImpl
addComment, eObjectForURIFragmentSegment, eURIFragmentSegment, getAadlSpec, getAdapter, getAObjectRoot, getChildren, getComment, getContainingClassifier, getContainingClassifierNameSpace, getContainingComponentImpl, getContainingComponentType, getContainingPropertyAssociationDefinitionConstant, getContainingSubcomponent, getLocationReference, getSecondReferencedObject, getSystemInstance, 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, 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.core.ComponentImpl
addSubcomponents
 
Methods inherited from interface edu.cmu.sei.aadl.model.core.ComponentClassifier
checkAppliesToClassifier, getCategory
 
Methods inherited from interface edu.cmu.sei.aadl.model.core.Classifier
addAnnexSubclause, getAllPropertyAssociation, getAnnexSubclause, getExtendedClassifierReference, getExtendedQualifiedName, getPackageName, getXAllExtend, getXAllExtendPlusSelf, getXExtend, hasExtends, setExtendedClassifierReference
 
Methods inherited from interface edu.cmu.sei.aadl.model.core.PropertyHolder
acceptsProperty, addProperty, addPropertyValue, checkPropertyAssociation, findPropertyAssociation, getProperties, getPropertyAssociation, getPropertyValue, 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
 
Methods inherited from interface edu.cmu.sei.aadl.model.core.AObject
addComment, getAadlSpec, getAObjectRoot, getChildren, getComment, getContainingClassifier, getContainingClassifierNameSpace, getContainingComponentImpl, getContainingComponentType, getContainingPropertyAssociationDefinitionConstant, getContainingSubcomponent, getLocationReference, getSecondReferencedObject, getSystemInstance, 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

connections

protected Connections connections
The cached value of the 'Connections' containment reference.

See Also:
getConnections()

modes

protected Modes modes
The cached value of the 'Modes' containment reference.

See Also:
getModes()

refinesType

protected RefinesType refinesType
The cached value of the 'Refines Type' containment reference.

See Also:
getRefinesType()

flows

protected Flows flows
The cached value of the 'Flows' containment reference.

See Also:
getFlows()
Constructor Detail

ComponentImplImpl

protected ComponentImplImpl()

Method Detail

eStaticClass

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

Overrides:
eStaticClass in class ComponentClassifierImpl

getConnections

public Connections getConnections()

Specified by:
getConnections in interface ComponentImpl
Returns:
the value of the 'Connections' containment reference.
See Also:
ComponentImpl.setConnections(Connections), CorePackage.getComponentImpl_Connections()

getConnections

public Connections getConnections(boolean create)
retrieve Connections object. Create it if it does not exist and create is true

Specified by:
getConnections in interface ComponentImpl
Parameters:
create - if true create the object if it does not exist
Returns:
Connections

basicSetConnections

public org.eclipse.emf.common.notify.NotificationChain basicSetConnections(Connections newConnections,
                                                                           org.eclipse.emf.common.notify.NotificationChain msgs)


setConnections

public void setConnections(Connections newConnections)
phf: we want an add version for EList

Specified by:
setConnections in interface ComponentImpl
Parameters:
newConnections - the new value of the 'Connections' containment reference.
See Also:
ComponentImpl.getConnections()

getModes

public Modes getModes()

Specified by:
getModes in interface ComponentImpl
Returns:
the value of the 'Modes' containment reference.
See Also:
ComponentImpl.setModes(Modes), CorePackage.getComponentImpl_Modes()

getModes

public Modes getModes(boolean create)
retrieve Modes object. Create it if it does not exist and create is true

Specified by:
getModes in interface ComponentImpl
Parameters:
create - if true create the object if it does not exist
Returns:
Modes

basicSetModes

public org.eclipse.emf.common.notify.NotificationChain basicSetModes(Modes newModes,
                                                                     org.eclipse.emf.common.notify.NotificationChain msgs)


setModes

public void setModes(Modes newModes)
phf: we want an add version for EList

Specified by:
setModes in interface ComponentImpl
Parameters:
newModes - the new value of the 'Modes' containment reference.
See Also:
ComponentImpl.getModes()

getRefinesType

public RefinesType getRefinesType()

Specified by:
getRefinesType in interface ComponentImpl
Returns:
the value of the 'Refines Type' containment reference.
See Also:
ComponentImpl.setRefinesType(RefinesType), CorePackage.getComponentImpl_RefinesType()

getRefinesType

public RefinesType getRefinesType(boolean create)
retrieve RefinesType object. Create it if it does not exist and create is true

Specified by:
getRefinesType in interface ComponentImpl
Parameters:
create - if true create the object if it does not exist
Returns:
RefinesType

basicSetRefinesType

public org.eclipse.emf.common.notify.NotificationChain basicSetRefinesType(RefinesType newRefinesType,
                                                                           org.eclipse.emf.common.notify.NotificationChain msgs)


setRefinesType

public void setRefinesType(RefinesType newRefinesType)
phf: we want an add version for EList

Specified by:
setRefinesType in interface ComponentImpl
Parameters:
newRefinesType - the new value of the 'Refines Type' containment reference.
See Also:
ComponentImpl.getRefinesType()

getFlows

public Flows getFlows()

Specified by:
getFlows in interface ComponentImpl
Returns:
the value of the 'Flows' containment reference.
See Also:
ComponentImpl.setFlows(Flows), CorePackage.getComponentImpl_Flows()

getFlows

public Flows getFlows(boolean create)
retrieve Flows object. Create it if it does not exist and create is true

Specified by:
getFlows in interface ComponentImpl
Parameters:
create - if true create the object if it does not exist
Returns:
Flows

basicSetFlows

public org.eclipse.emf.common.notify.NotificationChain basicSetFlows(Flows newFlows,
                                                                     org.eclipse.emf.common.notify.NotificationChain msgs)


setFlows

public void setFlows(Flows newFlows)
phf: we want an add version for EList

Specified by:
setFlows in interface ComponentImpl
Parameters:
newFlows - the new value of the 'Flows' containment reference.
See Also:
ComponentImpl.getFlows()

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 ClassifierImpl

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 ClassifierImpl

eSet

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

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

eUnset

public void eUnset(int featureID)

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

eIsSet

public boolean eIsSet(int featureID)

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

getTypeName

public java.lang.String getTypeName()
get type name from link or parsed name

Specified by:
getTypeName in interface ComponentImpl

getQualifiedTypeName

public java.lang.String getQualifiedTypeName()
get qualified type name

Specified by:
getQualifiedTypeName in interface ComponentImpl
Overrides:
getQualifiedTypeName in class ClassifierImpl

getImplName

public java.lang.String getImplName()
get implementation name without type name

Specified by:
getImplName in interface ComponentImpl

setName

public void setName(java.lang.String name)
set the name. Add the type name if the name only contains a name Strip any additional dot names and add old name as comment

Specified by:
setName in interface NamedElement
Overrides:
setName in class NamedElementImpl
Parameters:
name - implementation name
See Also:
NamedElement.getName()

getComponentType

public ComponentType getComponentType()
returns the component type of a given implementation

Specified by:
getComponentType in interface ComponentImpl
Returns:
component type

getXSubcomponents

public Subcomponents getXSubcomponents()
returns the subcomponents object of a given implementation null if no subcomponents clause

Specified by:
getXSubcomponents in interface ComponentImpl

getXSubcomponents

public Subcomponents getXSubcomponents(boolean create)
get the subcomponents of a component impl create the object if it does not exist yet.

Specified by:
getXSubcomponents in interface ComponentImpl
Parameters:
create - boolean create object if it does not exist
Returns:
Object of subclass of subcomponent

createXSubcomponents

public Subcomponents createXSubcomponents()
create a Subcomponents object of the appropriate category

Specified by:
createXSubcomponents in interface ComponentImpl
Returns:
Subcomponents

getXSubcomponent

public org.eclipse.emf.common.util.EList getXSubcomponent()
returns the subcomponents list of a given implementation null if no subcomponents clause does not exist and empty list if no subc.

Specified by:
getXSubcomponent in interface ComponentImpl
Returns:
Elist of subcomponents, or null if no such subclause

getXSubcomponent

public org.eclipse.emf.common.util.EList getXSubcomponent(Mode mode)
returns the subcomponents list of a given mode in an implementation null if no subcomponents clause does not exist and empty list if no subc.

Specified by:
getXSubcomponent in interface ComponentImpl
Returns:
EList of Subcomponents

getXAllSubcomponent

public org.eclipse.emf.common.util.EList getXAllSubcomponent()
get list of all subcomponents of a component impl, including ancestor features In case of refined connections the refined connection is returned in the list.

Specified by:
getXAllSubcomponent in interface ComponentImpl
Returns:
List of subcomponents

getXAllSubcomponent

public org.eclipse.emf.common.util.EList getXAllSubcomponent(Mode mode)
get list of all subcomponents in the specified mode of a component impl, including ancestor features In case of refined connections the refined connection is returned in the list.

Specified by:
getXAllSubcomponent in interface ComponentImpl
Returns:
List of subcomponents

getConnection

public org.eclipse.emf.common.util.EList getConnection()
returns the connection objects of a given implementation

Specified by:
getConnection in interface ComponentImpl
Returns:
Elist of connection objects, or empty list if no such subclause

getConnection

public org.eclipse.emf.common.util.EList getConnection(Mode mode)
returns the connection objects of a given implementation for a given mode

Specified by:
getConnection in interface ComponentImpl
Parameters:
mode - mode for which connections are retrieved.
Returns:
Elist of connection objects, or empty list if no such subclause

getAllConnection

public org.eclipse.emf.common.util.EList getAllConnection()
get list of all connections of a component impl, including ancestor features In case of refined connections the refined connection is returned in the list.

Specified by:
getAllConnection in interface ComponentImpl
Returns:
List of connections

getAllConnection

public org.eclipse.emf.common.util.EList getAllConnection(Mode mode)
get list of all connections of a component impl in a given mode, including ancestor features In case of refined connections the refined connection is returned in the list.

Specified by:
getAllConnection in interface ComponentImpl
Parameters:
mode - mode for which connections are to be retrieved
Returns:
List of connections

getModeAndModeTransition

public org.eclipse.emf.common.util.EList getModeAndModeTransition()
returns the list of mode & mode transition objects of a given implementation

Specified by:
getModeAndModeTransition in interface ComponentImpl
Returns:
Elist of mode and mode transition objects, or null if no such subclause

getMode

public org.eclipse.emf.common.util.EList getMode()
returns the list of mode objects of a given implementation

Specified by:
getMode in interface ComponentImpl
Returns:
Elist of mode objects, or null if no such subclause

getModeTransition

public org.eclipse.emf.common.util.EList getModeTransition()
returns the list of mode transition objects of a given implementation

Specified by:
getModeTransition in interface ComponentImpl
Returns:
Elist of mode transition objects, or null if no such subclause

getAllModeAndModeTransition

public org.eclipse.emf.common.util.EList getAllModeAndModeTransition()
get list of all mode and mode transition objects of a component impl, including ancestor modes In case of refined modes the refined mode is returned in the list.

Specified by:
getAllModeAndModeTransition in interface ComponentImpl
Returns:
List of mode objects

getAllMode

public org.eclipse.emf.common.util.EList getAllMode()
get list of all mode objects of a component impl, including ancestor modes In case of refined modes the refined mode is returned in the list.

Specified by:
getAllMode in interface ComponentImpl
Returns:
List of mode objects

getAllModeTransition

public org.eclipse.emf.common.util.EList getAllModeTransition()
get list of all mode transition objects of a component impl, including ancestor modes

Specified by:
getAllModeTransition in interface ComponentImpl
Returns:
List of mode objects

getXCallSequence

public org.eclipse.emf.common.util.EList getXCallSequence()
returns the call sequences of threads or subprograms

Specified by:
getXCallSequence in interface ComponentImpl
Returns:
Elist of connections, or null if no such subclause

getXAllCallSequence

public org.eclipse.emf.common.util.EList getXAllCallSequence()
returns the call sequences of threads or subprograms including inherited call sequences

Specified by:
getXAllCallSequence in interface ComponentImpl
Returns:
Elist of connections, or null if no such subclause

getXCallSequences

public CallSequences getXCallSequences()
returns the call sequences of threads or subprograms

Specified by:
getXCallSequences in interface ComponentImpl
Returns:
CallSequences

getXCallSequences

public CallSequences getXCallSequences(boolean create)
returns the call sequences of threads or subprograms

Specified by:
getXCallSequences in interface ComponentImpl
Parameters:
create - if true create object if it does not exist
Returns:
CallSequences

getRefinedFeature

public org.eclipse.emf.common.util.EList getRefinedFeature()
returns the list of refined features

Specified by:
getRefinedFeature in interface ComponentImpl
Returns:
Elist of Feature objects, or null if no such subclause

getXAllFeature

public org.eclipse.emf.common.util.EList getXAllFeature()
get list of all features of a component impl, including ancestor features These are the features of its type augmented by the refines type declarations In case of refined features the refined features is returned in the list.

Specified by:
getXAllFeature in interface Classifier
Specified by:
getXAllFeature in interface ComponentImpl
Overrides:
getXAllFeature in class ComponentClassifierImpl
Returns:
List of Feature objects

getXAllAbstractPort

public java.util.Collection getXAllAbstractPort()
get list of all abstract ports (ports, port groups, parameters )of a component impl, including those of ancestors These are the abstract ports of its classifier In case of refined abstract ports the refined abstract ports is returned in the list.

Specified by:
getXAllAbstractPort in interface ComponentImpl
Returns:
List of abstract ports

setComponentType

public void setComponentType(ComponentType ct)
sets the component type of a given implementation

Specified by:
setComponentType in interface ComponentImpl

getQualifiedName

public java.lang.String getQualifiedName()
get qualified component impl name. Always a String

Specified by:
getQualifiedName in interface Classifier
Specified by:
getQualifiedName in interface ComponentImpl
Overrides:
getQualifiedName in class ClassifierImpl

getAllFlowImpl

public FlowImpl getAllFlowImpl(FlowSpec flowSpec,
                               Mode mode)
Description copied from interface: ComponentImpl
get the flow implementation for a given flow specification in the given mode. If the component is modal then the mode should not be null. Otherwise it should be null.

Specified by:
getAllFlowImpl in interface ComponentImpl
Returns:
FlowImpl

getAllFlowImpl

public java.util.Map getAllFlowImpl(FlowSpec flowSpec)
Description copied from interface: ComponentImpl
get the flow implementations for a given specificiation for all the modes.

Specified by:
getAllFlowImpl in interface ComponentImpl
Returns:
Map. containes (key,value) pairs with (Mode, FlowImpl). If component is non modal then the key is null

getFlowSequence

public org.eclipse.emf.common.util.EList getFlowSequence()
get the flow sequence objects list of a component implementation

Specified by:
getFlowSequence in interface ComponentImpl
Returns:
List of FlowSequence objects

getFlowSequence

public org.eclipse.emf.common.util.EList getFlowSequence(Mode mode)
returns the flow sequence objects of a given implementation for a given mode

Specified by:
getFlowSequence in interface ComponentImpl
Parameters:
mode - mode for which flow sequences are retrieved.
Returns:
Elist of flow sequence objects, or empty list if no such subclause

getAllFlowSequence

public org.eclipse.emf.common.util.EList getAllFlowSequence()
get list of all flow sequence objects of a component impl, including ancestor flow sequences In case of refined flow sequences the refined flow sequences is returned in the list.

Specified by:
getAllFlowSequence in interface ComponentImpl
Returns:
List of flow sequences

getAllFlowSequence

public org.eclipse.emf.common.util.EList getAllFlowSequence(Mode mode)
get list of all flow sequence objects of a component impl, including ancestor flow sequences that apply in the specified mode. In case of refined flow sequences the refined flow sequences is returned in the list.

Specified by:
getAllFlowSequence in interface ComponentImpl
Parameters:
mode - mode to be selected
Returns:
List of flow sequences

findRefinedFeature

public Feature findRefinedFeature(java.lang.String name)
Find a refined feature in this component implementation and its super implementations.

Specified by:
findRefinedFeature in interface ComponentImpl
Parameters:
name - The name of the feature to find
Returns:
The refined feature object if found, null otherwise

findMode

public Mode findMode(java.lang.String name)
Description copied from interface: ComponentImpl
Find a mode by name in this component implementation and its superimplementations.

Specified by:
findMode in interface ComponentImpl
Parameters:
name - the name of the mode to find.
Returns:
the mode object if found, null otherwise.

findConnection

public Connection findConnection(java.lang.String name)
Description copied from interface: ComponentImpl
Find a connection by name in this component implementation and its superimplementations.

Specified by:
findConnection in interface ComponentImpl
Parameters:
name - the name of the connection to find.
Returns:
the connection object if found, null otherwise.

findSubcomponent

public Subcomponent findSubcomponent(java.lang.String name)
Description copied from interface: ComponentImpl
Find a subcomponent by name in this component implementation and its superimplementations.

Specified by:
findSubcomponent in interface ComponentImpl
Parameters:
name - the name of the subcomponent to find.
Returns:
the subcomponent object if found, null otherwise.

findFlowSequence

public org.eclipse.emf.common.util.EList findFlowSequence(java.lang.String name)
Description copied from interface: ComponentImpl
Find all flow sequences by name in implementation and its superimplementations. The reason we may find more than one is that we may have modal flow sequence declarations.

Specified by:
findFlowSequence in interface ComponentImpl
Parameters:
name - the name of the flow sequence.
Returns:
EList of FlowSequence

findModeTransition

public ModeTransition findModeTransition(java.lang.String srcName,
                                         java.lang.String dstName)
Description copied from interface: ComponentImpl
Find mode transition by src and dst name in an component implementation and its superimplementations.

Specified by:
findModeTransition in interface ComponentImpl
Parameters:
srcName - the name of the source mode
dstName - the name of the destination mode
Returns:
the mode transition object if found, null if not found

findSubprogram

public SubprogramSubcomponent findSubprogram(java.lang.String name)
Description copied from interface: ComponentImpl
Find subprogram in calls section of a thread or subprogram implementaton. Go through all call sequences and return the first match.

Specified by:
findSubprogram in interface ComponentImpl
Parameters:
name - the name of the subprogram subcomponent.
Returns:
the subprogram subcomponent object, null if not found

getPropertyValueInternal

public final void getPropertyValueInternal(PropertyDefinition property,
                                           ModalPropertyValueAccumulator pva,
                                           boolean fromInstanceSlaveCall)
                                    throws InvalidModelException
Description copied from interface: PropertyHolder
Helper routine for computing the value of the property. As the name suggests, this method is not intended for use by clients of the model, but is used during the property lookup process. It should really be a protected method in PropertyHolderImpl, but because of the way that EMF deals with multiple inheritance, not all implementations of PropertyHolder actually extend from PropertyHolderImpl.

In particular, this method does not create a new property value accumulator—it uses the one provided—and it does not look up the default value of the property.

Specified by:
getPropertyValueInternal in interface PropertyHolder
Overrides:
getPropertyValueInternal in class PropertyHolderImpl
Parameters:
property - The property whose value is to be retreived. It must be the case that this property is accepted by the property holder, i.e., PropertyHolder.acceptsProperty(PropertyDefinition) must return true.
pva - The working property value accumulator to add results to.
fromInstanceSlaveCall - true if the call is performing a lookup on the declarative model on behalf of an instance model object. When true the lookup algorithm ignores the "inherits" attribute on property definitions when it would mean that the lookup should defer to the containing component implemenation. Also disables the interpretation of contained property associations in the declarative model because they have already been applied to the instance model at this point. The expectation is that the instance model lookup itself is not ignoring the inherits attribute, and thus any inherited property values will still be found correctly. Interpreting the inherits attribute during the declarative model search is redundant and causes problems later on. This flag does not affect lookup for feature declarations because in that case the inherit flag defers to the component type or port group type.
Throws:
InvalidModelException - Thrown if the property value cannot be retreived because the model is incomplete or otherwise invalid.

isDescendentOf

public final boolean isDescendentOf(ComponentClassifier cc)
Does this component implementation descend from the given classifier? A component implementation descends from another component implementation if they are the same implementation, it extends the other implementation, or it extends a descendent of the other implementation. A component implementation descends from a component type if the implementation's component type descends from the type.

Specified by:
isDescendentOf in interface ComponentClassifier
Overrides:
isDescendentOf in class ComponentClassifierImpl
Returns:
Whether this classifier descends from the given classifier.

getIngoingConnection

public org.eclipse.emf.common.util.EList getIngoingConnection(Feature feature)
get ingoing connections to subcomponents from a specified feature of the component impl

Specified by:
getIngoingConnection in interface ComponentImpl
Parameters:
feature - component impl feature that is the source of a connection
Returns:
EList connections with feature as source

getOutcomingConnection

public org.eclipse.emf.common.util.EList getOutcomingConnection(Feature feature)
get outcoming connections from subcomponents to a specified feature of the component impl

Specified by:
getOutcomingConnection in interface ComponentImpl
Parameters:
feature - component impl feature that is the source of a connection
Returns:
EList connections with feature as source

addSubcomponent

public void addSubcomponent(Subcomponent sc)
add a subcomponent to a component implementation

Specified by:
addSubcomponent in interface ComponentImpl
Parameters:
sc - Subcomponent

addConnection

public void addConnection(Connection conn)
add connection to component impl

Specified by:
addConnection in interface ComponentImpl
Parameters:
conn -

getReferencedObject

public AObject getReferencedObject()
Description copied from class: AObjectImpl
get the first object being referenced by this object. Implementations are provided by different classes Typically it is used to allow navigation to classifiers or to the source of a connection

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