edu.cmu.sei.aadl.model.core.impl
Class ConnectionImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by edu.cmu.sei.aadl.model.core.impl.AObjectImpl
                  extended by edu.cmu.sei.aadl.model.core.impl.NamedElementImpl
                      extended by edu.cmu.sei.aadl.model.core.impl.PropertyHolderImpl
                          extended by edu.cmu.sei.aadl.model.core.impl.ModeMemberImpl
                              extended by edu.cmu.sei.aadl.model.core.impl.ConnectionImpl
All Implemented Interfaces:
AObject, Connection, ModeMember, NamedElement, PropertyHolder, ReferenceElement, org.eclipse.core.runtime.IAdaptable, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject
Direct Known Subclasses:
BusAccessConnectionImpl, DataAccessConnectionImpl, DataConnectionImpl, EventConnectionImpl, EventDataConnectionImpl, ParameterConnectionImpl, PortGroupConnectionImpl

public class ConnectionImpl
extends ModeMemberImpl
implements Connection

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.PropertyHolderImpl
addProperty, addPropertyValue, basicSetProperties, checkPropertyAssociation, createAccumulator, createPropertyAssociation, findPropertyAssociation, getProperties, getPropertyAssociation, getPropertyValue, getPropertyValueList, getSimplePropertyValue, isModalPropertyValue, removeContainedPropertyAssociations, removeContainedPropertyAssociations, removePropertyAssociations, removePropertyAssociations, setContainedPropertyValue, setContainedPropertyValue, setContainedPropertyValue, setContainedPropertyValue, setProperties, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue
 
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.PropertyHolder
acceptsProperty, addProperty, addPropertyValue, checkPropertyAssociation, findPropertyAssociation, getProperties, getPropertyAssociation, getPropertyValue, 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, 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

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values

refinedReference

protected RefinedReference refinedReference
holds connection refined reference


srcReference

protected FeatureReference srcReference
holds parsed feature reference


dstReference

protected FeatureReference dstReference

oldModeName

protected java.util.Vector oldModeName

newModeName

protected java.util.Vector newModeName

srcContext

protected FeatureContext srcContext
The cached value of the 'Src Context' reference.

See Also:
getSrcContext()

dstContext

protected FeatureContext dstContext
The cached value of the 'Dst Context' reference.

See Also:
getDstContext()

inModeTransitions

protected org.eclipse.emf.common.util.EList inModeTransitions
The cached value of the 'In Mode Transitions' reference list.

See Also:
getInModeTransitions()

REFINED_EDEFAULT

protected static final boolean REFINED_EDEFAULT
The default value of the 'Refined' attribute.

See Also:
Constant Field Values

refined

protected boolean refined
refined boolean. This flag is not persistently saved in XML it is only used during parsing

Constructor Detail

ConnectionImpl

protected ConnectionImpl()

Method Detail

eStaticClass

protected org.eclipse.emf.ecore.EClass eStaticClass()

Overrides:
eStaticClass in class ModeMemberImpl

getSrcContext

public FeatureContext getSrcContext()

Specified by:
getSrcContext in interface Connection
Returns:
the value of the 'Src Context' reference.
See Also:
Connection.setSrcContext(FeatureContext), CorePackage.getConnection_SrcContext()

getAllSrcContext

public FeatureContext getAllSrcContext()
get source context in case of a refined connection get it from the connection being refined

Specified by:
getAllSrcContext in interface Connection
Returns:
FeatureContext

getAllSrcContextComponent

public PropertyHolder getAllSrcContextComponent()
get source context component, i.e., the subcomponent or component implementation. If the context is a port group get its enclosing component impl. in case of a refined connection get it from the connection being refined

Specified by:
getAllSrcContextComponent in interface Connection
Returns:
PropertyHolder context subcomponent or component implementation

getAllDstContext

public FeatureContext getAllDstContext()
get destination context in case of a refined connection get it from the connection being refined

Specified by:
getAllDstContext in interface Connection
Returns:
FeatureContext

getAllDstContextComponent

public PropertyHolder getAllDstContextComponent()
get destination context component, i.e., the subcomponent or component implementation. If the context is a port group get its enclosing component impl. in case of a refined connection get it from the connection being refined

Specified by:
getAllDstContextComponent in interface Connection
Returns:
PropertyHolder context subcomponent or component implementation

basicGetSrcContext

public FeatureContext basicGetSrcContext()


setSrcContext

public void setSrcContext(FeatureContext newSrcContext)

Specified by:
setSrcContext in interface Connection
Parameters:
newSrcContext - the new value of the 'Src Context' reference.
See Also:
Connection.getSrcContext()

getDstContext

public FeatureContext getDstContext()

Specified by:
getDstContext in interface Connection
Returns:
the value of the 'Dst Context' reference.
See Also:
Connection.setDstContext(FeatureContext), CorePackage.getConnection_DstContext()

basicGetDstContext

public FeatureContext basicGetDstContext()


setDstContext

public void setDstContext(FeatureContext newDstContext)

Specified by:
setDstContext in interface Connection
Parameters:
newDstContext - the new value of the 'Dst Context' reference.
See Also:
Connection.getDstContext()

getInModeTransitions

public org.eclipse.emf.common.util.EList getInModeTransitions()

Specified by:
getInModeTransitions in interface Connection
Returns:
the value of the 'In Mode Transitions' reference list.
See Also:
CorePackage.getConnection_InModeTransitions(), ModeTransition.getMembers()

addInModeTransitions

public void addInModeTransitions(ModeTransition newInModeTransitions)
phf: add element to multiplicity EList

Specified by:
addInModeTransitions in interface Connection
Parameters:
newInModeTransitions - the value to add to 'In Mode Transitions' reference list.

eInverseAdd

public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                   int featureID,
                                                                   org.eclipse.emf.common.notify.NotificationChain msgs)

Overrides:
eInverseAdd in class ModeMemberImpl

eInverseRemove

public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                      int featureID,
                                                                      org.eclipse.emf.common.notify.NotificationChain msgs)

Overrides:
eInverseRemove in class ModeMemberImpl

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class ModeMemberImpl

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class ModeMemberImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class ModeMemberImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class ModeMemberImpl

isRefined

public boolean isRefined()
returns refined boolean. THis flag is not persistently saved in XML it is only used during parsing

Specified by:
isRefined in interface Connection

setRefined

public void setRefined(boolean newRefined)
Sets refined boolean. This flag is not persistently saved in XML it is only used during parsing

Specified by:
setRefined in interface Connection

setSrcPortReference

public void setSrcPortReference(FeatureReference fr)
set n source port reference

Specified by:
setSrcPortReference in interface Connection
Parameters:
fr -

setDstPortReference

public void setDstPortReference(FeatureReference fr)
set destination port reference

Specified by:
setDstPortReference in interface Connection
Parameters:
fr -

getSrcPortReference

public FeatureReference getSrcPortReference()
get n source port reference

Specified by:
getSrcPortReference in interface Connection
Returns:
feature reference

getDstPortReference

public FeatureReference getDstPortReference()
get destination port reference

Specified by:
getDstPortReference in interface Connection
Returns:
feature reference

getSrcQualifiedName

public java.lang.String getSrcQualifiedName()
get qualified source name from link or parsed name

Specified by:
getSrcQualifiedName in interface Connection
Returns:
string

getDstQualifiedName

public java.lang.String getDstQualifiedName()
get qualified destination name from link or parsed name

Specified by:
getDstQualifiedName in interface Connection
Returns:
string

getXSrc

public NamedElement getXSrc()
get source

Specified by:
getXSrc in interface Connection
Returns:
NamedElement the source (feature, data/bus access end or parameter end)

getXAllSrc

public NamedElement getXAllSrc()
get source feature in case of a refined connection get it from the connection being refined

Specified by:
getXAllSrc in interface Connection
Returns:
NamedElement the source (feature, data/bus access end or parameter end)

setXSrc

public void setXSrc(NamedElement src)
set source

Specified by:
setXSrc in interface Connection
Parameters:
src - NamedElement the destination (feature, data/bus access end or parameter end)

getXDst

public NamedElement getXDst()
get destination

Specified by:
getXDst in interface Connection
Returns:
NamedElement the destination (feature, data/bus access end or parameter end)

getXAllDst

public NamedElement getXAllDst()
get destination in case of a refined connection get it from the connection being refined

Specified by:
getXAllDst in interface Connection
Returns:
NamedElement the destination (feature, data/bus access end or parameter end)

setXDst

public void setXDst(NamedElement dst)
set destination

Specified by:
setXDst in interface Connection
Parameters:
dst - NamedElement the destination (feature, data/bus access end or parameter end)

addOldModeName

public void addOldModeName(java.lang.String on)
add old mode name

Specified by:
addOldModeName in interface Connection

addNewModeName

public void addNewModeName(java.lang.String on)
add old mode name

Specified by:
addNewModeName in interface Connection

getOldModeNames

public java.util.Vector getOldModeNames()
get vector of mode names

Specified by:
getOldModeNames in interface Connection

getNewModeNames

public java.util.Vector getNewModeNames()
get vector of mode names

Specified by:
getNewModeNames in interface Connection

setRefinedReference

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

Specified by:
setRefinedReference in interface Connection

getRefinedReference

public RefinedReference getRefinedReference()
get reference names from flowReference

Specified by:
getRefinedReference in interface Connection

getXRefines

public Connection getXRefines()
gets connection being refined

Specified by:
getXRefines in interface Connection
Returns:
connection being refined or null

getPropertyValueInternal

public final void getPropertyValueInternal(PropertyDefinition pn,
                                           ModalPropertyValueAccumulator pva,
                                           boolean fromInstanceSlaveCall)
                                    throws InvalidModelException
Description copied from interface: PropertyHolder
Helper routine for computing the value of the property. As the name suggests, this method is not intended for use by clients of the model, but is used during the property lookup process. It should really be a protected method in 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.

Specified by:
getPropertyValueInternal in interface PropertyHolder
Overrides:
getPropertyValueInternal in class PropertyHolderImpl
Parameters:
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.
Throws:
InvalidModelException - Thrown if the property value cannot be retreived because the model is incomplete or otherwise invalid.

getFeatureContext

public java.util.Collection getFeatureContext()
get the set if AObjects that can be the context of a connection. the enclosing component impl, the subcomponents, and the port groups

Specified by:
getFeatureContext in interface Connection
Returns:
Collection of FeatureContext

getFeature

public 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

Specified by:
getFeature in interface Connection
Parameters:
eclass - the EClass of the feature
getSrc - incomingDir if true get source, otherwise dst features
Returns:
Collection of features of specified class

getRootConnection

public Connection getRootConnection()
find the root connection; it contains the src and destination references


getQualifiedName

public java.lang.String getQualifiedName()
return name of connection or subcomponent flowspec

Returns:
String

getReferencedObject

public AObject getReferencedObject()
return as src of connection as referenced object

Specified by:
getReferencedObject in interface AObject
Overrides:
getReferencedObject in class AObjectImpl

getSecondReferencedObject

public AObject getSecondReferencedObject()
return as src of connection as referenced object

Specified by:
getSecondReferencedObject in interface AObject
Overrides:
getSecondReferencedObject in class AObjectImpl

isInMode

public boolean isInMode(Mode m)
determine whether the mode member is active in the specified mode

Specified by:
isInMode in interface ModeMember
Overrides:
isInMode in class ModeMemberImpl
Parameters:
m - Mode
Returns:
boolean true if active