|
||||||||||
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.ComponentInstanceImpl
edu.cmu.sei.aadl.model.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 ClassifierReference |
classifierReference
holds classifier reference object for parsing |
protected org.eclipse.emf.common.util.EList |
connectionInstance
The cached value of the ' Connection Instance ' containment reference list |
static java.lang.String |
copyright
|
protected SystemImpl |
systemImpl
The cached value of the ' System Impl ' reference |
protected org.eclipse.emf.common.util.EList |
systemOperationMode
The cached value of the ' System Operation Mode ' containment reference list |
Fields inherited from class edu.cmu.sei.aadl.model.instance.impl.ComponentInstanceImpl |
---|
category, CATEGORY_EDEFAULT, componentInstance, endToEndFlowInstance, featureInstance, flowSpecInstance, inModes, modeInstance, modeTransitionInstance, srcAccessConnection, subcomponent |
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 |
SystemInstanceImpl()
|
Method Summary | |
---|---|
void |
addConnectionInstance(ConnectionInstance newConnectionInstance)
phf: add element to multiplicity EList |
void |
addSystemOperationMode(SystemOperationMode newSystemOperationMode)
phf: add element to multiplicity EList |
SystemImpl |
basicGetSystemImpl()
|
void |
clearCurrentSystemOperationMode()
Clear the mode states for a given SystemInstance. |
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)
|
boolean |
exists()
Does the component exist in the current system operation mode of its containing system instance? |
static org.eclipse.emf.common.util.EList |
filterByCurrentSOM(InstanceObject current,
org.eclipse.emf.common.util.EList modalInstances)
Helper method that is used by other instance implementations to filter connections instances and end to end flow instances based on the current system operation mode of the system instance that contains the object. |
ConnectionInstance |
findConnectionInstance(FeatureInstance srcFI,
FeatureInstance dstFI)
find the Connection instance for these feature instances. |
org.eclipse.emf.common.util.EList |
getChildren()
get the children of a ComponentInstance object This will be the content or in case of modal ComponentInstance the subset that is active in a given mode |
ClassifierReference |
getClassifierReference()
Returns the value of the 'Impl Name' attribute. |
org.eclipse.emf.common.util.EList |
getConnectionInstance()
|
SystemOperationMode |
getCurrentSystemOperationMode()
Get the current system operation mode of the system, or null
if it has not been set. |
protected java.util.List |
getExistsInModes()
Returns the System Operation Modes in which the element exists, or null if the element always exists. |
SystemOperationMode |
getInitialSystemOperationMode()
Get the initial system operation mode, that is, the one whose member modes are all initial modes. |
java.util.List |
getInstantiatedObjects()
Return the declarative objects that define this instance. |
SystemImpl |
getSystemImpl()
|
org.eclipse.emf.common.util.EList |
getSystemOperationMode()
|
java.util.List |
getSystemOperationModesFor(java.util.List mis)
get all SOMs that contain the ModeInstance list |
java.util.List |
getSystemOperationModesFor(ModeInstance mi)
get all SOMs that contain the mode instance |
ComponentClassifier |
getXComponentClassifier()
Get the ComponentClassifier associated with this component instance. |
ComponentImpl |
getXComponentImpl()
Get the ComponentImpl associated with this component instance. |
ComponentType |
getXComponentType()
Get the ComponentType associated with this component instance. |
void |
setClassifierReference(ClassifierReference cr)
set reference names from ClassifierReference |
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 |
setSystemImpl(SystemImpl newSystemImpl)
|
void |
setSystemOperationMode(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. |
Methods inherited from class edu.cmu.sei.aadl.model.instance.impl.InstanceObjectImpl |
---|
createAccumulator, getComponentInstanceList, getComponentInstancePath, getContainingComponentInstance, getContainingComponentInstanceOrSelf, getInstanceObjectPath, getPropertyValueFromDeclarativeModel, getPropertyValueInternal, getSystemInstance |
Methods inherited from class edu.cmu.sei.aadl.model.core.impl.NamedElementImpl |
---|
checkName, getName, setName |
Methods inherited from class edu.cmu.sei.aadl.model.core.impl.AObjectImpl |
---|
addComment, eObjectForURIFragmentSegment, eURIFragmentSegment, getAadlSpec, getAdapter, getAObjectRoot, getComment, getContainingClassifier, getContainingClassifierNameSpace, getContainingComponentImpl, getContainingComponentType, getContainingPropertyAssociationDefinitionConstant, getContainingSubcomponent, getLocationReference, getReferencedObject, 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, 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, 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, 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 ClassifierReference classifierReference
protected SystemImpl systemImpl
System Impl
' reference.
getSystemImpl()
protected org.eclipse.emf.common.util.EList connectionInstance
Connection Instance
' containment reference list.
getConnectionInstance()
protected org.eclipse.emf.common.util.EList systemOperationMode
System Operation Mode
' containment reference list.
getSystemOperationMode()
Constructor Detail |
---|
protected SystemInstanceImpl()
Method Detail |
---|
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass
in class ComponentInstanceImpl
public SystemImpl getSystemImpl()
getSystemImpl
in interface SystemInstance
SystemInstance.setSystemImpl(SystemImpl)
,
InstancePackage.getSystemInstance_SystemImpl()
public SystemImpl basicGetSystemImpl()
public void setSystemImpl(SystemImpl newSystemImpl)
setSystemImpl
in interface SystemInstance
newSystemImpl
- the new value of the 'System Impl' reference.SystemInstance.getSystemImpl()
public org.eclipse.emf.common.util.EList getConnectionInstance()
getConnectionInstance
in interface SystemInstance
InstancePackage.getSystemInstance_ConnectionInstance()
public void addConnectionInstance(ConnectionInstance newConnectionInstance)
addConnectionInstance
in interface SystemInstance
newConnectionInstance
- the value to add to 'Connection Instance' containment reference list.public org.eclipse.emf.common.util.EList getSystemOperationMode()
getSystemOperationMode
in interface SystemInstance
InstancePackage.getSystemInstance_SystemOperationMode()
public void addSystemOperationMode(SystemOperationMode newSystemOperationMode)
addSystemOperationMode
in interface SystemInstance
newSystemOperationMode
- the value to add to 'System Operation Mode' containment reference list.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 getSystemOperationModesFor(ModeInstance mi)
getSystemOperationModesFor
in interface SystemInstance
mi
- Mode Instance
public java.util.List getSystemOperationModesFor(java.util.List mis)
getSystemOperationModesFor
in interface SystemInstance
mis
- List of mode instances
public void setClassifierReference(ClassifierReference cr)
setClassifierReference
in interface SystemInstance
public ClassifierReference getClassifierReference()
SystemInstance
getClassifierReference
in interface SystemInstance
public final java.util.List getInstantiatedObjects()
InstanceObjectImpl
getInstantiatedObjects
in interface InstanceObject
getInstantiatedObjects
in class ComponentInstanceImpl
ModeTransitionInstance
s.protected final java.util.List getExistsInModes()
InstanceObjectImpl
null
if the element always exists.
getExistsInModes
in class ComponentInstanceImpl
public ComponentImpl getXComponentImpl()
ComponentImpl
associated with this component instance.
getXComponentImpl
in interface ComponentInstance
getXComponentImpl
in class ComponentInstanceImpl
null
if one cannot be found.public ComponentType getXComponentType()
ComponentType
associated with this component instance.
getXComponentType
in interface ComponentInstance
getXComponentType
in class ComponentInstanceImpl
null
if one cannot be found.public ComponentClassifier getXComponentClassifier()
ComponentClassifier
associated with this component instance.
getXComponentClassifier
in interface ComponentInstance
getXComponentClassifier
in class ComponentInstanceImpl
null
if one cannot be found.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 final void setSystemOperationMode(SystemOperationMode som)
SystemInstance
null
, then the "current mode" state of the component
instances in the model match that state.
setSystemOperationMode
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 final SystemOperationMode getInitialSystemOperationMode()
SystemInstance
getInitialSystemOperationMode
in interface SystemInstance
public final org.eclipse.emf.common.util.EList getChildren()
getChildren
in interface AObject
getChildren
in interface ComponentInstance
getChildren
in class ComponentInstanceImpl
public final boolean exists()
ComponentInstance
modal subcomponent
or if
the current mode of the parent is contained in the component's
mode list
.
If the containing system instance does not have a current system
operation mode set, then this returns true
.
exists
in interface ComponentInstance
exists
in class ComponentInstanceImpl
public static org.eclipse.emf.common.util.EList filterByCurrentSOM(InstanceObject current, org.eclipse.emf.common.util.EList modalInstances)
null
then this
method returns the input list object. Otherwise, it creates a new list
and adds only those objects in the input list that exist in the current
system operation mode.
current
- The object on whose behalf this filtering is being performed.modalInstances
- A list of ConnectionInstance objects or EndToEndFlowInstance
objects.
public ConnectionInstance findConnectionInstance(FeatureInstance srcFI, FeatureInstance dstFI)
findConnectionInstance
in interface SystemInstance
srcFI
- source feature instancedstFI
- destination feature instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |