Class AssemblyAllocationManager
- java.lang.Object
-
- org.palladiosimulator.simulizar.runtimestate.AssemblyAllocationManager
-
- All Implemented Interfaces:
de.uka.ipd.sdq.simucomframework.resources.IAssemblyAllocationLookup<EntityReference<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer>>
,Extension
,RuntimeStateEntityManager
public class AssemblyAllocationManager extends Object implements de.uka.ipd.sdq.simucomframework.resources.IAssemblyAllocationLookup<EntityReference<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer>>, RuntimeStateEntityManager
-
-
Constructor Summary
Constructors Constructor Description AssemblyAllocationManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
allocateAssembly(String fqid, EntityReference<org.palladiosimulator.pcm.resourceenvironment.ResourceContainer> rcRef)
void
cleanup()
void
deallocateAssembly(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, wait
-
Methods inherited from interface de.uka.ipd.sdq.simucomframework.resources.IAssemblyAllocationLookup
getAllocatedEntity, getAllocatedEntity
-
Methods inherited from interface org.palladiosimulator.simulizar.runtimestate.RuntimeStateEntityManager
initialize
-
-
-
-
Method Detail
-
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 ofCompositeComponent
s, the lookup needs to be done using the string representation of theFQComponentID
.- Specified by:
getAllocatedEntity
in interfacede.uka.ipd.sdq.simucomframework.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
public void deallocateAssembly(String fqid)
-
cleanup
public void cleanup()
- Specified by:
cleanup
in interfaceRuntimeStateEntityManager
-
-