|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
edu.cmu.sei.aadl.model.core.impl.AObjectImpl
edu.cmu.sei.aadl.model.core.impl.NamedElementImpl
edu.cmu.sei.aadl.model.core.impl.PropertyHolderImpl
edu.cmu.sei.aadl.model.instance.impl.InstanceObjectImpl
edu.cmu.sei.aadl.model.instance.impl.ComponentInstanceImpl
public class ComponentInstanceImpl
An implementation of the model object 'Component Instance'.
The following features are implemented:
Feature Instance
Component Instance
Subcomponent
Src Access Connection
Mode Instance
Mode Transition Instance
Category
In Modes
Flow Spec Instance
End To End Flow Instance
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 ComponentClassifier associated with this component instance. |
ComponentImpl |
getXComponentImpl()
Get the ComponentImpl associated with this component instance. |
ComponentType |
getXComponentType()
Get the ComponentType associated 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.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.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 |
---|
public static final java.lang.String copyright
protected org.eclipse.emf.common.util.EList featureInstance
Feature Instance
' containment reference list.
getFeatureInstance()
protected org.eclipse.emf.common.util.EList componentInstance
Component Instance
' containment reference list.
getComponentInstance()
protected Subcomponent subcomponent
Subcomponent
' reference.
getSubcomponent()
protected org.eclipse.emf.common.util.EList srcAccessConnection
Src Access Connection
' reference list.
getSrcAccessConnection()
protected org.eclipse.emf.common.util.EList modeInstance
Mode Instance
' containment reference list.
getModeInstance()
protected org.eclipse.emf.common.util.EList modeTransitionInstance
Mode Transition Instance
' containment reference list.
getModeTransitionInstance()
protected static final ComponentCategory CATEGORY_EDEFAULT
Category
' attribute.
getCategory()
protected ComponentCategory category
Category
' attribute.
getCategory()
protected org.eclipse.emf.common.util.EList inModes
In Modes
' reference list.
getInModes()
protected org.eclipse.emf.common.util.EList flowSpecInstance
Flow Spec Instance
' containment reference list.
getFlowSpecInstance()
protected org.eclipse.emf.common.util.EList endToEndFlowInstance
End To End Flow Instance
' containment reference list.
getEndToEndFlowInstance()
Constructor Detail |
---|
protected ComponentInstanceImpl()
Method Detail |
---|
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass
in class InstanceObjectImpl
public org.eclipse.emf.common.util.EList getFeatureInstance()
getFeatureInstance
in interface ComponentInstance
InstancePackage.getComponentInstance_FeatureInstance()
public void addFeatureInstance(FeatureInstance newFeatureInstance)
addFeatureInstance
in interface ComponentInstance
newFeatureInstance
- the value to add to 'Feature Instance' containment reference list.public org.eclipse.emf.common.util.EList getComponentInstance()
getComponentInstance
in interface ComponentInstance
InstancePackage.getComponentInstance_ComponentInstance()
public org.eclipse.emf.common.util.EList getAllComponentInstances()
getAllComponentInstances
in interface ComponentInstance
public void addComponentInstance(ComponentInstance newComponentInstance)
addComponentInstance
in interface ComponentInstance
newComponentInstance
- the value to add to 'Component Instance' containment reference list.public Subcomponent getSubcomponent()
getSubcomponent
in interface ComponentInstance
ComponentInstance.setSubcomponent(Subcomponent)
,
InstancePackage.getComponentInstance_Subcomponent()
public Subcomponent basicGetSubcomponent()
public void setSubcomponent(Subcomponent newSubcomponent)
setSubcomponent
in interface ComponentInstance
newSubcomponent
- the new value of the 'Subcomponent' reference.ComponentInstance.getSubcomponent()
public org.eclipse.emf.common.util.EList getSrcAccessConnection()
getSrcAccessConnection
in interface ComponentInstance
InstancePackage.getComponentInstance_SrcAccessConnection()
,
AccessConnectionInstance.getSrc()
public void addSrcAccessConnection(AccessConnectionInstance newSrcAccessConnection)
addSrcAccessConnection
in interface ComponentInstance
newSrcAccessConnection
- the value to add to 'Src Access Connection' reference list.public org.eclipse.emf.common.util.EList getModeInstance()
getModeInstance
in interface ComponentInstance
InstancePackage.getComponentInstance_ModeInstance()
public void addModeInstance(ModeInstance newModeInstance)
addModeInstance
in interface ComponentInstance
newModeInstance
- the value to add to 'Mode Instance' containment reference list.public org.eclipse.emf.common.util.EList getModeTransitionInstance()
getModeTransitionInstance
in interface ComponentInstance
InstancePackage.getComponentInstance_ModeTransitionInstance()
public void addModeTransitionInstance(ModeTransitionInstance newModeTransitionInstance)
addModeTransitionInstance
in interface ComponentInstance
newModeTransitionInstance
- the value to add to 'Mode Transition Instance' containment reference list.public ComponentCategory getCategory()
getCategory
in interface ComponentInstance
ComponentCategory
,
ComponentInstance.setCategory(ComponentCategory)
,
InstancePackage.getComponentInstance_Category()
public void setCategory(ComponentCategory newCategory)
setCategory
in interface ComponentInstance
newCategory
- the new value of the 'Category' attribute.ComponentCategory
,
ComponentInstance.getCategory()
public org.eclipse.emf.common.util.EList getInModes()
getInModes
in interface ComponentInstance
InstancePackage.getComponentInstance_InModes()
public void addInModes(ModeInstance newInModes)
addInModes
in interface ComponentInstance
newInModes
- the value to add to 'In Modes' reference list.public org.eclipse.emf.common.util.EList getFlowSpecInstance()
getFlowSpecInstance
in interface ComponentInstance
InstancePackage.getComponentInstance_FlowSpecInstance()
public void addFlowSpecInstance(FlowSpecInstance newFlowSpecInstance)
addFlowSpecInstance
in interface ComponentInstance
newFlowSpecInstance
- the value to add to 'Flow Spec Instance' containment reference list.public org.eclipse.emf.common.util.EList getEndToEndFlowInstance()
getEndToEndFlowInstance
in interface ComponentInstance
InstancePackage.getComponentInstance_EndToEndFlowInstance()
public void addEndToEndFlowInstance(EndToEndFlowInstance newEndToEndFlowInstance)
addEndToEndFlowInstance
in interface ComponentInstance
newEndToEndFlowInstance
- the value to add to 'End To End Flow Instance' containment reference list.public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseAdd
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseRemove
in class PropertyHolderImpl
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface org.eclipse.emf.ecore.InternalEObject
eGet
in class PropertyHolderImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class PropertyHolderImpl
public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class PropertyHolderImpl
public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class PropertyHolderImpl
public java.lang.String toString()
toString
in class NamedElementImpl
public final boolean acceptsProperty(PropertyDefinition property)
PropertyHolder
acceptsProperty
in interface PropertyHolder
acceptsProperty
in class PropertyHolderImpl
property
- The property definition to test.
true
if the given property applies to this
element.public java.util.List getInstantiatedObjects()
InstanceObjectImpl
getInstantiatedObjects
in interface InstanceObject
getInstantiatedObjects
in class InstanceObjectImpl
ModeTransitionInstance
s.protected java.util.List getExistsInModes()
InstanceObjectImpl
null
if the element always exists.
getExistsInModes
in class InstanceObjectImpl
public ComponentInstance findSubcomponentInstance(Subcomponent sc)
findSubcomponentInstance
in interface ComponentInstance
sc
- subcomponent
public FeatureInstance findFeatureInstance(Feature feature)
findFeatureInstance
in interface ComponentInstance
feature
- feature whose instance is to be found
public FlowSpecInstance findFlowSpecInstance(FlowSpec flowspec)
findFlowSpecInstance
in interface ComponentInstance
flowspec
- flowspec whose instance is to be found
public FlowSpecInstance findFlowSpecInstance(FeatureInstance srcFeatureInstance)
findFlowSpecInstance
in interface ComponentInstance
srcFeatureInstance
- feature instance that is the source of the flowspecinstance
public void doFlowSpecInstances()
doFlowSpecInstances
in interface ComponentInstance
public EndToEndFlowInstance findEndToEndFlowInstance(EndToEndFlow ete)
findEndToEndFlowInstance
in interface ComponentInstance
ete
- endtoendflow whose instance is to be found
public ModeInstance findModeInstance(Mode mode)
findModeInstance
in interface ComponentInstance
mode
- mode whose instance is to be found
public ModeTransitionInstance findModeTransitionInstance(ModeTransition mt)
findModeTransitionInstance
in interface ComponentInstance
mt
- mode transition whose instance is to be found
public org.eclipse.emf.common.util.EList findConnectionInstance(Connection conn)
findConnectionInstance
in interface ComponentInstance
conn
- Connection whose instance is to be found
public ComponentImpl getXComponentImpl()
ComponentImpl
associated with this component instance.
getXComponentImpl
in interface ComponentInstance
null
if one cannot be found.public ComponentClassifier getXComponentClassifier()
ComponentClassifier
associated with this component instance.
getXComponentClassifier
in interface ComponentInstance
null
if one cannot be found.public ComponentType getXComponentType()
ComponentType
associated with this component instance.
getXComponentType
in interface ComponentInstance
null
if one cannot be found.public org.eclipse.emf.common.util.EList getComponentInstance(ModeInstance mode)
getComponentInstance
in interface ComponentInstance
mode
- ModeInstance to be used to select the subset, if null return all
public final void setCurrentMode(ModeInstance newMode)
getModeInstance()
, but this is not currently
checked.
setCurrentMode
in interface ComponentInstance
newMode
- The mode to project this component into, or null
if it is not projected into any mode.public final ModeInstance getCurrentMode()
ComponentInstance
getCurrentMode
in interface ComponentInstance
null
if it is not projected into any mode.public org.eclipse.emf.common.util.EList getPreOrderComponentInstance(ComponentCategory cat)
getPreOrderComponentInstance
in interface ComponentInstance
cat
- component category
protected void doGetPreOrderComponentInstance(org.eclipse.emf.common.util.EList result, ComponentCategory cat)
result
- cat
- public org.eclipse.emf.common.util.EList getChildren()
(Overridden by SystemInstanceImpl!)
getChildren
in interface AObject
getChildren
in interface ComponentInstance
getChildren
in class AObjectImpl
public final org.eclipse.emf.common.util.EList getChildren(ModeInstance mode)
ComponentInstance
getChildren
in interface ComponentInstance
mode
- The mode instance
public boolean testClassifier(java.util.Set classifiers)
testClassifier
in interface ComponentInstance
true
if the given set is empty!public ReferenceValue getReferenceTo()
ComponentInstance
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.
getReferenceTo
in interface ComponentInstance
public java.util.List getReferencePathTo()
ComponentInstance
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.
getReferencePathTo
in interface ComponentInstance
Subcomponent
objects describing the path to the
component.public java.util.Collection findInstanceObject(org.eclipse.emf.common.util.EList referencePath)
ComponentInstance
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.
findInstanceObject
in interface ComponentInstance
referencePath
- sequence of pointers into the declarative model to
subcomponents, features, etc.
public AObject getSecondReferencedObject()
getSecondReferencedObject
in interface AObject
getSecondReferencedObject
in class AObjectImpl
public org.eclipse.emf.common.util.EList getOutgoingConnection(Feature feature)
getOutgoingConnection
in interface ComponentInstance
feature
- subcomponent feature that is the source of a connection
public org.eclipse.emf.common.util.EList getOutgoingAccessConnection()
getOutgoingAccessConnection
in interface ComponentInstance
public org.eclipse.emf.common.util.EList getIncomingConnection(Feature feature)
getIncomingConnection
in interface ComponentInstance
feature
- subcomponent feature that is the destination of a connection
public org.eclipse.emf.common.util.EList getOutcomingConnection(Feature feature)
getOutcomingConnection
in interface ComponentInstance
feature
- feature that is the destination of a connection
public org.eclipse.emf.common.util.EList getIngoingConnection(Feature feature)
getIngoingConnection
in interface ComponentInstance
feature
- feature that is the source of a connection
public final boolean isModal()
ComponentInstance
!getModeInstance().isEmpty()
, but communicates a clearer
semantic message and the model.
isModal
in interface ComponentInstance
public final boolean isModalSubcomponent()
ComponentInstance
!getInModes().isEmpty()
, but
communicates a clearer semantic message about the model.
isModalSubcomponent
in interface ComponentInstance
public boolean exists()
ComponentInstance
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
.
exists
in interface ComponentInstance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |