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

All Superinterfaces:
AObject, org.eclipse.emf.ecore.EObject, org.eclipse.core.runtime.IAdaptable, ModeMember, NamedElement, org.eclipse.emf.common.notify.Notifier, PropertyHolder, ReferenceElement
All Known Subinterfaces:
BusAccessConnection, DataAccessConnection, DataConnection, EventConnection, EventDataConnection, ParameterConnection, PortGroupConnection
All Known Implementing Classes:
BusAccessConnectionImpl, ConnectionImpl, DataAccessConnectionImpl, DataConnectionImpl, EventConnectionImpl, EventDataConnectionImpl, ParameterConnectionImpl, PortGroupConnectionImpl

public interface Connection
extends ModeMember, ReferenceElement

A representation of the model object 'Connection'.

The following features are supported:

See Also:
CorePackage.getConnection()

Field Summary
static java.lang.String copyright
           
 
Method Summary
 void addInModeTransitions(ModeTransition value)
          Adds to the list the value of the 'In Mode Transitions' reference list
 void addNewModeName(java.lang.String on)
          add old mode name
 void addOldModeName(java.lang.String on)
          add old mode name
 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()
          Returns the value of the 'Dst Context' reference
 FeatureReference getDstPortReference()
          get destination port reference
 java.lang.String getDstQualifiedName()
          get qualified source 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()
          Returns the value of the 'In Mode Transitions' reference list.
 java.util.Vector getNewModeNames()
          get vector of mode names
 java.util.Vector getOldModeNames()
          get vector of mode names
 RefinedReference getRefinedReference()
          get reference names from flowReference
 FeatureContext getSrcContext()
          Returns the value of the 'Src Context' reference
 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 in case of a refined connection get it from the connection being refined
 NamedElement getXDst()
          get destination get source feature or bus/data end
 Connection getXRefines()
          gets connection being refined
 NamedElement getXSrc()
          get source feature or bus/data end
 boolean isRefined()
          returns refined boolean.
 void setDstContext(FeatureContext value)
          Sets the value of the 'Dst Context' reference
 void setDstPortReference(FeatureReference fr)
          set names for destination port reference
 void setRefined(boolean value)
          Sets refined boolean.
 void setRefinedReference(RefinedReference fr)
          set sets reference names from refined reference
 void setSrcContext(FeatureContext value)
          Sets the value of the 'Src Context' reference
 void setSrcPortReference(FeatureReference fr)
          set names for destination port reference
 void setXDst(NamedElement dst)
          set destination
 void setXSrc(NamedElement src)
          set source
 
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

getSrcContext

FeatureContext getSrcContext()
Returns the value of the 'Src Context' reference.

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

Returns:
the value of the 'Src Context' reference.
See Also:
setSrcContext(FeatureContext), CorePackage.getConnection_SrcContext()

setSrcContext

void setSrcContext(FeatureContext value)
Sets the value of the 'Src Context' reference.

Parameters:
value - the new value of the 'Src Context' reference.
See Also:
getSrcContext()

getDstContext

FeatureContext getDstContext()
Returns the value of the 'Dst Context' reference.

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

Returns:
the value of the 'Dst Context' reference.
See Also:
setDstContext(FeatureContext), CorePackage.getConnection_DstContext()

setDstContext

void setDstContext(FeatureContext value)
Sets the value of the 'Dst Context' reference.

Parameters:
value - the new value of the 'Dst Context' reference.
See Also:
getDstContext()

getInModeTransitions

org.eclipse.emf.common.util.EList getInModeTransitions()
Returns the value of the 'In Mode Transitions' reference list. The list contents are of type ModeTransition. It is bidirectional and its opposite is 'Members'.

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

Returns:
the value of the 'In Mode Transitions' reference list.
See Also:
CorePackage.getConnection_InModeTransitions(), ModeTransition.getMembers()

addInModeTransitions

void addInModeTransitions(ModeTransition value)
Adds to the list the value of the 'In Mode Transitions' reference list.

Parameters:
value - the value to add to 'In Mode Transitions' reference list.

isRefined

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


setRefined

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


setDstPortReference

void setDstPortReference(FeatureReference fr)
set names for destination port reference

Parameters:
fr -

setSrcPortReference

void setSrcPortReference(FeatureReference fr)
set names for destination port reference

Parameters:
fr -

addOldModeName

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


addNewModeName

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


getOldModeNames

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


getNewModeNames

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


getSrcQualifiedName

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

Returns:
string

getDstQualifiedName

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

Returns:
string

getXSrc

NamedElement getXSrc()
get source feature or bus/data end

Returns:
NamedElement

setXSrc

void setXSrc(NamedElement src)
set source

Parameters:
src - NamedElement the destination (feature, data/bus access end or parameter end)

getXDst

NamedElement getXDst()
get destination get source feature or bus/data end

Returns:
NamedElement

setXDst

void setXDst(NamedElement dst)
set destination

Parameters:
dst - NamedElement the destination (feature, data/bus access end or parameter end)

getSrcPortReference

FeatureReference getSrcPortReference()
get n source port reference

Returns:
feature reference

getDstPortReference

FeatureReference getDstPortReference()
get destination port reference

Returns:
feature reference

setRefinedReference

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


getRefinedReference

RefinedReference getRefinedReference()
get reference names from flowReference


getXRefines

Connection getXRefines()
gets connection being refined

Returns:
connection being refined or null

getFeatureContext

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

Returns:
Collection of FeatureContext

getFeature

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

Parameters:
eclass - the EClass of the feature
getSrc - if true get source, otherwise dst features
Returns:
Collection of features of specified class

getXAllSrc

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

Returns:
NamedElement the destination (feature, data/bus access end or parameter end)

getXAllDst

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

Returns:
NamedElement the destination (feature, data/bus access end or parameter end)

getAllSrcContext

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

Returns:
FeatureContext

getAllSrcContextComponent

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

Returns:
PropertyHolder context subcomponent or component implementation

getAllDstContextComponent

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

Returns:
PropertyHolder context subcomponent or component implementation

getAllDstContext

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

Returns:
FeatureContext