|
||||||||||
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.instance.impl.InstanceObjectImpl
edu.cmu.sei.aadl.model.instance.impl.FlowElementInstanceImpl
edu.cmu.sei.aadl.model.instance.impl.ConnectionInstanceImpl
public class ConnectionInstanceImpl
An implementation of the model object 'Connection Instance'.
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 | |
---|---|
protected org.eclipse.emf.common.util.EList |
connection
The cached value of the ' Connection ' reference list |
protected org.eclipse.emf.common.util.EList |
connectionContext
The cached value of the ' Connection Context ' reference list |
static java.lang.String |
copyright
|
protected org.eclipse.emf.common.util.EList |
inModeTransitions
The cached value of the ' In Mode Transitions ' reference list |
protected org.eclipse.emf.common.util.EList |
inSystemOperationMode
The cached value of the ' In System Operation Mode ' reference list |
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 |
ConnectionInstanceImpl()
|
Method Summary | |
---|---|
void |
addConnection(Connection newConnection)
phf: add element to multiplicity EList |
void |
addConnectionContext(ComponentInstance newConnectionContext)
phf: add element to multiplicity EList |
void |
addInModeTransitions(ModeTransitionInstance newInModeTransitions)
phf: add element to multiplicity EList |
void |
addInSystemOperationMode(SystemOperationMode newInSystemOperationMode)
phf: add element to multiplicity EList |
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. |
protected ConnectionInstance |
createEmptyClone()
|
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
|
boolean |
eIsSet(int featureID)
|
void |
eSet(int featureID,
java.lang.Object newValue)
|
protected org.eclipse.emf.ecore.EClass |
eStaticClass()
|
void |
eUnset(int featureID)
|
boolean |
exists()
Does the connection exist in the current system operation mode of its containing system instance. |
org.eclipse.emf.common.util.EList |
getConnection()
|
org.eclipse.emf.common.util.EList |
getConnectionContext()
|
java.util.List |
getConnectionPropertyValues(PropertyDefinition property)
Get the values associated with the given property for each connection declaration that defines this semantic connection. |
protected java.util.List |
getExistsInModes()
Returns the System Operation Modes in which the element exists, or null if the element always exists. |
org.eclipse.emf.common.util.EList |
getInModeTransitions()
|
java.util.List |
getInstantiatedObjects()
Return the declarative objects that define this instance. |
org.eclipse.emf.common.util.EList |
getInSystemOperationMode()
|
protected void |
getPropertyValueFromDeclarativeModel(PropertyDefinition property,
InstanceMPVA pva)
Get the property value from the declarative model elements associated with the instance object. |
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 class edu.cmu.sei.aadl.model.instance.impl.InstanceObjectImpl |
---|
createAccumulator, getComponentInstanceList, getComponentInstancePath, getContainingComponentInstance, getContainingComponentInstanceOrSelf, getInstanceObjectPath, getPropertyValueInternal, getSystemInstance |
Methods inherited from class edu.cmu.sei.aadl.model.core.impl.NamedElementImpl |
---|
checkName, getName, setName, toString |
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, 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.instance.InstanceObject |
---|
getComponentInstanceList, getComponentInstancePath, getContainingComponentInstance, getInstanceObjectPath, getSystemInstance |
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 |
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
eNotificationRequired |
Field Detail |
---|
public static final java.lang.String copyright
protected org.eclipse.emf.common.util.EList connection
Connection
' reference list.
getConnection()
protected org.eclipse.emf.common.util.EList inSystemOperationMode
In System Operation Mode
' reference list.
getInSystemOperationMode()
protected org.eclipse.emf.common.util.EList connectionContext
Connection Context
' reference list.
getConnectionContext()
protected org.eclipse.emf.common.util.EList inModeTransitions
In Mode Transitions
' reference list.
getInModeTransitions()
Constructor Detail |
---|
protected ConnectionInstanceImpl()
Method Detail |
---|
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass
in class FlowElementInstanceImpl
public org.eclipse.emf.common.util.EList getConnection()
getConnection
in interface ConnectionInstance
InstancePackage.getConnectionInstance_Connection()
public void addConnection(Connection newConnection)
addConnection
in interface ConnectionInstance
newConnection
- the value to add to 'Connection' reference list.public org.eclipse.emf.common.util.EList getInSystemOperationMode()
getInSystemOperationMode
in interface ConnectionInstance
InstancePackage.getConnectionInstance_InSystemOperationMode()
public void addInSystemOperationMode(SystemOperationMode newInSystemOperationMode)
addInSystemOperationMode
in interface ConnectionInstance
newInSystemOperationMode
- the value to add to 'In System Operation Mode' reference list.public org.eclipse.emf.common.util.EList getConnectionContext()
getConnectionContext
in interface ConnectionInstance
InstancePackage.getConnectionInstance_ConnectionContext()
public void addConnectionContext(ComponentInstance newConnectionContext)
addConnectionContext
in interface ConnectionInstance
newConnectionContext
- the value to add to 'Connection Context' reference list.public org.eclipse.emf.common.util.EList getInModeTransitions()
getInModeTransitions
in interface ConnectionInstance
InstancePackage.getConnectionInstance_InModeTransitions()
public void addInModeTransitions(ModeTransitionInstance newInModeTransitions)
addInModeTransitions
in interface ConnectionInstance
newInModeTransitions
- the value to add to 'In Mode Transitions' reference list.public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface org.eclipse.emf.ecore.InternalEObject
eGet
in class PropertyHolderImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class PropertyHolderImpl
public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class PropertyHolderImpl
public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class PropertyHolderImpl
public java.util.List getConnectionPropertyValues(PropertyDefinition property) throws InvalidModelException
ConnectionInstance
getConnectionPropertyValues
in interface ConnectionInstance
property
- The property to look up
ModalPropertyValue
objects, one for each connection declaration. The objects are in
the same order as the connection declaration objects returned by
ConnectionInstance.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.
InvalidModelException
- Thrown if the property values cannot be
retreived because the model is incomplete.protected void getPropertyValueFromDeclarativeModel(PropertyDefinition property, InstanceMPVA pva) throws InvalidModelException
getPropertyValueFromDeclarativeModel
in class InstanceObjectImpl
property
- The property to lookuppva
- The property value accumulator to use to build the property
value
InvalidModelException
- Thrown if the property value cannot
be retreived because the model is incomplete or otherwise invalid.public final java.util.List getInstantiatedObjects()
InstanceObjectImpl
getInstantiatedObjects
in interface InstanceObject
getInstantiatedObjects
in class InstanceObjectImpl
ModeTransitionInstance
s.protected final java.util.List getExistsInModes()
InstanceObjectImpl
null
if the element always exists.
getExistsInModes
in class InstanceObjectImpl
public InstanceObject getXSrc()
getXSrc
in interface ConnectionInstance
public InstanceObject getXDst()
getXDst
in interface ConnectionInstance
public final java.util.List getThroughFeatureInstances()
ConnectionInstance
getThroughFeatureInstances
in interface ConnectionInstance
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.protected ConnectionInstance createEmptyClone()
public ConnectionInstance cloneInstance(java.lang.String name, java.util.List connection, java.util.List connectionContext, InstanceObject src, InstanceObject dst)
ConnectionInstance
cloneInstance
in interface ConnectionInstance
public final boolean exists()
ConnectionInstance
exists
in interface ConnectionInstance
SystemInstance.setCurrentSystemOperationMode(edu.cmu.sei.aadl.model.instance.SystemOperationMode)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |