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

All Superinterfaces:
AObject, Element, org.eclipse.emf.ecore.EObject, FlowElementInstance, org.eclipse.core.runtime.IAdaptable, InstanceObject, NamedElement, org.eclipse.emf.common.notify.Notifier
All Known Implementing Classes:
ConnectionInstanceImpl

public interface ConnectionInstance
extends FlowElementInstance

A representation of the model object 'Connection Instance'.

The following features are supported:

See Also:
InstancePackage.getConnectionInstance()

Field Summary
 
Fields inherited from interface edu.cmu.sei.aadl.aadl2.parsesupport.AObject
copyright
 
Method Summary
 ConnectionReference createConnectionReference()
          Creates a new ConnectionReference and appends it to the 'Connection Reference' containment reference list
 java.util.List<ModalPropertyValue> getConnectionPropertyValues(Property property)
          Get the values associated with the given property for each connection declaration that defines this semantic connection.
 org.eclipse.emf.common.util.EList<ConnectionReference> getConnectionReferences()
          Returns the value of the 'Connection Reference' containment reference list.
 ConnectionInstanceEnd getDestination()
          Returns the value of the 'Destination' reference.
 org.eclipse.emf.common.util.EList<ModeTransitionInstance> getInModeTransitions()
          Returns the value of the 'In Mode Transitions' reference list.
 org.eclipse.emf.common.util.EList<SystemOperationMode> getInSystemOperationModes()
          Returns the value of the 'In System Operation Mode' reference list.
 ConnectionKind getKind()
          Returns the value of the 'Kind' attribute.
 ConnectionInstanceEnd getSource()
          Returns the value of the 'Source' reference.
 java.util.List<InstanceObject> getThroughFeatureInstances()
          Get the feature instances that this semantic connection passes through including the ultimate start and end points.
 boolean isComplete()
          Returns the value of the 'Complete' attribute
 void setComplete(boolean value)
          Sets the value of the 'Complete' attribute
 void setDestination(ConnectionInstanceEnd value)
          Sets the value of the 'Destination' reference
 void setKind(ConnectionKind value)
          Sets the value of the 'Kind' attribute
 void setSource(ConnectionInstanceEnd value)
          Sets the value of the 'Source' reference
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.instance.InstanceObject
getComponentInstancePath, getContainingComponentInstance, getExistsInModes, getInstanceObjectPath, getInstantiatedObjects, getSystemInstance, isActive
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.NamedElement
acceptsProperty, allNamespaces, checkPropertyAssociation, createOwnedPropertyAssociation, getName, getNamespace, getOwnedPropertyAssociations, getPropertyValue, getPropertyValueInternal, getPropertyValueList, getQualifiedName, getSimplePropertyValue, has_no_qualified_name, has_qualified_name, hasName, isDistinguishableFrom, qualifiedName, removePropertyAssociations, removePropertyAssociations, separator, setName, setPropertyValue, setPropertyValue, setPropertyValue
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.Element
allOwnedElements, createOwnedComment, getChildren, getContainingClassifier, getContainingComponentImpl, getElementRoot, getOwnedComments, getOwnedElements, getOwner, has_owner, mustBeOwned, not_own_self
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.parsesupport.AObject
getLocationReference, 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
 

Method Detail

getInSystemOperationModes

org.eclipse.emf.common.util.EList<SystemOperationMode> getInSystemOperationModes()
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()

getInModeTransitions

org.eclipse.emf.common.util.EList<ModeTransitionInstance> 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()

isComplete

boolean isComplete()
Returns the value of the 'Complete' attribute.

If the meaning of the 'Complete' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Complete' attribute.
See Also:
setComplete(boolean), InstancePackage.getConnectionInstance_Complete()

setComplete

void setComplete(boolean value)
Sets the value of the 'Complete' attribute.

Parameters:
value - the new value of the 'Complete' attribute.
See Also:
isComplete()

getKind

ConnectionKind getKind()
Returns the value of the 'Kind' attribute. The literals are from the enumeration ConnectionKind.

If the meaning of the 'Kind' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Kind' attribute.
See Also:
ConnectionKind, setKind(ConnectionKind), InstancePackage.getConnectionInstance_Kind()

setKind

void setKind(ConnectionKind value)
Sets the value of the 'Kind' attribute.

Parameters:
value - the new value of the 'Kind' attribute.
See Also:
ConnectionKind, getKind()

getDestination

ConnectionInstanceEnd getDestination()
Returns the value of the 'Destination' reference. It is bidirectional and its opposite is 'Dst Connection Instance'.

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

Returns:
the value of the 'Destination' reference.
See Also:
setDestination(ConnectionInstanceEnd), InstancePackage.getConnectionInstance_Destination(), ConnectionInstanceEnd.getDstConnectionInstances()

setDestination

void setDestination(ConnectionInstanceEnd value)
Sets the value of the 'Destination' reference.

Parameters:
value - the new value of the 'Destination' reference.
See Also:
getDestination()

getConnectionReferences

org.eclipse.emf.common.util.EList<ConnectionReference> getConnectionReferences()
Returns the value of the 'Connection Reference' containment reference list. The list contents are of type ConnectionReference.

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

Returns:
the value of the 'Connection Reference' containment reference list.
See Also:
InstancePackage.getConnectionInstance_ConnectionReference()

createConnectionReference

ConnectionReference createConnectionReference()
Creates a new ConnectionReference and appends it to the 'Connection Reference' containment reference list.

Returns:
The new ConnectionReference.
See Also:
getConnectionReferences()

getSource

ConnectionInstanceEnd getSource()
Returns the value of the 'Source' reference. It is bidirectional and its opposite is 'Src Connection Instance'.

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

Returns:
the value of the 'Source' reference.
See Also:
setSource(ConnectionInstanceEnd), InstancePackage.getConnectionInstance_Source(), ConnectionInstanceEnd.getSrcConnectionInstances()

setSource

void setSource(ConnectionInstanceEnd value)
Sets the value of the 'Source' reference.

Parameters:
value - the new value of the 'Source' reference.
See Also:
getSource()

getConnectionPropertyValues

java.util.List<ModalPropertyValue> getConnectionPropertyValues(Property 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 AadlModalPropertyValue objects, one for each connection declaration. The objects are in the same order as the connection declaration objects returned by #getConnections(). 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 retrieved because the model is incomplete.
java.lang.IllegalArgumentException - Thrown if one of the underlying connection declarations does not accept the property.

getThroughFeatureInstances

java.util.List<InstanceObject> getThroughFeatureInstances()
Get the feature instances that this semantic connection 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 access connection. In this case, the component is the data or bus component that is being accessed through the connection. In all other cases the first element will be a FeatureInstance. All subsequent elements in the list are always FeatureInstance objects.