edu.cmu.sei.aadl.model.instance
Interface ConnectionInstance

All Superinterfaces:
AObject, org.eclipse.emf.ecore.EObject, FlowElementInstance, org.eclipse.core.runtime.IAdaptable, InstanceObject, NamedElement, org.eclipse.emf.common.notify.Notifier, PropertyHolder
All Known Subinterfaces:
AccessConnectionInstance, ModeTransitionConnectionInstance, PortConnectionInstance
All Known Implementing Classes:
AccessConnectionInstanceImpl, ConnectionInstanceImpl, ModeTransitionConnectionInstanceImpl, PortConnectionInstanceImpl

public interface ConnectionInstance
extends FlowElementInstance

A representation of the model object 'Connection Instance'.

The following features are supported:

See Also:
InstancePackage.getConnectionInstance()

Field Summary
static java.lang.String copyright
           
 
Method Summary
 void addConnection(Connection value)
          Adds to the list the value of the 'Connection' reference list
 void addConnectionContext(ComponentInstance value)
          Adds to the list the value of the 'Connection Context' reference list
 void addInModeTransitions(ModeTransitionInstance value)
          Adds to the list the value of the 'In Mode Transitions' reference list
 void addInSystemOperationMode(SystemOperationMode value)
          Adds to the list the value of the 'In System Operation Mode' reference list
 ConnectionInstance cloneInstance(java.lang.String name, java.util.List connection, java.util.List connectionContext, InstanceObject src, InstanceObject dst)
          Create a new ConnectionInstance of the same type as this one, with the given name, connections, connectionContext, src, and dst.
 boolean exists()
          Does the connection exist in the current system operation mode of its containing system instance.
 org.eclipse.emf.common.util.EList getConnection()
          Returns the value of the 'Connection' reference list.
 org.eclipse.emf.common.util.EList getConnectionContext()
          Returns the value of the 'Connection Context' reference list.
 java.util.List getConnectionPropertyValues(PropertyDefinition property)
          Get the values associated with the given property for each connection declaration that defines this semantic connection.
 org.eclipse.emf.common.util.EList getInModeTransitions()
          Returns the value of the 'In Mode Transitions' reference list.
 org.eclipse.emf.common.util.EList getInSystemOperationMode()
          Returns the value of the 'In System Operation Mode' reference list.
 java.util.List getThroughFeatureInstances()
          Get the features instances that this semantic connections passes through including the ultimate start and end points.
 InstanceObject getXDst()
          returns the reference to the destination feature instance
 InstanceObject getXSrc()
          returns the reference to the source feature instance
 
Methods inherited from interface edu.cmu.sei.aadl.model.instance.InstanceObject
getComponentInstanceList, getComponentInstancePath, getContainingComponentInstance, getInstanceObjectPath, getInstantiatedObjects, getSystemInstance
 
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, 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

getConnection

org.eclipse.emf.common.util.EList getConnection()
Returns the value of the 'Connection' reference list. The list contents are of type Connection.

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

Returns:
the value of the 'Connection' reference list.
See Also:
InstancePackage.getConnectionInstance_Connection()

addConnection

void addConnection(Connection value)
Adds to the list the value of the 'Connection' reference list.

Parameters:
value - the value to add to 'Connection' reference list.

getInSystemOperationMode

org.eclipse.emf.common.util.EList getInSystemOperationMode()
Returns the value of the 'In System Operation Mode' reference list. The list contents are of type SystemOperationMode.

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

Returns:
the value of the 'In System Operation Mode' reference list.
See Also:
InstancePackage.getConnectionInstance_InSystemOperationMode()

addInSystemOperationMode

void addInSystemOperationMode(SystemOperationMode value)
Adds to the list the value of the 'In System Operation Mode' reference list.

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

getConnectionContext

org.eclipse.emf.common.util.EList getConnectionContext()
Returns the value of the 'Connection Context' reference list. The list contents are of type ComponentInstance.

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

Returns:
the value of the 'Connection Context' reference list.
See Also:
InstancePackage.getConnectionInstance_ConnectionContext()

addConnectionContext

void addConnectionContext(ComponentInstance value)
Adds to the list the value of the 'Connection Context' reference list.

Parameters:
value - the value to add to 'Connection Context' reference list.

getInModeTransitions

org.eclipse.emf.common.util.EList getInModeTransitions()
Returns the value of the 'In Mode Transitions' reference list. The list contents are of type ModeTransitionInstance.

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:
InstancePackage.getConnectionInstance_InModeTransitions()

addInModeTransitions

void addInModeTransitions(ModeTransitionInstance 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.

getConnectionPropertyValues

java.util.List getConnectionPropertyValues(PropertyDefinition property)
                                           throws InvalidModelException
Get the values associated with the given property for each connection declaration that defines this semantic connection.

Parameters:
property - The property to look up
Returns:
A list of ModalPropertyValue objects, one for each connection declaration. The objects are in the same order as the connection declaration objects returned by getConnection(). Furthermore, the values are in terms of the connection instance object, that is, modal dependencies are given in terms of system operation modes, and reference values have been resolved to point to instance objects.
Throws:
InvalidModelException - Thrown if the property values cannot be retreived because the model is incomplete.
java.lang.IllegalArgumentException - Thrown if one of the underlying connection declarations does not accept the property.

getXDst

InstanceObject getXDst()
returns the reference to the destination feature instance

Returns:
feature instance

getXSrc

InstanceObject getXSrc()
returns the reference to the source feature instance

Returns:
feature instance

getThroughFeatureInstances

java.util.List getThroughFeatureInstances()
Get the features instances that this semantic connections passes through including the ultimate start and end points. The features are returned in the order in which they are passed through.

Returns:
A List of InstanceObjects. The first item in the list will be a ComponentInstance if the connection is an AccessConnectionInstance. In this case, the component is the data or bus component that is being accesses through the connection. In all other cases the first element will be a FeatureInstance. All subsequent elements in the list are always FeatureInstance objects.

cloneInstance

ConnectionInstance cloneInstance(java.lang.String name,
                                 java.util.List connection,
                                 java.util.List connectionContext,
                                 InstanceObject src,
                                 InstanceObject dst)
Create a new ConnectionInstance of the same type as this one, with the given name, connections, connectionContext, src, and dst. This is basically a factory method that uses the type of the receiver to determine which kind of connection instance to create. The values of the features of the receiver are completely ignored.


exists

boolean exists()
Does the connection exist in the current system operation mode of its containing system instance. If the connection is detached from a system instance then it always exists. If the containing system instance is not projected into a system operation mode then the connection exists.

See Also:
SystemInstance.setCurrentSystemOperationMode(edu.cmu.sei.aadl.model.instance.SystemOperationMode)