Class AllocationImpl
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.BasicNotifierImpl
-
- org.eclipse.emf.ecore.impl.BasicEObjectImpl
-
- org.eclipse.emf.ecore.impl.MinimalEObjectImpl
-
- org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl
-
- org.eclipse.emf.internal.cdo.CDOObjectImpl
-
- de.uka.ipd.sdq.identifier.impl.IdentifierImpl
-
- org.palladiosimulator.pcm.core.entity.impl.EntityImpl
-
- org.palladiosimulator.pcm.allocation.impl.AllocationImplGen
-
- org.palladiosimulator.pcm.allocation.impl.AllocationImpl
-
- All Implemented Interfaces:
de.uka.ipd.sdq.identifier.Identifier
,org.eclipse.emf.cdo.CDOObject
,org.eclipse.emf.cdo.common.id.CDOWithID
,org.eclipse.emf.cdo.common.model.CDOPackageTypeRegistry.CDOObjectMarker
,Notifier
,EObject
,EStructuralFeature.Internal.DynamicValueHolder
,InternalEObject
,org.eclipse.emf.spi.cdo.InternalCDOLoadable
,org.eclipse.emf.spi.cdo.InternalCDOObject
,Allocation
,Entity
,NamedElement
public class AllocationImpl extends AllocationImplGen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AllocationImpl.ValidationResult
-
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
MinimalEObjectImpl.Container
-
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
-
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList<E extends Object & Adapter>, BasicNotifierImpl.EObservableAdapterList, BasicNotifierImpl.EScannableAdapterList
-
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.pcm.allocation.impl.AllocationImplGen
copyright
-
Fields inherited from class org.palladiosimulator.pcm.core.entity.impl.EntityImpl
ENTITY_NAME_EDEFAULT
-
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.EStructuralFeature.Internal.DynamicValueHolder
NIL
-
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
-
-
Constructor Summary
Constructors Constructor Description AllocationImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static Set<SubSystem>
extractAllSubsystems(Set<AssemblyContext> assemblyContexts)
Determines allSubSystem
elements that are encapsulated by the given assembly contexts.protected Set<AssemblyContext>
findUnallocatedAssemblyContexts(Set<AssemblyContext> allocatedAssemblyContexts)
Determines assembly contexts of the system that are not part of a given set of assembly contexts.protected Set<AssemblyContext>
getAllocatedAssemblyContexts()
Determines all assembly contexts that are part of the current allocation (this).protected static String
getEntityLabel(Entity entity)
Generates a label for anEntity
to be used in validation messages.protected AllocationImpl.ValidationResult
testAtMostOneAllocationForAssemblyContextExists()
Tests if each assembly context is allocated at most once.protected static AllocationImpl.ValidationResult
testCorrectAllocationOfSubsystems(Set<SubSystem> subsystems, Set<AssemblyContext> allocatedAssemblyContexts)
Tests if all givenSubSystem
elements are allocated correctly by the given set of allocatedAssemblyContext
elements.protected AllocationImpl.ValidationResult
validateEachAssemblyContextWithinSystemHasToBeAllocatedExactlyOnce()
Tests if each assembly context within the referenced system has been allocated correctly.boolean
validateEachAssemblyContextWithinSystemHasToBeAllocatedExactlyOnce(DiagnosticChain diagnostics, Map<Object,Object> context)
-
Methods inherited from class org.palladiosimulator.pcm.allocation.impl.AllocationImplGen
basicGetSystem_Allocation, basicGetTargetResourceEnvironment_Allocation, eGet, eInverseAdd, eInverseRemove, eIsSet, eSet, eStaticClass, eUnset, getAllocationContexts_Allocation, getSystem_Allocation, getTargetResourceEnvironment_Allocation, setSystem_Allocation, setTargetResourceEnvironment_Allocation
-
Methods inherited from class org.palladiosimulator.pcm.core.entity.impl.EntityImpl
eBaseStructuralFeatureID, eDerivedStructuralFeatureID, getEntityName, setEntityName
-
Methods inherited from class de.uka.ipd.sdq.identifier.impl.IdentifierImpl
eStaticFeatureCount, getId, setId
-
Methods inherited from class org.eclipse.emf.internal.cdo.CDOObjectImpl
cdoClassInfo, cdoConflict, cdoDirectResource, cdoHistory, cdoID, cdoInternalDynamicFeature, cdoInternalInstance, cdoInternalPostAttach, cdoInternalPostDetach, cdoInternalPostInvalidate, cdoInternalPostLoad, cdoInternalPostRollback, cdoInternalPreAttach, cdoInternalPreCommit, cdoInternalPreLoad, cdoInternalSetID, cdoInternalSetResource, cdoInternalSetRevision, cdoInternalSetState, cdoInternalSetView, cdoInvalid, cdoLockState, cdoPermission, cdoPrefetch, cdoReadLock, cdoReload, cdoResource, cdoRevision, cdoRevision, cdoState, cdoView, cdoWriteLock, cdoWriteOption, createFeatureMap, createList, createLock, createMap, createOrderedList, createUnorderedList, dynamicGet, dynamicSet, dynamicUnset, eAdapterAdded, eAdapterRemoved, eBasicAdapterListeners, eBasicSetAdapterListeners, eBasicSetContainer, eBasicSetContainer, eBasicSetSettings, eBasicSettings, eClass, eContainerAdapterArray, eContainerFeatureID, eDirectResource, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicIsSet, eHasSettings, eInternalContainer, eInternalResource, eIsCaching, emfToString, equals, eSetClass, eSetDirectResource, eSetResource, eSettings, eStore, getLockState, hashCode, instanceToRevisionFeature, revisionToInstanceFeature, toString
-
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl
eBasicContainerFeatureID, eBasicInternalContainer, eDerivedStructuralFeatureID
-
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
eAdapters, eBasicAdapterArray, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetContainer, eBasicSetContainerFeatureID, eContents, eCrossReferences, eDeliver, eIsProxy, eProperties, eProxyURI, eSetDeliver, eSetProxyURI
-
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticOperationCount, eUnset, eURIFragmentSegment, 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, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.emf.cdo.CDOObject
cdoConflict, cdoDirectResource, cdoHistory, cdoID, cdoInvalid, cdoLockState, cdoPermission, cdoPrefetch, cdoReadLock, cdoReload, cdoResource, cdoState, cdoWriteLock, cdoWriteOption
-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eBasicRemoveFromContainer, eDerivedOperationID, eGet, eInverseAdd, eInverseRemove, eInvoke, eNotificationRequired, eObjectForURIFragmentSegment, eProxyURI, eResolveProxy, eSetProxyURI, eSetStore, eSetting, eURIFragmentSegment
-
Methods inherited from interface org.palladiosimulator.pcm.core.entity.NamedElement
getEntityName, setEntityName
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
-
-
-
Method Detail
-
validateEachAssemblyContextWithinSystemHasToBeAllocatedExactlyOnce
public boolean validateEachAssemblyContextWithinSystemHasToBeAllocatedExactlyOnce(DiagnosticChain diagnostics, Map<Object,Object> context)
- Specified by:
validateEachAssemblyContextWithinSystemHasToBeAllocatedExactlyOnce
in interfaceAllocation
- Overrides:
validateEachAssemblyContextWithinSystemHasToBeAllocatedExactlyOnce
in classAllocationImplGen
-
validateEachAssemblyContextWithinSystemHasToBeAllocatedExactlyOnce
protected AllocationImpl.ValidationResult validateEachAssemblyContextWithinSystemHasToBeAllocatedExactlyOnce()
Tests if each assembly context within the referenced system has been allocated correctly.- Returns:
- Test result.
-
testAtMostOneAllocationForAssemblyContextExists
protected AllocationImpl.ValidationResult testAtMostOneAllocationForAssemblyContextExists()
Tests if each assembly context is allocated at most once.- Returns:
- Test result.
-
getAllocatedAssemblyContexts
protected Set<AssemblyContext> getAllocatedAssemblyContexts()
Determines all assembly contexts that are part of the current allocation (this).- Returns:
- A set of assembly contexts.
-
findUnallocatedAssemblyContexts
protected Set<AssemblyContext> findUnallocatedAssemblyContexts(Set<AssemblyContext> allocatedAssemblyContexts)
Determines assembly contexts of the system that are not part of a given set of assembly contexts. The given set represents assembly contexts that have already been allocated.- Parameters:
allocatedAssemblyContexts
- A set of assembly contexts that shall not be part of the result set.- Returns:
- A set of unallocated system assembly contexts.
-
extractAllSubsystems
protected static Set<SubSystem> extractAllSubsystems(Set<AssemblyContext> assemblyContexts)
Determines allSubSystem
elements that are encapsulated by the given assembly contexts. This method ignores all other types of encapsulated components.- Parameters:
assemblyContexts
-- Returns:
- The set of encapsulated
SubSystem
elements.
-
testCorrectAllocationOfSubsystems
protected static AllocationImpl.ValidationResult testCorrectAllocationOfSubsystems(Set<SubSystem> subsystems, Set<AssemblyContext> allocatedAssemblyContexts)
Tests if all givenSubSystem
elements are allocated correctly by the given set of allocatedAssemblyContext
elements. ASubSystem
is allocated correctly if it either is allocated directly or if all of its encapsulated components are allocated correctly.- Parameters:
subsystems
- The set of subsystems to test.allocatedAssemblyContexts
- The set of allocated assembly contexts.- Returns:
- Test result.
-
-