edu.cmu.sei.aadl.aadl2
Interface Subcomponent

All Superinterfaces:
AObject, ArrayableElement, ClassifierFeature, Context, Element, EndToEndFlowElement, org.eclipse.emf.ecore.EObject, FlowElement, org.eclipse.core.runtime.IAdaptable, ModalElement, NamedElement, org.eclipse.emf.common.notify.Notifier, RefinableElement, StructuralFeature
All Known Subinterfaces:
AbstractSubcomponent, BusSubcomponent, DataSubcomponent, DeviceSubcomponent, MemorySubcomponent, ProcessorSubcomponent, ProcessSubcomponent, SubprogramGroupSubcomponent, SubprogramSubcomponent, SystemSubcomponent, ThreadGroupSubcomponent, ThreadSubcomponent, VirtualBusSubcomponent, VirtualProcessorSubcomponent
All Known Implementing Classes:
AbstractSubcomponentImpl, BusSubcomponentImpl, DataSubcomponentImpl, DeviceSubcomponentImpl, MemorySubcomponentImpl, ProcessorSubcomponentImpl, ProcessSubcomponentImpl, SubcomponentImpl, SubprogramGroupSubcomponentImpl, SubprogramSubcomponentImpl, SystemSubcomponentImpl, ThreadGroupSubcomponentImpl, ThreadSubcomponentImpl, VirtualBusSubcomponentImpl, VirtualProcessorSubcomponentImpl

public interface Subcomponent
extends StructuralFeature, ModalElement, Context, FlowElement, ArrayableElement

A representation of the model object 'Subcomponent'.

The following features are supported:

See Also:
Aadl2Package.getSubcomponent()

Method Summary
 ComponentImplementationReference createImplementationReference()
          Creates a new ComponentImplementationReference and appends it to the 'Implementation Reference' containment reference list
 ModeBinding createModeBinding()
          Creates a new ModeBinding and appends it to the 'Mode Binding' containment reference list
 PrototypeBinding createOwnedPrototypeBinding(org.eclipse.emf.ecore.EClass eClass)
          Creates a new PrototypeBinding and appends it to the 'Owned Prototype Binding' containment reference list
 AbstractClassifier getAbstractClassifier()
          Returns the value of the 'Abstract Classifier' reference.
 ComponentClassifier getAllClassifier()
           
 org.eclipse.emf.common.util.EList<Feature> getAllFeatures()
          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 feature is returned in the list.
 org.eclipse.emf.common.util.EList<Subcomponent> getAllSubcomponentRefinements()
          Return the subcomponent and any of the subcomponents it refines
 ComponentCategory getCategory()
          Returns the category ("abstract", "bus", "data", "device", etc.) for the subcomponent.
 ComponentClassifier getClassifier()
          Returns the value of the 'Classifier' reference.
 ComponentImplementation getComponentImplementation()
          returns the component implementation object of a given subcomponent
 ComponentType getComponentType()
          returns the component type object of a given subcomponent It is retrieved by direct link.
 org.eclipse.emf.common.util.EList<ComponentImplementationReference> getImplementationReferences()
          Returns the value of the 'Implementation Reference' containment reference list.
 org.eclipse.emf.common.util.EList<ModeBinding> getModeBindings()
          Returns the value of the 'Mode Binding' containment reference list.
 org.eclipse.emf.common.util.EList<PrototypeBinding> getOwnedPrototypeBindings()
          Returns the value of the 'Owned Prototype Binding' containment reference list.
 ComponentPrototype getPrototype()
          Returns the value of the 'Prototype' reference
 Subcomponent getRefined()
          Returns the value of the 'Refined' reference.
 boolean isAllModes()
          Returns the value of the 'All Modes' attribute
 PrototypeBinding lookupPrototypeBinding(Prototype proto)
           
 void setAbstractClassifier(AbstractClassifier value)
          Sets the value of the 'Abstract Classifier' reference
 void setAllModes(boolean value)
          Sets the value of the 'All Modes' attribute
 void setPrototype(ComponentPrototype value)
          Sets the value of the 'Prototype' reference
 void setRefined(Subcomponent value)
          Sets the value of the 'Refined' reference
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.RefinableElement
getRefinedElement, getRefinementContext
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.ClassifierFeature
getFeaturingClassifiers
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.ModalElement
getAllInModes, getInModes, getModesAndTransitions
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.ArrayableElement
createArraySpecification, getArraySpecification, setArraySpecification
 

Method Detail

getClassifier

ComponentClassifier getClassifier()
Returns the value of the 'Classifier' reference. This feature is a derived union.

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

Returns:
the value of the 'Classifier' reference.
See Also:
Aadl2Package.getSubcomponent_Classifier()

getOwnedPrototypeBindings

org.eclipse.emf.common.util.EList<PrototypeBinding> getOwnedPrototypeBindings()
Returns the value of the 'Owned Prototype Binding' containment reference list. The list contents are of type PrototypeBinding.

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

Returns:
the value of the 'Owned Prototype Binding' containment reference list.
See Also:
Aadl2Package.getSubcomponent_OwnedPrototypeBinding()

createOwnedPrototypeBinding

PrototypeBinding createOwnedPrototypeBinding(org.eclipse.emf.ecore.EClass eClass)
Creates a new PrototypeBinding and appends it to the 'Owned Prototype Binding' containment reference list.

Parameters:
eClass - The Ecore class of the PrototypeBinding to create.
Returns:
The new PrototypeBinding.
See Also:
getOwnedPrototypeBindings()

getPrototype

ComponentPrototype getPrototype()
Returns the value of the 'Prototype' reference.

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

Returns:
the value of the 'Prototype' reference.
See Also:
setPrototype(ComponentPrototype), Aadl2Package.getSubcomponent_Prototype()

setPrototype

void setPrototype(ComponentPrototype value)
Sets the value of the 'Prototype' reference.

Parameters:
value - the new value of the 'Prototype' reference.
See Also:
getPrototype()

getModeBindings

org.eclipse.emf.common.util.EList<ModeBinding> getModeBindings()
Returns the value of the 'Mode Binding' containment reference list. The list contents are of type ModeBinding.

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

Returns:
the value of the 'Mode Binding' containment reference list.
See Also:
Aadl2Package.getSubcomponent_ModeBinding()

createModeBinding

ModeBinding createModeBinding()
Creates a new ModeBinding and appends it to the 'Mode Binding' containment reference list.

Returns:
The new ModeBinding.
See Also:
getModeBindings()

isAllModes

boolean isAllModes()
Returns the value of the 'All Modes' attribute.

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

Returns:
the value of the 'All Modes' attribute.
See Also:
setAllModes(boolean), Aadl2Package.getSubcomponent_AllModes()

setAllModes

void setAllModes(boolean value)
Sets the value of the 'All Modes' attribute.

Parameters:
value - the new value of the 'All Modes' attribute.
See Also:
isAllModes()

getImplementationReferences

org.eclipse.emf.common.util.EList<ComponentImplementationReference> getImplementationReferences()
Returns the value of the 'Implementation Reference' containment reference list. The list contents are of type ComponentImplementationReference.

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

Returns:
the value of the 'Implementation Reference' containment reference list.
See Also:
Aadl2Package.getSubcomponent_ImplementationReference()

createImplementationReference

ComponentImplementationReference createImplementationReference()
Creates a new ComponentImplementationReference and appends it to the 'Implementation Reference' containment reference list.

Returns:
The new ComponentImplementationReference.
See Also:
getImplementationReferences()

getRefined

Subcomponent getRefined()
Returns the value of the 'Refined' reference.

This feature redefines the following features:

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

Returns:
the value of the 'Refined' reference.
See Also:
setRefined(Subcomponent), Aadl2Package.getSubcomponent_Refined()

setRefined

void setRefined(Subcomponent value)
Sets the value of the 'Refined' reference.

Parameters:
value - the new value of the 'Refined' reference.
See Also:
getRefined()

getAbstractClassifier

AbstractClassifier getAbstractClassifier()
Returns the value of the 'Abstract Classifier' reference.

This feature subsets the following features:

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

Returns:
the value of the 'Abstract Classifier' reference.
See Also:
setAbstractClassifier(AbstractClassifier), Aadl2Package.getSubcomponent_AbstractClassifier()

setAbstractClassifier

void setAbstractClassifier(AbstractClassifier value)
Sets the value of the 'Abstract Classifier' reference.

Parameters:
value - the new value of the 'Abstract Classifier' reference.
See Also:
getAbstractClassifier()

getCategory

ComponentCategory getCategory()
Returns the category ("abstract", "bus", "data", "device", etc.) for the subcomponent. Returns the ComponentCategory literal for the given subcomponent


getComponentImplementation

ComponentImplementation getComponentImplementation()
returns the component implementation 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

getAllSubcomponentRefinements

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

Returns:
EList of subcomponent

getAllClassifier

ComponentClassifier getAllClassifier()

lookupPrototypeBinding

PrototypeBinding lookupPrototypeBinding(Prototype proto)
Parameters:
cp -

getAllFeatures

org.eclipse.emf.common.util.EList<Feature> getAllFeatures()
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 feature is returned in the list.

Returns:
List of features