public class SystemInstanceImpl extends ComponentInstanceImpl implements SystemInstance
The following features are implemented:
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
copyright
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<ConnectionInstance> |
allConnectionInstances()
Iterates over all connection instances in the instance model.
|
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) |
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.
|
org.eclipse.emf.common.util.EList<ConnectionInstance> |
getAllConnectionInstances()
Get all connection instances in the instance model.
|
SystemImplementation |
getComponentClassifier() |
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) |
acceptsProperty, basicGetSubcomponent, createComponentInstance, createComponentInstance, createConnectionInstance, createEndToEndFlow, createFeatureInstance, createFlowSpecification, createModeInstance, createModeTransitionInstance, findConnectionInstance, findEndToEndFlowInstance, findFeatureInstance, findFlowSpecInstance, findModeInstance, findModeTransitionInstance, findSubcomponentInstance, getAllComponentInstances, getCategory, getComponentInstances, getConnectionInstances, getEndToEndFlows, getFeatureInstances, getFlowSpecifications, getIndices, getInModes, getModeInstances, getModeTransitionInstances, getPathName, getSubcomponent, matchesIndex, setCategory, setCurrentMode, setSubcomponent, toString
eInverseAdd, getDstConnectionInstances, getSrcConnectionInstances
allEnclosingConnectionInstances, findInstanceObjects, getAllEnclosingConnectionInstances, getComponentInstance, getComponentInstancePath, getContainingComponentInstance, getInstanceObjectPath, getPropertyValueInternal, getSystemInstance
allNamespaces, checkPropertyAssociation, createOwnedPropertyAssociation, getName, getNamespace, getNonModalPropertyValue, getOwnedPropertyAssociations, getPropertyValue, getPropertyValueList, getPropertyValues, getQualifiedName, getSimplePropertyValue, has_no_qualified_name, has_qualified_name, hasName, isDistinguishableFrom, qualifiedName, removePropertyAssociations, removePropertyAssociations, separator, setName, setPropertyValue, setPropertyValue, setPropertyValue
allOwnedElements, createOwnedComment, getChildren, getContainingClassifier, getContainingComponentImpl, getElementRoot, getOwnedComments, getOwnedElements, getOwner, has_owner, isSetOwnedElements, mustBeOwned, not_own_self
getAdapter, getLocationReference, setLocationReference, setLocationReference
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset
eNotificationRequired, eNotify
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
createComponentInstance, createComponentInstance, createConnectionInstance, createEndToEndFlow, createFeatureInstance, createFlowSpecification, createModeInstance, createModeTransitionInstance, findConnectionInstance, findEndToEndFlowInstance, findFeatureInstance, findFlowSpecInstance, findModeInstance, findModeTransitionInstance, findSubcomponentInstance, getAllComponentInstances, getCategory, getComponentInstances, getConnectionInstances, getEndToEndFlows, getFeatureInstances, getFlowSpecifications, getIndices, getInModes, getModeInstances, getModeTransitionInstances, getSubcomponent, setCategory, setCurrentMode, setSubcomponent
getDstConnectionInstances, getSrcConnectionInstances
allEnclosingConnectionInstances, findInstanceObjects, getAllEnclosingConnectionInstances, getComponentInstance, getComponentInstancePath, getContainingComponentInstance, getInstanceObjectPath, getPathName, getSystemInstance, matchesIndex
acceptsProperty, allNamespaces, checkPropertyAssociation, createOwnedPropertyAssociation, getName, getNamespace, getNonModalPropertyValue, getOwnedPropertyAssociations, getPropertyValue, getPropertyValueInternal, getPropertyValueList, getPropertyValues, getQualifiedName, getSimplePropertyValue, has_no_qualified_name, has_qualified_name, hasName, isDistinguishableFrom, qualifiedName, removePropertyAssociations, removePropertyAssociations, separator, setName, setPropertyValue, setPropertyValue, setPropertyValue
allOwnedElements, createOwnedComment, getChildren, getContainingClassifier, getContainingComponentImpl, getElementRoot, getOwnedComments, getOwnedElements, getOwner, has_owner, mustBeOwned, not_own_self
getLocationReference, setLocationReference, setLocationReference
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 getComponentClassifier()
getComponentClassifier
in interface ComponentInstance
getComponentClassifier
in interface SystemInstance
getComponentClassifier
in class ComponentInstanceImpl
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 instancespublic 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 instancenull
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 instancepublic 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 Instancepublic 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
public java.lang.Iterable<ConnectionInstance> allConnectionInstances()
SystemInstance
allConnectionInstances
in interface SystemInstance
public org.eclipse.emf.common.util.EList<ConnectionInstance> getAllConnectionInstances()
SystemInstance
getAllConnectionInstances
in interface SystemInstance