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

All Superinterfaces:
AObject, org.eclipse.emf.ecore.EObject, FeatureContext, org.eclipse.core.runtime.IAdaptable, ModeMember, NamedElement, org.eclipse.emf.common.notify.Notifier, PropertyHolder, ReferenceElement
All Known Subinterfaces:
BusSubcomponent, DataSubcomponent, DeviceSubcomponent, MemorySubcomponent, ProcessorSubcomponent, ProcessSubcomponent, SubprogramSubcomponent, SystemSubcomponent, ThreadGroupSubcomponent, ThreadSubcomponent
All Known Implementing Classes:
BusSubcomponentImpl, DataSubcomponentImpl, DeviceSubcomponentImpl, MemorySubcomponentImpl, ProcessorSubcomponentImpl, ProcessSubcomponentImpl, SubcomponentImpl, SubprogramSubcomponentImpl, SystemSubcomponentImpl, ThreadGroupSubcomponentImpl, ThreadSubcomponentImpl

public interface Subcomponent
extends ModeMember, FeatureContext, ReferenceElement

A representation of the model object 'Subcomponent'.

See Also:
CorePackage.getSubcomponent()

Field Summary
static java.lang.String copyright
           
 
Method Summary
 org.eclipse.emf.common.util.EList getAllSubcomponentRefinements()
          Return the subcomponent and any of the subcomponents it refines
 ComponentCategory getCategory()
          returns the ComponentCategory literal for the given subcomponent
 ClassifierReference getClassifierReference()
          get extends reference names from ClassifierReference
 ComponentImpl getComponentImpl()
          returns the component implemenation object of a given subcomponent
 ComponentType getComponentType()
          returns the component type object of a given subcomponent It is retrieved by direct link.
 java.lang.String getQualifiedClassifierName()
          get qualified subcomponent classifier name.
 RefinedReference getRefinedReference()
          get reference names from flowReference
 ComponentType getSubcomponentType()
          returns the component type object for the subcomponent
 java.util.Collection getXAllAbstractPort()
          get list of all abstract ports (ports, port groups, parameters )of a subcomponent, 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.
 ComponentClassifier getXAllClassifier()
          Returns the component classifier object for the subcomponent.
 org.eclipse.emf.common.util.EList getXAllFeature()
          get list of all features of a subcomponent, including ancestor features These are the features of its classifier In case of refined features the refined features is returned in the list.
 ComponentClassifier getXClassifier()
          returns the component classifier object for the subcomponent
 Subcomponent getXRefines()
          returns component classifier being refined
 boolean isRefined()
          Returns the value of the 'Refined' attribute
 void setClassifierReference(ClassifierReference cr)
          set extends reference names from ClassifierReference
 void setComponentClassifier(ComponentClassifier ct)
          sets the component type object reference of a given subcomponent
 void setRefined(boolean value)
          Sets the value of the 'Refined' attribute
 void setRefinedReference(RefinedReference fr)
          set sets reference names from refined reference
 
Methods inherited from interface edu.cmu.sei.aadl.model.core.ModeMember
addInModes, addModeName, getAllInModes, getInModes, getModeName, isAllInMode, isInMode, isNoMode, setNoMode
 
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

isRefined

boolean isRefined()
Returns the value of the 'Refined' attribute.

If the meaning of the 'Refined' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Refined' attribute.
See Also:
setRefined(boolean)

setRefined

void setRefined(boolean value)
Sets the value of the 'Refined' attribute.

Parameters:
value - the new value of the 'Refined' attribute.
See Also:
isRefined()

getSubcomponentType

ComponentType getSubcomponentType()
returns the component type object for the subcomponent

Returns:
component type object

getXClassifier

ComponentClassifier getXClassifier()
returns the component classifier object for the subcomponent

Returns:
component impl or type object

getXAllClassifier

ComponentClassifier getXAllClassifier()
Returns the component classifier object for the subcomponent. Not really needed for Subcompnent because we don't look for the classifier in the subcomponents being refined if it is missing: if it is missing here, then it will be missing in refined subcomponents. But we keep this method for consistency with the naming conventions.

Returns:
component impl or type object

getComponentImpl

ComponentImpl getComponentImpl()
returns the component implemenation object of a given subcomponent

Returns:
Component implementation

getComponentType

ComponentType getComponentType()
returns the component type object of a given subcomponent It is retrieved by direct link. This link is looked up only if the classifier link to the implementation is not set. This link may not be filled in if the classifier is complete

Returns:
Component type

setClassifierReference

void setClassifierReference(ClassifierReference cr)
set extends reference names from ClassifierReference


getClassifierReference

ClassifierReference getClassifierReference()
get extends reference names from ClassifierReference


getQualifiedClassifierName

java.lang.String getQualifiedClassifierName()
get qualified subcomponent classifier name. Always a String


setComponentClassifier

void setComponentClassifier(ComponentClassifier ct)
sets the component type object reference of a given subcomponent

Parameters:
ct - Component type

setRefinedReference

void setRefinedReference(RefinedReference fr)
set sets reference names from refined reference


getRefinedReference

RefinedReference getRefinedReference()
get reference names from flowReference


getXRefines

Subcomponent getXRefines()
returns component classifier being refined

Returns:
component classifier

getAllSubcomponentRefinements

org.eclipse.emf.common.util.EList getAllSubcomponentRefinements()
Return the subcomponent and any of the subcomponents it refines

Returns:
EList of subcomponent

getXAllFeature

org.eclipse.emf.common.util.EList getXAllFeature()
get list of all features of a subcomponent, including ancestor features These are the features of its classifier In case of refined features the refined features is returned in the list.

Returns:
List of features

getXAllAbstractPort

java.util.Collection getXAllAbstractPort()
get list of all abstract ports (ports, port groups, parameters )of a subcomponent, 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

getCategory

ComponentCategory getCategory()
returns the ComponentCategory literal for the given subcomponent

Returns:
ComponentCategory