|
||||||||||
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.aadl2.parsesupport.AObjectImpl
edu.cmu.sei.aadl.aadl2.impl.ElementImpl
edu.cmu.sei.aadl.aadl2.impl.NamedElementImpl
edu.cmu.sei.aadl.aadl2.instance.impl.InstanceObjectImpl
edu.cmu.sei.aadl.aadl2.instance.impl.ConnectionInstanceEndImpl
edu.cmu.sei.aadl.aadl2.instance.impl.ComponentInstanceImpl
edu.cmu.sei.aadl.aadl2.instance.impl.SystemInstanceImpl
public class SystemInstanceImpl
An implementation of the model object ' System Instance'.
The following features are implemented:
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 SystemImplementation |
systemImplementation
The cached value of the ' System Implementation ' reference |
protected org.eclipse.emf.common.util.EList<SystemOperationMode> |
systemOperationModes
The cached value of the ' System Operation Mode ' containment reference list.
|
Fields inherited from class edu.cmu.sei.aadl.aadl2.instance.impl.ComponentInstanceImpl |
---|
category, CATEGORY_EDEFAULT, componentInstances, connectionInstances, endToEndFlows, featureInstances, flowSpecifications, indices, inModes, modeInstances, modeTransitionInstances, subcomponent |
Fields inherited from class edu.cmu.sei.aadl.aadl2.instance.impl.ConnectionInstanceEndImpl |
---|
dstConnectionInstances, srcConnectionInstances |
Fields inherited from class edu.cmu.sei.aadl.aadl2.impl.NamedElementImpl |
---|
name, NAME_EDEFAULT, ownedPropertyAssociations, QUALIFIED_NAME_EDEFAULT |
Fields inherited from class edu.cmu.sei.aadl.aadl2.impl.ElementImpl |
---|
OWNED_ELEMENT_ESUBSETS, ownedComments |
Fields inherited from class edu.cmu.sei.aadl.aadl2.parsesupport.AObjectImpl |
---|
copyright, 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 edu.cmu.sei.aadl.aadl2.parsesupport.AObject |
---|
copyright |
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
EOPPOSITE_FEATURE_BASE |
Constructor Summary | |
---|---|
protected |
SystemInstanceImpl()
|
Method Summary | |
---|---|
SystemImplementation |
basicGetSystemImplementation()
|
void |
clearCurrentSystemOperationMode()
Clear the mode states for a given SystemInstance. |
SystemOperationMode |
createSystemOperationMode()
|
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
|
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)
|
ConnectionInstance |
findConnectionInstance(FeatureInstance srcFI,
FeatureInstance dstFI)
find the Connection instance for these feature instances. |
java.util.List<ConnectionInstance> |
findConnectionInstances(Connection first,
Connection second)
Find all connection instances that pass through two declarative connections in the same order as given in the parameters. |
SystemOperationMode |
getCurrentSystemOperationMode()
Get the current system operation mode of the system, or null
if it has not been set. |
java.util.List<SystemOperationMode> |
getExistsInModes()
Returns the System Operation Modes in which the element exists, or null if the element always exists. |
SystemOperationMode |
getInitialSystemOperationMode()
|
java.util.List<SystemImplementation> |
getInstantiatedObjects()
Return the declarative objects that define this instance. |
SystemImplementation |
getSystemImplementation()
|
org.eclipse.emf.common.util.EList<SystemOperationMode> |
getSystemOperationModes()
|
java.util.List<SystemOperationMode> |
getSystemOperationModesFor(java.util.List<ModeInstance> mis)
get all SOMs that contain the ModeInstance list |
java.util.List<SystemOperationMode> |
getSystemOperationModesFor(ModeInstance mi)
get all SOMs that contain the mode instance |
boolean |
isActive(SystemOperationMode som)
|
void |
setCurrentSystemOperationMode(SystemOperationMode som)
Sets the current modes of the component instances contained in this system instance to match the state of the specified system operation mode. |
void |
setSystemImplementation(SystemImplementation newSystemImplementation)
|
Methods inherited from class edu.cmu.sei.aadl.aadl2.instance.impl.ConnectionInstanceEndImpl |
---|
eInverseAdd, getDstConnectionInstances, getSrcConnectionInstances |
Methods inherited from class edu.cmu.sei.aadl.aadl2.instance.impl.InstanceObjectImpl |
---|
acceptsProperty, getComponentInstancePath, getContainingComponentInstance, getContainingComponentInstanceOrSelf, getInstanceObjectPath, getPropertyValueFromDeclarativeModel, getPropertyValueInternal, getSystemInstance |
Methods inherited from class edu.cmu.sei.aadl.aadl2.impl.ElementImpl |
---|
allOwnedElements, create, createOwnedComment, getCacheAdapter, getChildren, getContainingClassifier, getContainingComponentImpl, getElementRoot, getOwnedComments, getOwnedElements, getOwner, has_owner, isSetOwnedElements, isSetOwner, mustBeOwned, not_own_self |
Methods inherited from class edu.cmu.sei.aadl.aadl2.parsesupport.AObjectImpl |
---|
getAdapter, getLocationReference, 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, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, 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, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues |
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
eBasicAdapterArray, eBasicHasAdapters, 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.aadl2.instance.ConnectionInstanceEnd |
---|
getDstConnectionInstances, getSrcConnectionInstances |
Methods inherited from interface edu.cmu.sei.aadl.aadl2.instance.InstanceObject |
---|
getComponentInstancePath, getContainingComponentInstance, getInstanceObjectPath, getSystemInstance |
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.core.runtime.IAdaptable |
---|
getAdapter |
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
eNotificationRequired |
Field Detail |
---|
protected org.eclipse.emf.common.util.EList<SystemOperationMode> systemOperationModes
System Operation Mode
' containment reference list.
getSystemOperationModes()
protected SystemImplementation systemImplementation
System Implementation
' reference.
getSystemImplementation()
Constructor Detail |
---|
protected SystemInstanceImpl()
Method Detail |
---|
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass
in class ComponentInstanceImpl
public org.eclipse.emf.common.util.EList<SystemOperationMode> getSystemOperationModes()
getSystemOperationModes
in interface SystemInstance
InstancePackage.getSystemInstance_SystemOperationMode()
public SystemOperationMode createSystemOperationMode()
createSystemOperationMode
in interface SystemInstance
SystemOperationMode
.SystemInstance.getSystemOperationModes()
public SystemImplementation getSystemImplementation()
getSystemImplementation
in interface SystemInstance
SystemInstance.setSystemImplementation(SystemImplementation)
,
InstancePackage.getSystemInstance_SystemImplementation()
public SystemImplementation basicGetSystemImplementation()
public void setSystemImplementation(SystemImplementation newSystemImplementation)
setSystemImplementation
in interface SystemInstance
newSystemImplementation
- the new value of the 'System Implementation' reference.SystemInstance.getSystemImplementation()
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseRemove
in class ComponentInstanceImpl
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface org.eclipse.emf.ecore.InternalEObject
eGet
in class ComponentInstanceImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class ComponentInstanceImpl
public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class ComponentInstanceImpl
public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class ComponentInstanceImpl
public java.util.List<SystemOperationMode> getSystemOperationModesFor(java.util.List<ModeInstance> mis)
getSystemOperationModesFor
in interface SystemInstance
mis
- List of mode instances
public void setCurrentSystemOperationMode(SystemOperationMode som)
SystemInstance
null
, then the "current mode" state of the component
instances in the model match that state.
setCurrentSystemOperationMode
in interface SystemInstance
som
- SystemOperationMode whose values are used to set the
currentMode in the instance modelSystemInstance.clearCurrentSystemOperationMode()
,
SystemInstance.getCurrentSystemOperationMode()
public SystemOperationMode getCurrentSystemOperationMode()
SystemInstance
null
if it has not been set.
getCurrentSystemOperationMode
in interface SystemInstance
public void clearCurrentSystemOperationMode()
null
.
clearCurrentSystemOperationMode
in interface SystemInstance
public ConnectionInstance findConnectionInstance(FeatureInstance srcFI, FeatureInstance dstFI)
SystemInstance
This method is sensitive to the current system operation mode
.
findConnectionInstance
in interface SystemInstance
srcFI
- source feature instancedstFI
- destination feature instance
null
if no such connection exists in the current
som.public java.util.List<ConnectionInstance> findConnectionInstances(Connection first, Connection second)
SystemInstance
This method is sensitive to the current system operation mode
.
findConnectionInstances
in interface SystemInstance
first
- the first connection that should occur in the connection instancesecond
- the connection that should occur after the first in the connection instance
public final java.util.List<SystemOperationMode> getExistsInModes()
InstanceObjectImpl
null
if the element always exists.
getExistsInModes
in interface InstanceObject
getExistsInModes
in class ComponentInstanceImpl
public java.util.List<SystemOperationMode> getSystemOperationModesFor(ModeInstance mi)
getSystemOperationModesFor
in interface SystemInstance
mi
- Mode Instance
public final java.util.List<SystemImplementation> getInstantiatedObjects()
InstanceObjectImpl
getInstantiatedObjects
in interface InstanceObject
getInstantiatedObjects
in class ComponentInstanceImpl
ModeTransitionInstance
s.public final SystemOperationMode getInitialSystemOperationMode()
getInitialSystemOperationMode
in interface SystemInstance
public boolean isActive(SystemOperationMode som)
isActive
in interface InstanceObject
isActive
in class ComponentInstanceImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |