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,PCMBaseClass,PCMClass
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
MinimalEObjectImpl.ContainerNested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImplNested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList<E extends Object & Adapter>, BasicNotifierImpl.EObservableAdapterList, BasicNotifierImpl.EScannableAdapterListNested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore -
Field Summary
Fields inherited from class org.palladiosimulator.pcm.allocation.impl.AllocationImplGen
copyrightFields inherited from class org.palladiosimulator.pcm.core.entity.impl.EntityImpl
ENTITY_NAME_EDEFAULTFields inherited from class de.uka.ipd.sdq.identifier.impl.IdentifierImpl
ID_EDEFAULTFields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSETFields inherited from interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder
NILFields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractAllSubsystems(Set<AssemblyContext> assemblyContexts) Determines allSubSystemelements 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>Determines all assembly contexts that are part of the current allocation (this).protected static StringgetEntityLabel(Entity entity) Generates a label for anEntityto be used in validation messages.protected AllocationImpl.ValidationResultTests if each assembly context is allocated at most once.protected static AllocationImpl.ValidationResulttestCorrectAllocationOfSubsystems(Set<SubSystem> subsystems, Set<AssemblyContext> allocatedAssemblyContexts) Tests if all givenSubSystemelements are allocated correctly by the given set of allocatedAssemblyContextelements.protected AllocationImpl.ValidationResultTests if each assembly context within the referenced system has been allocated correctly.booleanvalidateEachAssemblyContextWithinSystemHasToBeAllocatedExactlyOnce(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_AllocationMethods inherited from class org.palladiosimulator.pcm.core.entity.impl.EntityImpl
eBaseStructuralFeatureID, eDerivedStructuralFeatureID, getEntityName, setEntityNameMethods inherited from class de.uka.ipd.sdq.identifier.impl.IdentifierImpl
eStaticFeatureCount, getId, setIdMethods inherited from class org.eclipse.emf.internal.cdo.CDOObjectImpl
cdoClassInfo, cdoConflict, cdoDirectResource, cdoHistory, cdoID, cdoInternalDynamicFeature, cdoInternalInstance, cdoInternalPostAttach, cdoInternalPostDetach, 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, eAdapters, 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, toStringMethods inherited from class org.eclipse.emf.ecore.impl.MinimalEStoreEObjectImpl
eBasicContainerFeatureID, eBasicInternalContainer, eDerivedStructuralFeatureIDMethods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
eBasicAdapterArray, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetContainer, eBasicSetContainerFeatureID, eContents, eCrossReferences, eDeliver, eIsProxy, eProperties, eProxyURI, eSetDeliver, eSetProxyURIMethods 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, eVirtualValuesMethods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotifyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.emf.cdo.CDOObject
cdoConflict, cdoDirectResource, cdoHistory, cdoID, cdoInvalid, cdoLockState, cdoPermission, cdoPrefetch, cdoReadLock, cdoReload, cdoResource, cdoState, cdoWriteLock, cdoWriteOptionMethods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface de.uka.ipd.sdq.identifier.Identifier
getId, setIdMethods inherited from interface org.eclipse.emf.ecore.InternalEObject
eBasicRemoveFromContainer, eDerivedOperationID, eGet, eInverseAdd, eInverseRemove, eInvoke, eNotificationRequired, eObjectForURIFragmentSegment, eProxyURI, eResolveProxy, eSetProxyURI, eSetStore, eSetting, eURIFragmentSegmentMethods inherited from interface org.palladiosimulator.pcm.core.entity.NamedElement
getEntityName, setEntityNameMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Constructor Details
-
AllocationImpl
public AllocationImpl()
-
-
Method Details
-
validateEachAssemblyContextWithinSystemHasToBeAllocatedExactlyOnce
public boolean validateEachAssemblyContextWithinSystemHasToBeAllocatedExactlyOnce(DiagnosticChain diagnostics, Map<Object, Object> context) - Specified by:
validateEachAssemblyContextWithinSystemHasToBeAllocatedExactlyOncein interfaceAllocation- Overrides:
validateEachAssemblyContextWithinSystemHasToBeAllocatedExactlyOncein classAllocationImplGen
-
validateEachAssemblyContextWithinSystemHasToBeAllocatedExactlyOnce
protected AllocationImpl.ValidationResult validateEachAssemblyContextWithinSystemHasToBeAllocatedExactlyOnce()Tests if each assembly context within the referenced system has been allocated correctly.- Returns:
- Test result.
-
testAtMostOneAllocationForAssemblyContextExists
Tests if each assembly context is allocated at most once.- Returns:
- Test result.
-
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
Determines allSubSystemelements that are encapsulated by the given assembly contexts. This method ignores all other types of encapsulated components.- Parameters:
assemblyContexts-- Returns:
- The set of encapsulated
SubSystemelements.
-
testCorrectAllocationOfSubsystems
protected static AllocationImpl.ValidationResult testCorrectAllocationOfSubsystems(Set<SubSystem> subsystems, Set<AssemblyContext> allocatedAssemblyContexts) Tests if all givenSubSystemelements are allocated correctly by the given set of allocatedAssemblyContextelements. ASubSystemis 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.
-
getEntityLabel
Generates a label for anEntityto be used in validation messages.- Parameters:
entity- The entity.- Returns:
- The label.
-