edu.cmu.sei.aadl.model.core
Interface ComponentImpl

All Superinterfaces:
AObject, Classifier, ComponentClassifier, org.eclipse.emf.ecore.EObject, FeatureContext, org.eclipse.core.runtime.IAdaptable, NamedElement, org.eclipse.emf.common.notify.Notifier, PropertyHolder
All Known Subinterfaces:
BusImpl, DataImpl, DeviceImpl, MemoryImpl, ProcessImpl, ProcessorImpl, SubprogramImpl, SystemImpl, ThreadGroupImpl, ThreadImpl
All Known Implementing Classes:
BusImplImpl, ComponentImplImpl, DataImplImpl, DeviceImplImpl, MemoryImplImpl, ProcessImplImpl, ProcessorImplImpl, SubprogramImplImpl, SystemImplImpl, ThreadGroupImplImpl, ThreadImplImpl

public interface ComponentImpl
extends ComponentClassifier, FeatureContext

A representation of the model object 'Component Impl'.

The following features are supported:

See Also:
CorePackage.getComponentImpl()

Field Summary
static java.lang.String copyright
           
 
Method Summary
 void addConnection(Connection conn)
          add connection to component impl
 void addSubcomponent(Subcomponent sc)
          add a subcomponent to a component implementation
 Subcomponents addSubcomponents()
          add a subcomponents object to a component implementation
 Subcomponents createXSubcomponents()
          create a Subcomponents object of the appropriate category
 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 connection objects 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 specs of a component type, including ancestor features In case of refined flow specs the refined flow spec 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()
          Returns all the mode objects of a given implementation, including ancestor.
 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()
          Returns all the mode transition objects of a given implementation, including ancestor.
 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()
          Returns the value of the 'Connections' containment reference
 Connections getConnections(boolean create)
          retrieve Connections object.
 Flows getFlows()
          Returns the value of the 'Flows' containment reference
 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 mode objects of a given implementation.
 org.eclipse.emf.common.util.EList getModeAndModeTransition()
          returns the mode and mode transition objects of a given implementation
 Modes getModes()
          Returns the value of the 'Modes' containment reference
 Modes getModes(boolean create)
          retrieve Modes object.
 org.eclipse.emf.common.util.EList getModeTransition()
          Returns the mode transition objects of a given implementation.
 org.eclipse.emf.common.util.EList getOutcomingConnection(Feature feature)
          get outcomng connections from subcomponents to a specified feature of the component impl
 java.lang.String getQualifiedName()
          get qualified component impl name.
 java.lang.String getQualifiedTypeName()
          get qualified type name from link or parsed name
 org.eclipse.emf.common.util.EList getRefinedFeature()
          returns the refined feature objects of a given implementation
 RefinesType getRefinesType()
          Returns the value of the 'Refines Type' containment reference
 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 tis 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 object 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 object of a given implementation
 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.
 void setComponentType(ComponentType ct)
          sets the component type reference for the component implementation
 void setConnections(Connections value)
          Sets the value of the 'Connections' containment reference
 void setFlows(Flows value)
          Sets the value of the 'Flows' containment reference
 void setModes(Modes value)
          Sets the value of the 'Modes' containment reference
 void setRefinesType(RefinesType value)
          Sets the value of the 'Refines Type' containment reference
 
Methods inherited from interface edu.cmu.sei.aadl.model.core.ComponentClassifier
checkAppliesToClassifier, getCategory, isDescendentOf
 
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, 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, getChildren, getComment, getContainingClassifier, getContainingClassifierNameSpace, getContainingComponentImpl, getContainingComponentType, getContainingPropertyAssociationDefinitionConstant, getContainingSubcomponent, getLocationReference, getReferencedObject, 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
 

Field Detail

copyright

static final java.lang.String copyright

See Also:
Constant Field Values
Method Detail

getConnections

Connections getConnections()
Returns the value of the 'Connections' containment reference.

If the meaning of the 'Connections' containment reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Connections' containment reference.
See Also:
setConnections(Connections), CorePackage.getComponentImpl_Connections()

getConnections

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

Parameters:
create - if true create the object if it does not exist
Returns:
Connections

setConnections

void setConnections(Connections value)
Sets the value of the 'Connections' containment reference.

Parameters:
value - the new value of the 'Connections' containment reference.
See Also:
getConnections()

getModes

Modes getModes()
Returns the value of the 'Modes' containment reference.

If the meaning of the 'Modes' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Modes' containment reference.
See Also:
setModes(Modes), CorePackage.getComponentImpl_Modes()

getModes

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

Parameters:
create - if true create the object if it does not exist
Returns:
Modes

setModes

void setModes(Modes value)
Sets the value of the 'Modes' containment reference.

Parameters:
value - the new value of the 'Modes' containment reference.
See Also:
getModes()

getRefinesType

RefinesType getRefinesType()
Returns the value of the 'Refines Type' containment reference.

If the meaning of the 'Refines Type' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Refines Type' containment reference.
See Also:
setRefinesType(RefinesType), CorePackage.getComponentImpl_RefinesType()

getRefinesType

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

Parameters:
create - if true create the object if it does not exist
Returns:
RefinesType

setRefinesType

void setRefinesType(RefinesType value)
Sets the value of the 'Refines Type' containment reference.

Parameters:
value - the new value of the 'Refines Type' containment reference.
See Also:
getRefinesType()

getFlows

Flows getFlows()
Returns the value of the 'Flows' containment reference.

If the meaning of the 'Flows' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Flows' containment reference.
See Also:
setFlows(Flows), CorePackage.getComponentImpl_Flows()

getFlows

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

Parameters:
create - if true create the object if it does not exist
Returns:
Flows

setFlows

void setFlows(Flows value)
Sets the value of the 'Flows' containment reference.

Parameters:
value - the new value of the 'Flows' containment reference.
See Also:
getFlows()

setComponentType

void setComponentType(ComponentType ct)
sets the component type reference for the component implementation

Parameters:
ct -

getXSubcomponent

org.eclipse.emf.common.util.EList getXSubcomponent()
returns the subcomponents object of a given implementation

Returns:
Elist of subcomponents, or null if no such subclause

getXSubcomponent

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.

Returns:
EList of Subcomponents

getXAllSubcomponent

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.

Returns:
List of connections

getXAllSubcomponent

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.

Returns:
List of subcomponents

getXAllFeature

org.eclipse.emf.common.util.EList getXAllFeature()
get list of all features of a component impl, including ancestor features These are the features of tis 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
Returns:
List of features

getXAllAbstractPort

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.

Returns:
List of abstract ports

getXSubcomponents

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


getXSubcomponents

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

Parameters:
create - boolean create object if it does not exist
Returns:
Object of subclass of subcomponent

createXSubcomponents

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

Returns:
Subcomponents

getAllConnection

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

Returns:
List of connection objects

getAllConnection

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.

Parameters:
mode - mode for which connections are to be retrieved
Returns:
List of connections

getConnection

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

Returns:
Elist of connection objects, or empty list if no such subclause

getConnection

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

Parameters:
mode - mode for which connections are retrieved.
Returns:
Elist of connection objects, or empty list if no such subclause

getModeAndModeTransition

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

Returns:
Elist of modes, or null if no such subclause

getMode

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

Returns:
Elist of mode objects, or null if no such subclause

getModeTransition

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

Returns:
Elist of mode transition objects, or null if no such subclause

getAllModeAndModeTransition

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.

Returns:
List of mode objects

getAllMode

org.eclipse.emf.common.util.EList getAllMode()
Returns all the mode objects of a given implementation, including ancestor.

Returns:
Elist of all mode transition objects, or null if no such subclause

getAllModeTransition

org.eclipse.emf.common.util.EList getAllModeTransition()
Returns all the mode transition objects of a given implementation, including ancestor.

Returns:
Elist of all mode transition objects, or null if no such subclause

getRefinedFeature

org.eclipse.emf.common.util.EList getRefinedFeature()
returns the refined feature objects of a given implementation

Returns:
Elist of refinements, or null if no such subclause

getQualifiedName

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

Specified by:
getQualifiedName in interface Classifier

getTypeName

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


getQualifiedTypeName

java.lang.String getQualifiedTypeName()
get qualified type name from link or parsed name


getImplName

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


getXCallSequence

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

Returns:
Elist of connections, or null if no such subclause

getXAllCallSequence

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

Returns:
Elist of connections, or null if no such subclause

getXCallSequences

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

Returns:
CallSequences

getXCallSequences

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

Parameters:
create - if true create object if it does not exist
Returns:
CallSequences

getAllFlowImpl

FlowImpl getAllFlowImpl(FlowSpec flowSpec,
                        Mode mode)
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.

Returns:
FlowImpl

getAllFlowImpl

java.util.Map getAllFlowImpl(FlowSpec flowSpec)
get the flow implementations for a given specificiation for all the modes.

Returns:
Map. containes (key,value) pairs with (Mode, FlowImpl). If component is non modal then the key is null

getFlowSequence

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

Returns:
List of FlowSequence

getFlowSequence

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

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

getAllFlowSequence

org.eclipse.emf.common.util.EList getAllFlowSequence()
get list of all flow specs of a component type, including ancestor features In case of refined flow specs the refined flow spec is returned in the list.

Returns:
List of flow specs

getAllFlowSequence

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.

Parameters:
mode - mode to be selected
Returns:
List of flow sequences

findRefinedFeature

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

Parameters:
name - The name of the feature to find
Returns:
The refined feature object if found, null otherwise

findMode

Mode findMode(java.lang.String name)
Find a mode by name in this component implementation and its superimplementations.

Parameters:
name - the name of the mode to find.
Returns:
the mode object if found, null otherwise.

findSubcomponent

Subcomponent findSubcomponent(java.lang.String name)
Find a subcomponent by name in this component implementation and its superimplementations.

Parameters:
name - the name of the subcomponent to find.
Returns:
the subcomponent object if found, null otherwise.

findConnection

Connection findConnection(java.lang.String name)
Find a connection by name in this component implementation and its superimplementations.

Parameters:
name - the name of the connection to find.
Returns:
the connection object if found, null otherwise.

findFlowSequence

org.eclipse.emf.common.util.EList findFlowSequence(java.lang.String name)
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.

Parameters:
name - the name of the flow sequence.
Returns:
EList of FlowSequence

findModeTransition

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.

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

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

Parameters:
name - the name of the subprogram subcomponent.
Returns:
the subprogram subcomponent object, null if not found

getComponentType

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

Returns:
component type

getIngoingConnection

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

Parameters:
feature - component impl feature that is the source of a connection
Returns:
EList connections with feature as source

getOutcomingConnection

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

Parameters:
feature - component impl feature that is the source of a connection
Returns:
EList connections with feature as source

addSubcomponent

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

Parameters:
sc - Subcomponent

addSubcomponents

Subcomponents addSubcomponents()
add a subcomponents object to a component implementation


addConnection

void addConnection(Connection conn)
add connection to component impl

Parameters:
conn -