|
||||||||||
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.core.impl.ModeMemberImpl
edu.cmu.sei.aadl.model.core.impl.ConnectionImpl
public class ConnectionImpl
An implementation of the model object 'Connection'.
The following features are implemented:
Note: This class is abstract in the metamodel.
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 | |
---|---|
static java.lang.String |
copyright
|
protected FeatureContext |
dstContext
The cached value of the ' Dst Context ' reference |
protected FeatureReference |
dstReference
|
protected org.eclipse.emf.common.util.EList |
inModeTransitions
The cached value of the ' In Mode Transitions ' reference list |
protected java.util.Vector |
newModeName
|
protected java.util.Vector |
oldModeName
|
protected boolean |
refined
refined boolean. |
protected static boolean |
REFINED_EDEFAULT
The default value of the ' Refined ' attribute. |
protected RefinedReference |
refinedReference
holds connection refined reference |
protected FeatureContext |
srcContext
The cached value of the ' Src Context ' reference |
protected FeatureReference |
srcReference
holds parsed feature reference |
Fields inherited from class edu.cmu.sei.aadl.model.core.impl.ModeMemberImpl |
---|
inModes, modeName, NO_MODE_EDEFAULT, noMode |
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 |
ConnectionImpl()
|
Method Summary | |
---|---|
void |
addInModeTransitions(ModeTransition newInModeTransitions)
phf: add element to multiplicity EList |
void |
addNewModeName(java.lang.String on)
add old mode name |
void |
addOldModeName(java.lang.String on)
add old mode name |
FeatureContext |
basicGetDstContext()
|
FeatureContext |
basicGetSrcContext()
|
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)
|
FeatureContext |
getAllDstContext()
get destination context in case of a refined connection get it from the connection being refined |
PropertyHolder |
getAllDstContextComponent()
get destination context component, i.e., the subcomponent or component implementation. |
FeatureContext |
getAllSrcContext()
get source context in case of a refined connection get it from the connection being refined |
PropertyHolder |
getAllSrcContextComponent()
get source context component, i.e., the subcomponent or component implementation. |
FeatureContext |
getDstContext()
|
FeatureReference |
getDstPortReference()
get destination port reference |
java.lang.String |
getDstQualifiedName()
get qualified destination name from link or parsed name |
java.util.Collection |
getFeature(org.eclipse.emf.ecore.EClass eclass,
boolean getSrc)
get set of features of the specified class that can be the source of this connection |
java.util.Collection |
getFeatureContext()
get the set if AObjects that can be the context of a connection. |
org.eclipse.emf.common.util.EList |
getInModeTransitions()
|
java.util.Vector |
getNewModeNames()
get vector of mode names |
java.util.Vector |
getOldModeNames()
get vector of mode names |
void |
getPropertyValueInternal(PropertyDefinition pn,
ModalPropertyValueAccumulator pva,
boolean fromInstanceSlaveCall)
Helper routine for computing the value of the property. |
java.lang.String |
getQualifiedName()
return name of connection or subcomponent flowspec |
AObject |
getReferencedObject()
return as src of connection as referenced object |
RefinedReference |
getRefinedReference()
get reference names from flowReference |
Connection |
getRootConnection()
find the root connection; it contains the src and destination references |
AObject |
getSecondReferencedObject()
return as src of connection as referenced object |
FeatureContext |
getSrcContext()
|
FeatureReference |
getSrcPortReference()
get n source port reference |
java.lang.String |
getSrcQualifiedName()
get qualified source name from link or parsed name |
NamedElement |
getXAllDst()
get destination in case of a refined connection get it from the connection being refined |
NamedElement |
getXAllSrc()
get source feature in case of a refined connection get it from the connection being refined |
NamedElement |
getXDst()
get destination |
Connection |
getXRefines()
gets connection being refined |
NamedElement |
getXSrc()
get source |
boolean |
isInMode(Mode m)
determine whether the mode member is active in the specified mode |
boolean |
isRefined()
returns refined boolean. |
void |
setDstContext(FeatureContext newDstContext)
|
void |
setDstPortReference(FeatureReference fr)
set destination port reference |
void |
setRefined(boolean newRefined)
Sets refined boolean. |
void |
setRefinedReference(RefinedReference fr)
set sets reference names from refined reference |
void |
setSrcContext(FeatureContext newSrcContext)
|
void |
setSrcPortReference(FeatureReference fr)
set n source port reference |
void |
setXDst(NamedElement dst)
set destination |
void |
setXSrc(NamedElement src)
set source |
Methods inherited from class edu.cmu.sei.aadl.model.core.impl.ModeMemberImpl |
---|
acceptsProperty, addInModes, addModeName, getAllInModes, getInModes, getModeName, getPropertyValueInternal, isAllInMode, isNoMode, setNoMode, toString |
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, getChildren, getComment, getContainingClassifier, getContainingClassifierNameSpace, getContainingComponentImpl, getContainingComponentType, getContainingPropertyAssociationDefinitionConstant, getContainingSubcomponent, getLocationReference, 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, 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.ModeMember |
---|
addInModes, addModeName, getAllInModes, getInModes, getModeName, isAllInMode, isNoMode, setNoMode |
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, 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 |
---|
public static final java.lang.String copyright
protected RefinedReference refinedReference
protected FeatureReference srcReference
protected FeatureReference dstReference
protected java.util.Vector oldModeName
protected java.util.Vector newModeName
protected FeatureContext srcContext
Src Context
' reference.
getSrcContext()
protected FeatureContext dstContext
Dst Context
' reference.
getDstContext()
protected org.eclipse.emf.common.util.EList inModeTransitions
In Mode Transitions
' reference list.
getInModeTransitions()
protected static final boolean REFINED_EDEFAULT
Refined
' attribute.
protected boolean refined
Constructor Detail |
---|
protected ConnectionImpl()
Method Detail |
---|
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass
in class ModeMemberImpl
public FeatureContext getSrcContext()
getSrcContext
in interface Connection
Connection.setSrcContext(FeatureContext)
,
CorePackage.getConnection_SrcContext()
public FeatureContext getAllSrcContext()
getAllSrcContext
in interface Connection
public PropertyHolder getAllSrcContextComponent()
getAllSrcContextComponent
in interface Connection
public FeatureContext getAllDstContext()
getAllDstContext
in interface Connection
public PropertyHolder getAllDstContextComponent()
getAllDstContextComponent
in interface Connection
public FeatureContext basicGetSrcContext()
public void setSrcContext(FeatureContext newSrcContext)
setSrcContext
in interface Connection
newSrcContext
- the new value of the 'Src Context' reference.Connection.getSrcContext()
public FeatureContext getDstContext()
getDstContext
in interface Connection
Connection.setDstContext(FeatureContext)
,
CorePackage.getConnection_DstContext()
public FeatureContext basicGetDstContext()
public void setDstContext(FeatureContext newDstContext)
setDstContext
in interface Connection
newDstContext
- the new value of the 'Dst Context' reference.Connection.getDstContext()
public org.eclipse.emf.common.util.EList getInModeTransitions()
getInModeTransitions
in interface Connection
CorePackage.getConnection_InModeTransitions()
,
ModeTransition.getMembers()
public void addInModeTransitions(ModeTransition newInModeTransitions)
addInModeTransitions
in interface Connection
newInModeTransitions
- the value to add to 'In Mode Transitions' 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 ModeMemberImpl
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 ModeMemberImpl
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface org.eclipse.emf.ecore.InternalEObject
eGet
in class ModeMemberImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class ModeMemberImpl
public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class ModeMemberImpl
public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class ModeMemberImpl
public boolean isRefined()
isRefined
in interface Connection
public void setRefined(boolean newRefined)
setRefined
in interface Connection
public void setSrcPortReference(FeatureReference fr)
setSrcPortReference
in interface Connection
fr
- public void setDstPortReference(FeatureReference fr)
setDstPortReference
in interface Connection
fr
- public FeatureReference getSrcPortReference()
getSrcPortReference
in interface Connection
public FeatureReference getDstPortReference()
getDstPortReference
in interface Connection
public java.lang.String getSrcQualifiedName()
getSrcQualifiedName
in interface Connection
public java.lang.String getDstQualifiedName()
getDstQualifiedName
in interface Connection
public NamedElement getXSrc()
getXSrc
in interface Connection
public NamedElement getXAllSrc()
getXAllSrc
in interface Connection
public void setXSrc(NamedElement src)
setXSrc
in interface Connection
src
- NamedElement the destination (feature, data/bus access end or parameter end)public NamedElement getXDst()
getXDst
in interface Connection
public NamedElement getXAllDst()
getXAllDst
in interface Connection
public void setXDst(NamedElement dst)
setXDst
in interface Connection
dst
- NamedElement the destination (feature, data/bus access end or parameter end)public void addOldModeName(java.lang.String on)
addOldModeName
in interface Connection
public void addNewModeName(java.lang.String on)
addNewModeName
in interface Connection
public java.util.Vector getOldModeNames()
getOldModeNames
in interface Connection
public java.util.Vector getNewModeNames()
getNewModeNames
in interface Connection
public void setRefinedReference(RefinedReference fr)
setRefinedReference
in interface Connection
public RefinedReference getRefinedReference()
getRefinedReference
in interface Connection
public Connection getXRefines()
getXRefines
in interface Connection
public final void getPropertyValueInternal(PropertyDefinition pn, ModalPropertyValueAccumulator pva, boolean fromInstanceSlaveCall) throws InvalidModelException
PropertyHolder
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.
getPropertyValueInternal
in interface PropertyHolder
getPropertyValueInternal
in class PropertyHolderImpl
pn
- 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.
InvalidModelException
- Thrown if the property value cannot be retreived because the
model is incomplete or otherwise invalid.public java.util.Collection getFeatureContext()
getFeatureContext
in interface Connection
public java.util.Collection getFeature(org.eclipse.emf.ecore.EClass eclass, boolean getSrc)
getFeature
in interface Connection
eclass
- the EClass of the featuregetSrc
- incomingDir if true get source, otherwise dst features
public Connection getRootConnection()
public java.lang.String getQualifiedName()
public AObject getReferencedObject()
getReferencedObject
in interface AObject
getReferencedObject
in class AObjectImpl
public AObject getSecondReferencedObject()
getSecondReferencedObject
in interface AObject
getSecondReferencedObject
in class AObjectImpl
public boolean isInMode(Mode m)
isInMode
in interface ModeMember
isInMode
in class ModeMemberImpl
m
- Mode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |