Class AssemblyAllocationManager
java.lang.Object
org.palladiosimulator.simulizar.runtimestate.AssemblyAllocationManager
- All Implemented Interfaces:
de.uka.ipd.sdq.simucomframework.core.resources.IAssemblyAllocationLookup<EntityReference<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer>>,Extension,RuntimeStateEntityManager
public class AssemblyAllocationManager
extends Object
implements de.uka.ipd.sdq.simucomframework.core.resources.IAssemblyAllocationLookup<EntityReference<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer>>, RuntimeStateEntityManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidallocateAssembly(String fqid, EntityReference<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer> rcRef) voidcleanup()voiddeallocateAssembly(String fqid) EntityReference<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer>getAllocatedEntity(String assemblyContextId) Returns the simulated resource container to which the provided assembly is allocated to.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.uka.ipd.sdq.simucomframework.core.resources.IAssemblyAllocationLookup
getAllocatedEntity, getAllocatedEntityMethods inherited from interface org.palladiosimulator.simulizar.runtimestate.RuntimeStateEntityManager
initialize
-
Constructor Details
-
AssemblyAllocationManager
@Inject public AssemblyAllocationManager()
-
-
Method Details
-
getAllocatedEntity
public EntityReference<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer> getAllocatedEntity(String assemblyContextId) Returns the simulated resource container to which the provided assembly is allocated to. If the assembly is not allocated directly, but through a hierarchy ofCompositeComponents, the lookup needs to be done using the string representation of theFQComponentID.- Specified by:
getAllocatedEntityin interfacede.uka.ipd.sdq.simucomframework.core.resources.IAssemblyAllocationLookup<EntityReference<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer>>- Returns:
- the simulated resource container
-
allocateAssembly
public void allocateAssembly(String fqid, EntityReference<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer> rcRef) -
deallocateAssembly
-
cleanup
public void cleanup()- Specified by:
cleanupin interfaceRuntimeStateEntityManager
-